GitHub Action
Scan code with HLint
This is a GitHub action which scans Haskell code using HLint and uploads its suggested improvements to GitHub code scanning.
A minimal example for setting up code scanning with HLint:
on:
push:
branches: ['main']
jobs:
scan:
name: Scan code with HLint
runs-on: ubuntu-latest
permissions:
# Needed to upload results to GitHub code scanning.
security-events: write
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/hlint-scan@v0
None of the inputs are required. You only need to set them if the defaults do not work for your situation.
binary
: Path to the hlint binary.
path
: Path of file or directory that HLint will be told to scan.
category
: String used by GitHub code scanning for matching the analyses.
sarif-id
: The ID of the uploaded SARIF file.
This does not fail the workflow when HLint finds any code which could be improved. In other words, this action is not intended to be used as a status check. Instead, its goal is to file GitHub code scanning alerts. To use HLint for status checks, e.g., during pushes or pull requests, see haskell/actions/hlint-run instead.
Be nice; see CODE_OF_CONDUCT.md
for details.
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.
This project is not an official Google project. It is not supported by Google, and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.