this post was submitted on 17 Jan 2025
731 points (98.9% liked)

Programmer Humor

20023 readers
1175 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 2 days ago (3 children)

Meanwhile in another universe one of my biggest win was to introduce this line in our PR validation pipeline.

eslint . --max-warnings 0
[–] [email protected] 2 points 1 day ago (2 children)

Works so well, and soothes the warning annoyance brain, and keeps warnings from eventually becoming errors.

[–] [email protected] 3 points 1 day ago (1 children)

In a codebase with a lot of warnings is even better for me to add a disable comments for all the existing warning and then not allow any new one in.

And then each time a part of the code needs to be touched the existing warning there should be solved too.

[–] [email protected] 2 points 1 day ago

Several times I've set the max warnings to whatever the current warning count is, and then decreased that over time.