Skip to content

Go-linter

Actions
Lint your code using golint
v1.0.3
Latest
Star (6)

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/[email protected]
with:
  golint-path: './src/...'

Go-linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Lint your code using golint
v1.0.3
Latest

Go-linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.