From 12cbc34b3f5135d17d4f4671fdf261632821ec62 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Fri, 5 Aug 2022 11:05:23 -0400 Subject: [PATCH] Adds a gh-action for running hlint, ignore hints found. --- .github/workflows/hlint.yml | 26 ++++++++++++++++++++++++++ .hlint.yaml | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/hlint.yml create mode 100644 .hlint.yaml diff --git a/.github/workflows/hlint.yml b/.github/workflows/hlint.yml new file mode 100644 index 0000000..ad351d9 --- /dev/null +++ b/.github/workflows/hlint.yml @@ -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: '["src/", "test/"]' + fail-on: suggestion \ No newline at end of file diff --git a/.hlint.yaml b/.hlint.yaml new file mode 100644 index 0000000..bb9fc63 --- /dev/null +++ b/.hlint.yaml @@ -0,0 +1,3 @@ +# Warnings currently triggered by your code +- ignore: {name: "Eta reduce"} # 1 hint +- ignore: {name: "Use elem"} # 1 hint \ No newline at end of file