-
-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Staticcheck 2025.1 release notes | ||
linkTitle: "2025.1 (v0.6.0)" | ||
weight: -10 | ||
--- | ||
|
||
## Added Go 1.24 support | ||
|
||
This release adds support for Go 1.24. | ||
|
||
## Checks | ||
|
||
### Changed checks | ||
|
||
The following checks have been improved: | ||
|
||
- {{< check "U1000" >}} treats all fields in a struct as used if the struct has | ||
a field of type `structs.HostLayout`. | ||
- {{< check "S1009" >}} now emits a clearer message. | ||
- {{< check "S1008" >}} no longer recommends simplifying branches that contain | ||
comments ({{< issue "704" >}}, {{< issue "1488" >}}). | ||
- {{< check "S1009" >}} now flags another redundant nil check ({{< issue "1605" >}}). | ||
- {{< check "QF1002" >}} now emits a valid automatic fix for switches that use | ||
initialization statements ({{< issue "1613" >}}). |