1
0
mirror of https://github.com/securego/gosec.git synced 2024-12-28 21:08:22 +02:00
gosec/rules
Eng Zer Jun 7fd4aef9dc
feat: add os.ReadFile to G304 (#706)
In Go 1.16 or higher, the `io/ioutil` has been deprecated and the
`ioutil.ReadFile` function now calls `os.ReadFile`.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-14 09:53:26 +02:00
..
archive.go feat: adds support for path.Join and for tar archives in G305 2020-08-03 09:17:45 +02:00
bad_defer.go Improve the G307 rule 2021-07-31 23:03:09 +02:00
bind.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
blocklist.go Rename file for consistency 2020-06-29 13:52:47 +02:00
decompression-bomb.go Add io.CopyBuffer function to rule G110 2020-07-29 14:25:45 +02:00
errors.go Add os.Unsetenv to NoErrorCheck whitelist (#702) 2021-10-05 19:30:34 +02:00
fileperms.go Fix formatting issues with gofumpt (#685) 2021-08-18 13:16:21 +02:00
hardcoded_credentials.go feat: adding new keyword for hardcoded credentials (#666) 2021-07-19 11:23:39 +02:00
implicit_aliasing.go Improve the SQL concatenation and string formatting rules to be applied only in the database/sql context 2020-05-27 10:16:56 +02:00
integer_overflow.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
pprof.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
rand.go Fix lint and fail on error in the ci build 2021-05-31 10:44:12 +02:00
readfile.go feat: add os.ReadFile to G304 (#706) 2021-10-14 09:53:26 +02:00
rsa.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
rulelist.go Change naming rule from blacklist to blocklist 2020-06-29 13:45:44 +02:00
rules_suite_test.go Fix lint and fail on error in the ci build 2021-05-31 10:44:12 +02:00
rules_test.go chore(lint): enable errorlint and gci (#698) 2021-09-13 09:40:10 +02:00
sql.go Fix lint and fail on error in the ci build 2021-05-31 10:44:12 +02:00
ssh.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
ssrf.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
subproc.go Add a more generic message for rule g204 (#688) 2021-08-19 15:18:20 +02:00
tempfiles.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
templates.go Fix lint and fail on error in the ci build 2021-05-31 10:44:12 +02:00
tls_config.go Update the tls configuration generate to handle also the NSS alternative names 2020-09-03 10:54:08 +02:00
tls.go fix: add variable assignment checking as part of MinVersion (#669) 2021-07-27 22:03:59 +02:00
unsafe.go Handle properly the gosec module version v2 2020-04-06 09:06:23 -07:00
weakcrypto.go Change naming rule from blacklist to blocklist 2020-06-29 13:45:44 +02:00