ArangoGutierrez / GoLinty-Action

GitHub action to run Go lint checks on PR event

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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/GoLinty-Action@go-1.13rc1-alpine
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Designed by @tri-adam

About

GitHub action to run Go lint checks on PR event

License:MIT License


Languages

Language:Shell 84.9%Language:Dockerfile 15.1%