Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 6 days ago
JSON representation

GitHub action to run Go lint checks on PR event

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 lint

If 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