Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arangogutierrez/golinty-action
GitHub action to run Go lint checks on PR event
https://github.com/arangogutierrez/golinty-action
action go golang lint linter
Last synced: 9 days ago
JSON representation
GitHub action to run Go lint checks on PR event
- Host: GitHub
- URL: https://github.com/arangogutierrez/golinty-action
- Owner: ArangoGutierrez
- License: mit
- Created: 2019-01-30T22:45:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-22T20:41:56.000Z (about 5 years ago)
- Last Synced: 2024-08-02T07:13:42.825Z (3 months ago)
- Topics: action, go, golang, lint, linter
- Language: Shell
- Size: 85 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoLinty-Action
GitHub action to run Go lint checks on PR event
De-linting is a time-consuming process. The aim of LINTY is to support an iterative process to clear out lint. It uses a configuration file which lists packages that currently contain lint, and ensures that:
- packages listed in the configuration are removed once they are free of lint
- packages not listed in the configuration continue to be free of lintIf either of the above statements is FALSE, LINTY prints out a warning and exits. If both statements are TRUE, LINTY prints out a table of lint counts for the packages that are listed in its configuration.
## Usage
Repo must have a `.linty/linty.conf` file on the source tree root
```yaml
name: Lint
on:
pull_request:
branches:
- master
jobs:Lint:
name: GoLinty
runs-on: ubuntu-latest
steps:- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Go-Linty
uses: ArangoGutierrez/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```> Designed by @tri-adam