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

ci: add aggressive HLint #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,29 @@ on:
pull_request:

jobs:
hlint:
name: HLint ${{ matrix.project }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project:
- examples
- H
- IHaskell
- inline-r
steps:
- uses: actions/checkout@v4
- name: Set up HLint
uses: haskell-actions/hlint-setup@v2
with:
version: '3.8'
- name: Run HLint
uses: haskell-actions/hlint-run@v2
with:
path: ${{ matrix.project }}
fail-on: warning

build:
name: Build - Windows
runs-on: windows-latest
Expand Down
25 changes: 25 additions & 0 deletions H/.hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- arguments:
- --cross
- extensions:
- name: Haskell2010
- group:
name: generalise
enabled: true
- group:
name: generalise-for-conciseness
enabled: true
- group:
name: partial
enabled: true
- group:
name: future
enabled: true
- group:
name: dollar
enabled: true
- group:
name: monomorphic
enabled: true
- group:
name: teaching
enabled: true
28 changes: 28 additions & 0 deletions IHaskell/.hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- arguments:
- --cross
- extensions:
- name:
- Haskell2010
- TemplateHaskell
- QuasiQuotes
- group:
name: generalise
enabled: true
- group:
name: generalise-for-conciseness
enabled: true
- group:
name: partial
enabled: true
- group:
name: future
enabled: true
- group:
name: dollar
enabled: true
- group:
name: monomorphic
enabled: true
- group:
name: teaching
enabled: true
25 changes: 25 additions & 0 deletions examples/.hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- arguments:
- --cross
- extensions:
- name: Haskell2010
- group:
name: generalise
enabled: true
- group:
name: generalise-for-conciseness
enabled: true
- group:
name: partial
enabled: true
- group:
name: future
enabled: true
- group:
name: dollar
enabled: true
- group:
name: monomorphic
enabled: true
- group:
name: teaching
enabled: true
28 changes: 28 additions & 0 deletions inline-r/.hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- arguments:
- --cross
- extensions:
- name:
- Haskell2010
- CPP
- ForeignFunctionInterface
- group:
name: generalise
enabled: true
- group:
name: generalise-for-conciseness
enabled: true
- group:
name: partial
enabled: true
- group:
name: future
enabled: true
- group:
name: dollar
enabled: true
- group:
name: monomorphic
enabled: true
- group:
name: teaching
enabled: true
Loading