gosec/testutils
Adam Kaplan 0e2a61899a chore: Refactor Sample Code to Separate Files
Split the code in `source.go` to individual sample files, one per rule.
This will help contributors submit samples for new rules, or
improvements to existing rules. The cgo sample was all that was left
after refactoring, which resulted in its own sample file.

Sample code was also formatted to have some level of consistency.
Each sample go "file" attempts to keep the formatting of `gofmt`, and
each code sample is in its own section in the sample file.

Signed-off-by: Adam Kaplan <adam@adambkaplan.com>
2023-12-08 14:46:36 +01:00
..
cgo_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g101_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g102_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g103_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g104_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g106_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g107_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g108_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g109_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g110_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g111_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g112_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g113_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g114_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g201_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g202_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g203_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g204_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g301_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g302_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g303_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g304_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g305_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g306_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g307_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g401_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g402_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g403_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g404_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g501_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g502_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g503_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g504_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g505_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g601_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
g602_samples.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
log.go Major rework of codebase 2017-07-19 15:17:00 -06:00
pkg.go Refactor how ignored issues are tracked 2023-10-13 14:11:08 +02:00
sample_types.go chore: Refactor Sample Code to Separate Files 2023-12-08 14:46:36 +01:00
visitor.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00