gosec/testutils
Lars d4dc2d2df5
Improve the G307 rule
* Add G307 sample code.
The sample should reflect a defered close that leads to data loss.
Due to IDE auto-complete people tend at least log errors, but not
really care about handling.

* Add more G307 sample code. Propose a way to implement

* Remove unused code. Add example that should not return an error but does

* Remove test for synced closed file for now.
Will add this later

Co-authored-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2021-07-31 23:03:09 +02:00
..
log.go Major rework of codebase 2017-07-19 15:17:00 -06:00
pkg.go Assert that sample code compiles 2021-01-04 09:28:00 +01:00
source.go Improve the G307 rule 2021-07-31 23:03:09 +02:00
visitor.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00