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
The // #nosec comments are not being honored when gosec's setting config.global.nosec is explicitly set to false. In the example below, the comment // #nosec G306 should ignore the reporting of the G306 issue like //nolint:gosec, but it does not.
Interestingly, // #false G306 does ignore the reporting.
When running standalone gosec, the // #nosec is honored.
Welcome
typecheck
section of the FAQ.Description of the problem
The
// #nosec
comments are not being honored when gosec's settingconfig.global.nosec
is explicitly set tofalse
. In the example below, the comment// #nosec G306
should ignore the reporting of theG306
issue like//nolint:gosec
, but it does not.Interestingly,
// #false G306
does ignore the reporting.When running standalone gosec, the
// #nosec
is honored.Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation
Supporter
The text was updated successfully, but these errors were encountered: