1
0
mirror of https://github.com/securego/gosec.git synced 2025-02-21 19:06:30 +02:00
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
..
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-02-16 09:45:28 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2022-01-03 18:11:35 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00
2023-02-16 09:45:28 +01:00
2023-03-20 10:25:45 +01:00
2023-03-20 10:25:45 +01:00