| 1 |
--- |
| 2 |
title: Staticcheck 2025.1 release notes |
| 3 |
linkTitle: "2025.1 (v0.6.0)" |
| 4 |
weight: -10 |
| 5 |
--- |
| 6 |
|
| 7 |
## Added Go 1.24 support |
| 8 |
|
| 9 |
This release adds support for Go 1.24. |
| 10 |
|
| 11 |
## Checks |
| 12 |
|
| 13 |
### Changed checks |
| 14 |
|
| 15 |
The following checks have been improved: |
| 16 |
|
| 17 |
- {{< check "U1000" >}} treats all fields in a struct as used if the struct has |
| 18 |
a field of type `structs.HostLayout`. |
| 19 |
- {{< check "S1009" >}} now emits a clearer message. |
| 20 |
- {{< check "S1008" >}} no longer recommends simplifying branches that contain |
| 21 |
comments ({{< issue "704" >}}, {{< issue "1488" >}}). |
| 22 |
- {{< check "S1009" >}} now flags another redundant nil check ({{< issue "1605" >}}). |
| 23 |
- {{< check "QF1002" >}} now emits a valid automatic fix for switches that use |
| 24 |
initialization statements ({{< issue "1613" >}}). |
| 25 |
|
| 26 |
## Staticcheck 2025.1.1 release notes {#2025.1.1} |
| 27 |
|
| 28 |
This is a re-release of 2025.1 but with prebuilt binaries that have been built |
| 29 |
with Go 1.24.1. |