Skip to content

keep-network/golint-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

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: keep-network/golint-action@v1.0.2
with:
  golint-path: './src/...'

About

Ready to use go lint GitHub action

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 70.4%
  • Dockerfile 29.6%