Please check if the PR fulfills these requirements
[x] Tests for the changes have been added
[ ] Docs have been added / updated
[x] All CI checks are green
What kind of change does this PR introduce?
Bug Fix
What is the current behavior?Issue was brought up that there are false positives for the goland keyword detector. This is verified since the regex that should be tracked - FOLLOWED_BY_COLON_EQUAL_SIGNS_REGEX - tracks :=? assignment. Where the equal sign is optional. Therefore we detect key: secret.
What is the new behavior (if this is a feature change)?
The equal sign cannot be optional in golang. The := operator is used for assignment and declaration. This is what we are trying to track - not the possibility of :.
Please check if the PR fulfills these requirements
[x] Tests for the changes have been added
[ ] Docs have been added / updated
[x] All CI checks are green
What kind of change does this PR introduce? Bug Fix
What is the current behavior? Issue was brought up that there are false positives for the goland keyword detector. This is verified since the regex that should be tracked - FOLLOWED_BY_COLON_EQUAL_SIGNS_REGEX - tracks
:=?
assignment. Where the equal sign is optional. Therefore we detectkey: secret
.What is the new behavior (if this is a feature change)? The equal sign cannot be optional in golang. The
:=
operator is used for assignment and declaration. This is what we are trying to track - not the possibility of:
.Does this PR introduce a breaking change?
No
Other information: