head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.6 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.4 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.2 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.2.0.16 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.14 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.12 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.10 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.8 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.6 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.4 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.2 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.1.0.12 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.10 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.8 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.6 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.4 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.2 pkgsrc-2022Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2025.08.31.09.39.25; author bsiegert; state Exp; branches; next 1.2; commitid 0cN4Yeq4gZj8HR8G; 1.2 date 2023.07.09.19.10.21; author bsiegert; state Exp; branches; next 1.1; commitid a7R4dJQtKsAq3awE; 1.1 date 2022.01.20.17.33.09; author bsiegert; state Exp; branches; next ; commitid 1wP2VsDzuOkaIopD; desc @@ 1.3 log @go-staticcheck: update to 2025.1.1 Fixes build with Go 1.25. - The keyify utility has been removed. The recommended alternative is gopls. - staticcheck -merge now exits with a non-zero status if any problems have been found. @ text @@@comment $NetBSD$ bin/staticcheck bin/structlayout bin/structlayout-optimize bin/structlayout-pretty @ 1.2 log @go-staticcheck: update to 2023.1.3 Staticcheck 2023.1.3 This release fixes the following bugs: * A crash when embedding type aliases of unnamed types * A false positive in U1000, claiming that type aliases are unused * A bug in the binary formatter that prevented correct merging behavior for some checks Staticcheck 2023.1.2 (v0.4.2) This release fixes a bug that prevented the binary formatter from working. Staticcheck 2023.1.1 (v0.4.1) This release fixes a crash, a false positive in U1000 and improves the way deprecated API is flagged. 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. * S1011 now recognizes index-based loops. * SA1019 no longer flags tests (internal or external) that use deprecated API from the package under test. Furthermore, entire declaration groups (such as groups of constants) can now be marked as deprecated. * SA4017 now detects more functions, including those in the time package. Additionally, its wording has been made clearer. * SA5010 no longer gets confused by type assertions involving generic types. * 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. Staticcheck now knows about version 2 of the k8s.io/klog package, in particular which functions abort control flow. In addition to these minor improvements, U1000 has been rewritten from the ground up, operating on a program representation more suited to the task. In practice this means that there will be fewer false positives and more true positives. Overall, the rewrite fixes at least eight known bugs, both ones that have been a nuisance for a while, as well as ones newly introduced by generics. @ text @a1 1 bin/keyify a5 1 bin/unused @ 1.1 log @New package, go-staticcheck. Staticcheck is a state of the art linter for the Go programming language. Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules. @ text @d7 1 @