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
I'm seeing these linter warnings on generated code (see screenshots):
error strings should not be capitalized (ST1005)
file mode '420' evaluates to 0644; did you mean '0420'? (SA9002)
Not a big deal, but I'd like to keep my workspace clean of warnings. go-staticcheck seems especially opinionated about how to do this, and wants to put this on the responsibility of library authors: dominikh/go-tools#429 (comment)
There are a few options I can see:
update the codegen to avoid these warnings
emit //lint:file-ignore (or a rule-specific ignore) to silence the warnings
hack around it locally
What do you think? I'm happy to put up a PR once there is a decision
Screenshots:
The text was updated successfully, but these errors were encountered:
I'm seeing these linter warnings on generated code (see screenshots):
Not a big deal, but I'd like to keep my workspace clean of warnings.
go-staticcheck
seems especially opinionated about how to do this, and wants to put this on the responsibility of library authors: dominikh/go-tools#429 (comment)There are a few options I can see:
//lint:file-ignore
(or a rule-specific ignore) to silence the warningsWhat do you think? I'm happy to put up a PR once there is a decision
Screenshots:
The text was updated successfully, but these errors were encountered: