gosec/testutils
Morgen Malinoski abeab1092d
Feature: G101 match variable values and names (#971)
* G101 now checks LHS of ValueAssignments for patternValue.

* Added matching string literals in equality check.

* Added patternValue matching for ValueSpec.

* Ran gci to fix linter error.

* Added tests and updated regex to be more inclusive.

* Addressed short-circuit eval for isHighEntropy and non-standard ok variable.

* Resolved unhandled error and added more tests.

* Flattened code to make it more readable.

* Added better comments.

* Added new regex for Google API Key, GitHub PAT, and GoogleOAuth.

* Gofmt'ed the test cases.
2023-06-15 10:18:03 +02:00
..
log.go Major rework of codebase 2017-07-19 15:17:00 -06:00
pkg.go correct gci linter (#946) 2023-03-30 09:31:24 +02:00
source.go Feature: G101 match variable values and names (#971) 2023-06-15 10:18:03 +02:00
visitor.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00