We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ignore-comments
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typecheck
Brew
funlen's ignore-comments setting is the opposite of what is intended.
golangci-lint/pkg/golinters/funlen/funlen.go
Line 22 in 988b38e
https://golangci-lint.run/usage/linters/#funlen
linters-settings: funlen: ... # Ignore comments when counting lines. # Default false ignore-comments: true
$ golangci-lint --version golangci-lint has version 1.64.8 built with go1.24.1 from 8b37f14 on 2025-03-17T16:54:02Z
linters: disable-all: true enable: - funlen linters-settings: funlen: lines: 2 ignore-comments: true
$ go version go version go1.24.1 darwin/arm64
$ golangci-lint cache clean $ golangci-lint run main.go:3:6: Function 'main' is too long (4 > 2) (funlen) func main() { ^
package main func main() { // Comment 1 // Comment 2 // Comment 3 print("Hello, world!") }
The text was updated successfully, but these errors were encountered:
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Sorry, something went wrong.
ldez
Successfully merging a pull request may close this issue.
Welcome
typecheck
section of the FAQ.How did you install golangci-lint?
Brew
Description of the problem
funlen's
ignore-comments
setting is the opposite of what is intended.golangci-lint/pkg/golinters/funlen/funlen.go
Line 22 in 988b38e
https://golangci-lint.run/usage/linters/#funlen
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation
Supporter
The text was updated successfully, but these errors were encountered: