mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
lint: enable (some) gocritic checks (#3238)
* lint: gocritic configuration * lint: octal literals * lint: gocritic (filepath.Join) * ling: gocritic (badRegexp, regexpSimplify) * lint: gocritic (preferStringWriter) * lint: gocritic (emtpyStringTest) * filepath.Clean(a+b) -> filepath.Join(a, b) * gofumpt
This commit is contained in:
parent
5f22c78fcf
commit
b93b240bd4
45 changed files with 143 additions and 131 deletions
|
@ -21,7 +21,7 @@ func TestListFilesAtPath(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
_, err = os.Create(filepath.Join(dir, "slack"))
|
||||
require.NoError(t, err)
|
||||
err = os.Mkdir(filepath.Join(dir, "somedir"), 0755)
|
||||
err = os.Mkdir(filepath.Join(dir, "somedir"), 0o755)
|
||||
require.NoError(t, err)
|
||||
_, err = os.Create(filepath.Join(dir, "somedir", "inner"))
|
||||
require.NoError(t, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue