golangci-lint
0.0% Savings
0 Commands
0 Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
command = "golangci-lint"
strip_ansi = true
collapse_empty_lines = true
skip = [
"^INFO ",
"^WARN ",
"^level=",
"^DEBUG ",
"^Run took ",
"^Linters took ",
]
keep = [
"\\.go:\\d+",
"^\\d+ issue",
]
[on_success]
output = "✓ golangci-lint: ok"
[on_failure]
tail = 40
Examples
failure shows lint findings
~74 tokens → ~40 tokens
(46% saved)
Raw output
INFO [config_reader] Config search paths: [./] INFO [lintersdb] Active linters: [errcheck gosimple govet] functions/get-user/handler.go:45:2: unused variable 'x' (deadcode) functions/list-users/handler.go:12:1: exported function `ListUsers` should have comment (golint) INFO [runner] Run took 15.2s
Filtered output
functions/get-user/handler.go:45:2: unused variable 'x' (deadcode) functions/list-users/handler.go:12:1: exported function `ListUsers` should have comment (golint)
success shows ok message
~49 tokens → ~5 tokens
(90% saved)
Raw output
INFO [config_reader] Config search paths: [./ /Users/josef/projects/gw/gw-api] INFO [lintersdb] Active linters: [errcheck gosimple govet ineffassign staticcheck unused] INFO [runner] Run took 12.5s
Filtered output
✓ golangci-lint: ok
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters