Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hlint version #3

Open
leondryu opened this issue Dec 5, 2018 · 2 comments
Open

hlint version #3

leondryu opened this issue Dec 5, 2018 · 2 comments

Comments

@leondryu
Copy link

leondryu commented Dec 5, 2018

I think you should tell us the hlint version you used. I dont know haskell and haskell's hlint(I only use this sonarqube tool to check haskell code), but I think diffierent hlint has different rules. For example, I use HLint v2.1.11 to generate the hlintReport.json, but its rule must be very different from the rule in your sonar-haskell plugin, so the sonar scanner keeps reporting errors like 'The rule 'haskell-haskelllint:hlint:Use readTVarIO' does not exist', 'The rule 'haskell-haskelllint:hlint:Redundant return' does not exist', and so on.

@sir4ur0n
Copy link
Owner

sir4ur0n commented Dec 5, 2018

Hey,

As explained in the readme, I took back this project from another person. The exhaustive list of rules is something I did not (yet) change.
I took a look once but for the life of me, I couldn't find a way to retrieve the exhaustive list of rules HLint can produce.

Should you find a way, I'd be happy to integrate it, or even better, if you open a PR to update the rules 😄

In case you're interested, the current list of rules can be found here: https://github.com/Sir4ur0n/sonar-haskell/blob/master/src/main/resources/haskelllint-rules.xml

Cheers

@leondryu
Copy link
Author

Hi,
I use the haskelllint-rules.xml file from the project "https://github.com/uartois/sonar-haskell", and add some rules to it.(based on the error messsages when i run sonarqube-haskell), my ubuntu HLint version is "HLint v2.1.11, (C) Neil Mitchell 2006-2018".
here attached my haskellint-rules text files. i don't konw if this is a common solution but it works for me. hope it can help.
haskelllint-rules.txt
best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants