gosec/testutils
Cosmin Cojocar d5a9c73723
Remove rule G307 which checks when an error is not handled when a file or socket connection is closed (#935)
* Remove read only types from unsafe defer rules

* Remove rule G307 which checks when an error is not handled when a file or socket connection is closed

This doesn't seem to bring much value from security perspective, and it caused a lot of controversy since
is a very common pattern in Go.

* Mentioned in documentation that rule G307 is retired

* Clean up the test for rule G307
2023-02-24 14:04:13 +01:00
..
log.go Major rework of codebase 2017-07-19 15:17:00 -06:00
pkg.go chore: fix lint warnings 2022-08-08 10:56:19 +02:00
source.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
visitor.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00