Skip to content

Revamp analyzer diagnostic system #4626

@ematipico

Description

@ematipico

Our analyzer currently works this way:

  • recommended rules emit a diagnostic error
  • non-recommended rules don't emit any diagnostic

This behaviour is different from the majority of linters/analyzers out there, and it's really confusing for people who use other tools. We intended to change it, so:

  • lint rules will always have a severity (it will be Severity::Information by default)
  • recommended rules won't change the severity of a rule

This means there could be lint rules that will have Severity::Warning rules and be recommended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions