Open
Description
Context
Sometimes a lint-warning won't need fixing (because edge cases, dev preference, etc.)
We want to have a way to ignore recurring warnings from bothering the user.
the CI integration (#88) would need this, so the build does not fail and the warning is considered unimportant.
Task
- create a extensible blacklist
- ignore reports matching the blacklist
possible approaches
- a simple edn list with the
:line
,:column
,:filename
, and:source
of all (to be) ignored reports- con: if the location of the warning changes, the ignore list has to be updated
- we can automatically check whether all ignores are still triggered.
- metadata, by tagging a form with
^:formatting-stack.<linter>/ignored
.- moving the form doesn't break whitelist
- self describing. it's right in the source.
- con: clutters code with metadata irrelevant for the behavior of the program itself.
- con: implementation might be more complex, as the violated form is not available in the reporter right now. Not all linters parse the source
- con: not all reports address one specific form. e.g.
loc-per-file
, andone-resource-per-ns
Metadata
Metadata
Assignees
Labels
No labels