-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area: nolintRelated to nolint directive and nolintlintRelated to nolint directive and nolintlintenhancementNew feature or improvementNew feature or improvement
Description
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:
// nolint
func someFunc() {
anUnusedVar := true
}
while this does work:
func someFunc() {
anUnusedVar := true // nolint
}
It would be very helpful if golangci-lint were compatible with gometalinter for nolint directives.
srenatus, WillAbides, rliebz and andreis
Metadata
Metadata
Assignees
Labels
area: nolintRelated to nolint directive and nolintlintRelated to nolint directive and nolintlintenhancementNew feature or improvementNew feature or improvement