-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
URLs are also reported as too long #12
Comments
Same spirit of #11 |
I made golangci/golangci-lint#3983 to track this in golangci-lint repository. |
.golangci.ymllinters:
disable-all: true
enable:
- lll
- typecheck
linters-settings:
lll:
line-length: 50 without nolintpackage main
import "fmt"
// main runs the app.
// https://github.com/walle/lll/blob/4438bccd245f7e87a5a69023625f01e7035c05c0/utils.go#L15
func main() {
fmt.Println("Foo")
} $ golangci-lint run
main.go:6: line is 90 characters (lll)
// https://github.com/walle/lll/blob/4438bccd245f7e87a5a69023625f01e7035c05c0/utils.go#L15
$ with nolintpackage main
import "fmt"
// main runs the app.
// https://github.com/walle/lll/blob/4438bccd245f7e87a5a69023625f01e7035c05c0/utils.go#L15
//
//nolint:lll
func main() {
fmt.Println("Foo")
} $ golangci-lint run
$
|
Yes, but |
Yes, I know because it's what I said in this PR... I was just waiting for the merge of my PR before adding a new comment here. |
I find this annoying, but apparently if you have a really long link, and it's the only thing in the line, it is still being reported.
I often put in comments links to other projects as a reference e.g.
nolint:lll
is also not respected in commentsThe text was updated successfully, but these errors were encountered: