Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Everyone on the team need to agree to the linting rules before using linters. Else they will keep wirting their code according to their habits , and then they start to modify the rule that dosen't fit their bad habits when linters hints to fix the code.

> run the language's standard formatter

Even with very smart linters like `ruff` it cannot fix all of the linting errors. You have to hand fix many of them.

What linter do you use that can just run and forget?



Dotnet-format for formatting. Can auto fix.

Sonarqube for linting. It's more annoying and not auto fixing, but it achieves the goal of avoiding arguments and does catch some bugs.


In python and js sonarcube sucks. Ruff and Biome are perfect but still need manual fixes




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: