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

Add a gh-action for hlint with hints ignored. #173

Merged
merged 1 commit into from
Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/hlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: hlint

on:
pull_request:
push:

jobs:
build:
name: hlint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: haskell/actions/hlint-setup@v2
name: Set up HLint
with:
version: "3.4"

- uses: haskell/actions/hlint-run@v2
name: hlint
with:
path: '["bench/", "src/", "store-core/", "store-streaming/", "test/"]'
fail-on: suggestion
17 changes: 17 additions & 0 deletions .hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Warnings currently triggered by your code
- ignore: {name: "Avoid lambda"} # 2 hints
- ignore: {name: "Eta reduce"} # 2 hints
- ignore: {name: "Evaluate"} # 1 hint
- ignore: {name: "Fuse mapM_/map"} # 1 hint
- ignore: {name: "Redundant $"} # 2 hints
- ignore: {name: "Redundant bang pattern"} # 2 hints
- ignore: {name: "Redundant bracket"} # 9 hints
- ignore: {name: "Redundant where"} # 1 hint
- ignore: {name: "Unused LANGUAGE pragma"} # 5 hints
- ignore: {name: "Use <$>"} # 2 hints
- ignore: {name: "Use const"} # 4 hints
- ignore: {name: "Use infix"} # 1 hint
- ignore: {name: "Use lambda-case"} # 3 hints
- ignore: {name: "Use list comprehension"} # 1 hint
- ignore: {name: "Use uncurry"} # 1 hint
- ignore: {name: "Use zipWith"} # 1 hint