Haskell-ide-engine: Provide code action to turn off a hlint warning in a project

Created on 21 Nov 2018  路  3Comments  路  Source: haskell/haskell-ide-engine

When a hlint warning is provided, e.g. "use camelCase", you do not always want to apply it in the project.

Provide a code action to add it to the file .hlint.yaml in the project root, creating that file if it does not exist.

- ignore: {name: "Use camelCase"}

If possible, provide another one for a single override at this location. If hlint provides such a feature.

enhancement good first issue

Most helpful comment

Hi, if nobody's working on this issue, could I try working on it?

All 3 comments

Hey, can I help with this issue?

Yes indeed. You basically need to modify the codeActionProvider method in the ApplyRefact plugin, to keep an eye out for hints that look like that, and expose a command that will then write it to that file, creating it if it does not exist.

Shout if you need guidance.

Hi, if nobody's working on this issue, could I try working on it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alanz picture alanz  路  4Comments

xgrommx picture xgrommx  路  4Comments

masaeedu picture masaeedu  路  4Comments

fendor picture fendor  路  4Comments

nponeccop picture nponeccop  路  4Comments