Skip to content

ArangoGutierrez/GoLinty-Action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Designed by @tri-adam