Skip to content

Bump HLint to version 3.5 and address most of the new hints#4391

Merged
JordanMartinez merged 8 commits intopurescript:masterfrom
rhendric:rhendric/bump-hlint
Sep 26, 2022
Merged

Bump HLint to version 3.5 and address most of the new hints#4391
JordanMartinez merged 8 commits intopurescript:masterfrom
rhendric:rhendric/bump-hlint

Conversation

@rhendric
Copy link
Copy Markdown
Member

Description of the change

Fixes #4385.


Checklist:

  • Added a file to CHANGELOG.d for this PR (see CHANGELOG.d/README.md)
  • Added myself to CONTRIBUTORS.md (if this is my first contribution)
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@rhendric
Copy link
Copy Markdown
Member Author

rhendric commented Sep 25, 2022

Oh, hi glibc hell. The newest HLint binary that doesn't have a glibc 2.27 dependency seems to be 3.3.1, but that version doesn't parse some stuff I'm working on and so I'd rather use 3.5 if we can. [Edit: Got it, just switched back to the official image for the lint job only and that did the trick.]

Once I do get this working... as we did in #4090, probably best to merge this with a traditional merge commit instead of squashing, so that individual hints can be backed out if we change our mind about any of them.

- ignore: {name: "Avoid lambda using `infix`"}
- ignore: {name: "Fuse mapM/map"}
- ignore: {name: "Eta reduce"} # This warning will often make suggestions that are no longer valid due to simplified subsumption
- ignore: {name: "Redundant <$>"}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this is included for better clarity on the AST traversals, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup.

@JordanMartinez JordanMartinez merged commit 4a50708 into purescript:master Sep 26, 2022
@purefunctor
Copy link
Copy Markdown
Member

purefunctor commented Sep 27, 2022

After this was merged, the linting workflow seems to complain about:

/root/.stack/compiler-tools/x86_64-linux/ghc-9.2.3/bin/weeder: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Any clues as to why? I was guessing this is because of the buster image and pre-compiled dependencies being loaded in somehow...

@rhendric rhendric deleted the rhendric/bump-hlint branch September 27, 2022 15:12
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

Successfully merging this pull request may close these issues.

Bump hlint to v3.x

3 participants