Skip to content

Staticcheck 2025.1 (v0.6.0)

Latest
Compare
Choose a tag to compare
@dominikh dominikh released this 11 Feb 21:12
· 0 commits to master since this release
2025.1

Added Go 1.24 support

This release adds support for Go 1.24.

Checks

Changed checks

The following checks have been improved:

  • U1000 treats all fields in a struct as used if the struct has a field of type structs.HostLayout.
  • S1009 now emits a clearer message.
  • S1008 no longer recommends simplifying branches that contain comments (issue 704, issue 1488).
  • S1009 now flags another redundant nil check (issue 1605).
  • QF1002 now emits a valid automatic fix for switches that use initialization statements (issue 1613).