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
Regarding customizing a configuration file to load G101 rules, where keywords with "-" cannot be matched.
Steps to reproduce the behavior
Step 1 : The configuration file
Step 2 : Need to match content
Step 3 : gosec loading configuration file for matching scan It does not match any content
When I replace the keywords with "_" form, gosec can be matched normally
Step 4 : Escape using escape characters
Still unable to match the content
So, I don't know where the problem is occurring that is preventing me from matching keywords with '-'. Can you help me identify where the issue lies? Thank you.
gosec version
2.19.0
Go version (output of 'go version')
Operating system / Environment
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered:
In Go an identifier can only contains alphanumerical characters and underscore not the minus sign. Please have a look at the specifications: identifier.
Summary
Regarding customizing a configuration file to load G101 rules, where keywords with "-" cannot be matched.
Steps to reproduce the behavior
Step 1 : The configuration file
Step 2 : Need to match content
Step 3 : gosec loading configuration file for matching scan
It does not match any content
When I replace the keywords with "_" form, gosec can be matched normally
Step 4 : Escape using escape characters
Still unable to match the content
So, I don't know where the problem is occurring that is preventing me from matching keywords with '-'. Can you help me identify where the issue lies? Thank you.
gosec version
2.19.0
Go version (output of 'go version')
Operating system / Environment
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: