Giter Site home page Giter Site logo

hlint-run's Introduction

haskell-actions

Repository to document and discuss the haskell-actions organization

Logo

The logo, which also serves as its profile picture, is based on the Thompson-Wheeler logo.

logo.svg

hlint-run's People

Contributors

a5ob7r avatar abooij avatar andreasabel avatar anton-latukha avatar dependabot[bot] avatar hross avatar jneira avatar kleidukos avatar mihaimaruseac avatar newhoggy avatar pavelzw avatar rethab avatar rwe avatar ryanglscott avatar sgadkar2 avatar tclem avatar thboop avatar ulysses4ever avatar wismill avatar

Watchers

 avatar  avatar

hlint-run's Issues

`haskell/actions/hlint-run` doesn't detect `.hlint.yaml` file in working directory

(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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.