Skip to content

hlint hints tweak suggestion #553

Closed
@alanz

Description

@alanz

This is an example of an hlint hint from the emacs log

    {
      "severity": 3,
      "range": {
        "start": {
          "line": 500,
          "character": 0
        },
        "end": {
          "line": 500,
          "character": 50
        }
      },
      "code": "Use camelCase",
      "source": "hlint",
      "message": "/home/alanz/mysrc/git.haskell.org/ghc/compiler/GHC/Parser/PostProcess.hs:501:1-50: Suggestion: Use camelCase\nFound:\n  has_args :: [LMatch GhcPs (LHsExpr GhcPs)] -> Bool\nPerhaps:\n  hasArgs :: [LMatch GhcPs (LHsExpr GhcPs)] -> Bool\n"
    },

I think it would be better to remove the full location from the message part, as it is already captured in the Range and Uri for the diagnostic.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions