Skip to content

GO

Linters

Linter Additional
golangci-lint
GO_GOLANGCI_LINT
GitHub stars autofix
revive
GO_REVIVE
GitHub stars sarif

Linted files

  • File extensions:
    • .go

Configuration in MegaLinter

Variable Description Default value
GO_PRE_COMMANDS List of bash commands to run before the linters None
GO_POST_COMMANDS List of bash commands to run after the linters None
GO_FILTER_REGEX_INCLUDE Custom regex including filter
GO_FILTER_REGEX_EXCLUDE Custom regex excluding filter