Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jerome1337/golint-action
Ready to use go lint GitHub action
https://github.com/jerome1337/golint-action
Last synced: 6 days ago
JSON representation
Ready to use go lint GitHub action
- Host: GitHub
- URL: https://github.com/jerome1337/golint-action
- Owner: Jerome1337
- License: mit
- Created: 2020-04-13T13:48:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T15:18:25.000Z (about 2 years ago)
- Last Synced: 2024-11-02T19:33:52.002Z (2 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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:
```bash
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
```yaml
uses: Jerome1337/[email protected]
with:
golint-path: './src/...'
````