Repository Analysis

golangci/golangci-lint

Fast linters runner for Go

0.9 Likely human-written View on GitHub
0.9
Adjusted Score
0.9
Raw Score
100%
Time Factor
2026-05-27
Last Push
19,022
Stars
Go
Language
238,227
Lines of Code
1681
Files
310
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 7LOW 303

Pattern Findings

310 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block293 hits · 190 pts
SeverityFileLineSnippet
LOW.golangci.yml1# This configuration file is not a recommendation.
LOW.goreleaser.yml101## The release is done manually and locally, with goreleaser after the release of the other elements.
LOW.golangci.next.reference.yml1# This file contains all available configuration options
LOW.golangci.next.reference.yml341 # Rules to apply.
LOW.golangci.next.reference.yml361 # - `strict`: allowed only if it matches the allow list and either doesn't match the deny list or the allow ru
LOW.golangci.next.reference.yml421 empty-line: false
LOW.golangci.next.reference.yml441
LOW.golangci.next.reference.yml461 # linters:
LOW.golangci.next.reference.yml501 # Program elements to check for exhaustiveness.
LOW.golangci.next.reference.yml521 # Only run exhaustive check on switches with "//exhaustive:enforce" comment.
LOW.golangci.next.reference.yml541 - 'example\.com/package\.ExampleStruct[\d]{1,2}'
LOW.golangci.next.reference.yml581 # Optional message that gets included in error reports.
LOW.golangci.next.reference.yml601 # This makes it possible to handle import renaming and forbid struct fields and methods.
LOW.golangci.next.reference.yml621 # If lower than 0, disable the check.
LOW.golangci.next.reference.yml661 # Don't trigger warnings for HaveLen(0)
LOW.golangci.next.reference.yml701 # Default: 30 (but we recommend 10-20)
LOW.golangci.next.reference.yml721 # Default: 3
LOW.golangci.next.reference.yml741 # Represents a string passed as an argument to a function call.
LOW.golangci.next.reference.yml761 # Ignore string literals in calls to these functions
LOW.golangci.next.reference.yml781 # https://go-critic.com/overview.html#appendassign
LOW.golangci.next.reference.yml801 # Detects suspicious regexp patterns.
LOW.golangci.next.reference.yml821 - captLocal
LOW.golangci.next.reference.yml841 # https://go-critic.com/overview.html#deferinloop
LOW.golangci.next.reference.yml861 # Detects multiple imports of the same package under different aliases.
LOW.golangci.next.reference.yml881 - emptyFallthrough
LOW.golangci.next.reference.yml901 # https://go-critic.com/overview.html#filepathjoin
LOW.golangci.next.reference.yml921 # Detects when imported package names shadowed in the assignments.
LOW.golangci.next.reference.yml941 - newDeref
LOW.golangci.next.reference.yml961 # https://go-critic.com/overview.html#preferfprint
LOW.golangci.next.reference.yml981 # Detects redundant fmt.Sprint calls.
LOW.golangci.next.reference.yml1001 - singleCaseSwitch
LOW.golangci.next.reference.yml1021 # https://go-critic.com/overview.html#sqlquery
LOW.golangci.next.reference.yml1041 # Detects TODO comments without detail/assignee.
LOW.golangci.next.reference.yml1061 - typeUnparen
LOW.golangci.next.reference.yml1081 # https://go-critic.com/overview.html#unnecessarydefer
LOW.golangci.next.reference.yml1261 # Min number of statements inside a branch to trigger a warning.
LOW.golangci.next.reference.yml1281 #
LOW.golangci.next.reference.yml1301 # By default, if a path is relative, it is relative to the directory where the golangci-lint command is execut
LOW.golangci.next.reference.yml1341 default: all
LOW.golangci.next.reference.yml1481 replace-allow-list:
LOW.golangci.next.reference.yml1721 global:
LOW.golangci.next.reference.yml1741 # Maximum allowed entropy of the string.
LOW.golangci.next.reference.yml1761 # - Println
LOW.golangci.next.reference.yml1781 # Regexp pattern to find potential directory traversal.
LOW.golangci.next.reference.yml1821 govet:
LOW.golangci.next.reference.yml1921 # Check for unused results of calls to some functions.
LOW.golangci.next.reference.yml2001 unusedresult:
LOW.golangci.next.reference.yml2021 # Default: false
LOW.golangci.next.reference.yml2101 check-escaping-errors: true
LOW.golangci.next.reference.yml2121 # - `stdlib` for standard library
LOW.golangci.next.reference.yml2141 #
LOW.golangci.next.reference.yml2161 klog: false
LOW.golangci.next.reference.yml2201 # Typos to ignore.
LOW.golangci.next.reference.yml2361 # Enable to require nolint directives to mention the specific linter being suppressed.
LOW.golangci.next.reference.yml2381 # Default: false
LOW.golangci.next.reference.yml2401 # Default: true
LOW.golangci.next.reference.yml2441 - int
LOW.golangci.next.reference.yml2501 # - `MarshalYAML`
LOW.golangci.next.reference.yml3181 exclude: [""]
LOW.golangci.next.reference.yml3201 # https://github.com/go-simpler/sloglint#static-message
233 more matches not shown…
Self-Referential Comments7 hits · 20 pts
SeverityFileLineSnippet
MEDIUM.golangci.next.reference.yml1# This file contains all available configuration options
MEDIUM.golangci.next.reference.yml4# This file is not a configuration example,
MEDIUM.golangci.next.reference.yml4946 # Define the Go version limit.
MEDIUM.golangci.reference.yml1# This file contains all available configuration options
MEDIUM.golangci.reference.yml4# This file is not a configuration example,
MEDIUM.golangci.reference.yml4909 # Define the Go version limit.
MEDIUMdocs/data/configuration_file.json7 "run": "# Options for analysis running.\nrun:\n # Timeout for total work, e.g. 30s, 5m, 5m30s.\n # If the value is l
Fake / Example Data8 hits · 12 pts
SeverityFileLineSnippet
LOW…/golinters/lll/testdata/lll_max_scan_token_size_cgo.go26// Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis
LOW…/golinters/lll/testdata/lll_max_scan_token_size_cgo.go26// Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis
LOWpkg/golinters/lll/testdata/lll_max_scan_token_size.go6// Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis
LOWpkg/golinters/lll/testdata/lll_max_scan_token_size.go6// Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis
LOWpkg/golinters/godot/testdata/godot.go13// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
LOWpkg/golinters/godot/testdata/godot.go13// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
LOWpkg/golinters/godot/testdata/fix/in/godot.go15// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
LOWpkg/golinters/godot/testdata/fix/in/godot.go15// Foo Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOW.github/workflows/pr-tests.yml18 # Check if there is any dirty change for go mod tidy
LOW.github/workflows/pr-checks.yml18 # Check if there is any dirty change for go mod tidy