(cloned from haskell/actions#277 by request of @andreasabel )
Question
Does the hlint-run action currently support .hlint.yaml files? If so, what is the recommended way to pass the .hlint.yaml file to the action?
Details
I have the following project structure:
/
├─ .github/
│ ├─ workflows/
│ │ ├─ hlint.yaml
├─ project/
│ ├─ src/
│ ├─ project.cabal
│ ├─ .hlint.yml
Here is .hlint.yaml:
- ignore: {name: Redundant bracket}
Here is (the relevant part of) .github/workflows/hlint.yaml:
name: build
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
hlint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: project
steps:
- uses: actions/checkout@v3
- name: 'Set up HLint'
uses: haskell/actions/hlint-setup@v2
- name: 'Run HLint'
uses: haskell/actions/hlint-run@v2
with:
path: .
fail-on: never
In CI, the hlint-run action is successful, but I still get a "redundant bracket" warning. Locally, running hlint automatically detects the .hlint.yaml file and suppresses the warning.
(cloned from haskell/actions#277 by request of @andreasabel )
Question
Does the
hlint-runaction currently support.hlint.yamlfiles? If so, what is the recommended way to pass the.hlint.yamlfile to the action?Details
I have the following project structure:
Here is
.hlint.yaml:Here is (the relevant part of)
.github/workflows/hlint.yaml:In CI, the
hlint-runaction is successful, but I still get a "redundant bracket" warning. Locally, runninghlintautomatically detects the.hlint.yamlfile and suppresses the warning.