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

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golint Action

This action execute golint command and return the output if the command fail.

Inputs

golint-path

Path where your Go files are. This path will be used by golint command to check code of this files.

Default one is the repository root including all sub-directories (./...).

FYI, the /... suffix is used to includes all sub-directories, remove it if you only want to check files of the given directory.

Outputs

golint-output

The golint output if the command fail.

For Example:

Found 6 lint suggestions; failing.
models/Alignment.go:3:6: exported type Alignment should have comment or be unexported
models/Border.go:3:6: exported type Border should have comment or be unexported
models/CellStyle.go:3:6: exported type CellStyle should have comment or be unexported
models/Fill.go:3:6: exported type Fill should have comment or be unexported
models/Font.go:3:6: exported type Font should have comment or be unexported
models/Protection.go:3:6: exported type Protection should have comment or be unexported

Example Usage

uses: Jerome1337/golint-action@v1.0.2
with:
  golint-path: './src/...'

About

Ready to use go lint GitHub action

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages