Closed
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.