You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In gometalinter, nolint directives can be applied to a branch in the AST, as well as directly on the offending line. golangci-lint does not support the former.
For example, the following does not work:
// nolintfuncsomeFunc() {
anUnusedVar:=true
}
while this does work:
funcsomeFunc() {
anUnusedVar:=true// nolint
}
It would be very helpful if golangci-lint were compatible with gometalinter for nolint directives.
The text was updated successfully, but these errors were encountered:
In gometalinter, nolint directives can be applied to a branch in the AST, as well as directly on the offending line. golangci-lint does not support the former.
For example, the following does not work:
while this does work:
It would be very helpful if golangci-lint were compatible with gometalinter for nolint directives.
The text was updated successfully, but these errors were encountered: