-
|
Hello everybody Ran this in project directory: and got gosec errors which are in "linters-settings: excludes" section for gosec in .golangci.yml (G404, G501, etc) Tried type G errors with quotes like "G404" - no sense Errors disapears from output only if i pointed them in exclude-rules: section like this But i wanna dont just filter output but disable checking for this issues. PS: attached golangci.yml in md format. Unfortunately i cant show you linted code for more convinience |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hello, The content of the field https://regex101.com/r/SkTivv/1 The right expression is https://regex101.com/r/U2Kerh/1 Also enable or disable a rule for |
Beta Was this translation helpful? Give feedback.
Hello,
The content of the field
textis a regular expression, thenG[104,401,404,501,505]means the letterGfollowed by one character in the group104,401,404,501,505(ie:0145,)https://regex101.com/r/SkTivv/1
The right expression is
G(104|401|404|501|505)https://regex101.com/r/U2Kerh/1
Also enable or disable a rule for
gosec, you can do it in thegosecdedicated section: https://golangci-lint.run/usage/linters/#gosec