Skip to content

Commit

Permalink
Add trophy of sliceInitialLength (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyab authored Apr 7, 2024
1 parent 63327ca commit 4dce88b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ go vet -vettool="$(which gost)" ./...

# Analyzers

| name | description | practical discovery | inspired by |
<!-- prettier-ignore -->
| name | description | practical discovery | inspired by |
| :----------------- | :--------------------------------------------------------------------------- | :---------------------------------------------- | :---------------------------------------------- |
| closeCloser | report that closer isn't closed | | |
| multipleErrors | report suspicious error concatenation | https://github.com/opentofu/opentofu/issues/539 | |
| noDiscardError | report that error is discarded | https://github.com/cli/cli/issues/8026 | |
| noMutateGlobal | reports indirect mutation of global variable | | https://pkg.go.dev/vuln/GO-2024-2618 |
| openFileFlag | report suspicious combination of flags in `os.OpenFile()` | https://github.com/anchore/go-logger/pull/13 | |
| preferFilepath | report misuse of `"path"` package where `"path/filepath"` should be suitable | https://github.com/anchore/grype/pull/1767 | |
| sliceInitialLength | reports confusion between slice length and capacity | | https://github.com/dominikh/go-tools/issues/112 |
| wrapError | report senseless error wrapping | | |
| closeCloser | report that closer isn't closed | | |
| multipleErrors | report suspicious error concatenation | https://github.com/opentofu/opentofu/issues/539 | |
| noDiscardError | report that error is discarded | https://github.com/cli/cli/issues/8026 | |
| noMutateGlobal | reports indirect mutation of global variable | | https://pkg.go.dev/vuln/GO-2024-2618 |
| openFileFlag | report suspicious combination of flags in `os.OpenFile()` | https://github.com/anchore/go-logger/pull/13 | |
| preferFilepath | report misuse of `"path"` package where `"path/filepath"` should be suitable | https://github.com/anchore/grype/pull/1767 | |
| sliceInitialLength | reports confusion between slice length and capacity | https://github.com/beego/beego/pull/5631 | https://github.com/dominikh/go-tools/issues/112 |
| wrapError | report senseless error wrapping | | |

0 comments on commit 4dce88b

Please sign in to comment.