gosec/rules
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
..
archive.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
bind.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
blocklist.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
decompression-bomb.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
directory-traversal.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
errors.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
fileperms.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
fileperms_test.go fileperms: bitwise permission comparison (#883) 2022-10-20 08:48:40 +02:00
hardcoded_credentials.go Feature: G101 match variable values and names (#971) 2023-06-15 10:18:03 +02:00
http_serve.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
implicit_aliasing.go Recognize struct field in G601 2023-06-02 17:17:10 +02:00
integer_overflow.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
math_big_rat.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
pprof.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rand.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
readfile.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rsa.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
rulelist.go Remove rule G307 which checks when an error is not handled when a file or socket connection is closed (#935) 2023-02-24 14:04:13 +01:00
rules_suite_test.go Update to ginkgo v2 (#753) 2022-01-03 18:11:35 +01:00
rules_test.go Feature: G101 match variable values and names (#971) 2023-06-15 10:18:03 +02:00
slowloris.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
sql.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
ssh.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
ssrf.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
subproc.go Fix typos in comments, vars and tests 2023-05-30 08:26:41 +02:00
tempfiles.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
templates.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
tls.go Extract the issue in its own package 2023-02-16 09:45:28 +01:00
tls_config.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
unsafe.go Fix some linting warnings 2023-03-20 10:25:45 +01:00
weakcrypto.go Fix some linting warnings 2023-03-20 10:25:45 +01:00