Skip to content

report blacklist #132

@thumbnail

Description

@thumbnail

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

  1. create a extensible blacklist
  2. ignore reports matching the blacklist

possible approaches

  1. 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.
  2. 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, and one-resource-per-ns

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions