Skip to content

Are hlint's severities a bit too high in general? #1549

@michaelpj

Description

@michaelpj

HLS has historically reported all hlint diagnostics at "information" level. There is a proposal to instead respect hlint's severities. This seems nice, but putting hlint's diagnostics next to GHC's makes the severities for hlint seem a bit high overall.

I don't have a clear rubric, but it seems to me roughly that GHC's view of severities is something more like:

  • Info: take it or leave it
  • Warning: you're almost certainly doing something wrong here
  • Error: so bad I can't continue

Whereas hlint's view seems more like:

  • Info: take it or leave it
  • Warning: many people would prefer the alternative
  • Error: almost certainly something wrong

... and then there are custom errors, which I think people probably want to be severe.

Having written this down, I now think that perhaps the best thing to do would be to:

  • Map hlint "error"s to "error"s (I'm tempted to say to "warning", but I think this might confuse people who have added custom error rules?)
  • Map hlint "warning" and "hint"s both to "info"

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions