A false positive in SA9001 involving control flow statements (#488)
A false positive in ST1003, complaining about the names of fuzz functions (#1420)
Staticcheck 2023.1.3 (v0.4.3)
This release fixes the following bugs:
A crash when embedding type aliases of unnamed types (issue 1361)
A false positive in U1000, claiming that type aliases are unused (issue 1365)
A bug in the binary formatter that prevented correct merging behavior for some checks (issue 1372)
Staticcheck 2023.1.2 (v0.4.2)
This release fixes a bug that prevented the binary formatter from working (issue 1370).
Staticcheck 2023.1.1 (v0.4.1)
This release fixes a crash, a false positive in U1000 (issue 1360) and improves the way deprecated API is flagged (issue 1318).
When targeting a Go version that is older than the version that deprecated an API, SA1019 will no longer flag the use even if there is already an alternative available in the targeted Go version.
For example, math/rand.Seed has been deprecated in Go 1.20, but an alternative has existed since Go 1.0. In the past, we would flag uses of Seed even if targeting e.g. Go 1.19, to encourage better forwards compatibility. This can lead to unnecessary churn, however, because the correct change may depend on the Go version in use. For example, for Seed before Go 1.20, the alternative is to use a separate instance of math/rand.Rand, whereas in Go 1.20, a possible alternative is to simply drop the call to Seed.
Staticcheck 2023.1 (v0.4.0)
Staticcheck 2023.1 adds support for Go 1.20, brings minor improvements to various checks, and replaces U1000 with a new implementation.
The following checks have been improved:
The wording of S1001 has been made clearer for cases involving arrays. Furthermore, it no longer suggests using copy when the function has been shadowed.
SA1019 no longer flags tests (internal or external) that use deprecated API from the package under test (issue 1285). Furthermore, entire declaration groups (such as groups of constants) can now be marked as deprecated (issue 1313).
SA4017 now detects more functions, including those in the time package (issue 1353). Additionally, its wording has been made clearer.
SA5010 no longer gets confused by type assertions involving generic types (issue 1354).
ST1005 no longer flags errors that start with alpha-numeric acronyms such as P384.
Improvements to our intermediate representation may allow various checks to find more problems.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps honnef.co/go/tools from 0.4.5 to 0.4.6.
Release notes
Sourced from honnef.co/go/tools's releases.
... (truncated)
Commits
f57fec2
Version 2023.1.6 (v0.4.6)a36643e
website: go mod tidyfd8f26e
website: add 2023.1.6 release notes7e20d40
go/types/typeutil: when flattening, don't ignore embedded types that aren't s...0aaa8fa
Update dependency on golang.org/x/toolsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show