Automatically suppress linter errors #3949
allanlewis
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
Out of curiosity, what does |
Beta Was this translation helpful? Give feedback.
2 replies
-
Working on this feature here!: #4007 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per my Discord thread, I'd love to see something similar to Ruff's
--add-noqa
option, which adds linter-suppressing comments for each error.My standard workflow when adding Ruff to an existing Python codebase is to run:
This fixes all safely-fixable errors, suppresses the rest, and then checks that there are no remaining errors. Perhaps we could enable a similar workflow in Biome?
Aside, one thing that might make this easier would be if the JSON output (
biome lint --reporter=json
) gave the line number of each error rather than the character number, then one could usesed
or similar to insert suppression comments.Beta Was this translation helpful? Give feedback.
All reactions