Skip to content

Commit a39c65d

Browse files
committed
website: add 2022.2.1 release notes
1 parent c0ef32b commit a39c65d

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
/website/resources
1111
/website/assets/img/sponsors
1212
/website/data/sponsors.toml
13+
/website/data/copyrights.toml

website/content/changes/2022.1.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,18 @@ The following checks have been improved:
4747
- Numerous checks have a better understanding of integer literals and can detect mistakes involving unconventional
4848
literals such as `---1` instead of `-1`
4949
- Some runtime crashes have been fixed
50+
51+
## Staticcheck 2022.1.1 release notes {#2022.1.1}
52+
53+
This release addresses the following false positives, crashes, and infinite loops:
54+
55+
- {{< check "SA1026" >}} and {{< check "SA5008" >}} no longer get stuck in infinite loops when code attempts to marshal cyclic pointer types ({{< issue "1202" >}})
56+
- U1000 no longer crashes when code contains mutually recursive type instantiations ({{< issue "1247" >}})
57+
- U1000 no longer crashes when generic functions use composite literals of type parameter types ({{< commit "0ccdb5c9dad7e96a8e3a3136738192491b37dbdb" >}})
58+
- {{< check "ST1021" >}} now understands type names that are also English articles ({{< issue "1187" >}})
59+
- {{< check "SA4023" >}} no longer gets confused by the nilness of type parameters ({{< issue "1242" >}})
60+
- Some checks no longer crash when trying to generate automated code fixes that involve function literals ({{< issue "1134" >}})
61+
- {{< check "SA1026" >}} no longer claims that `encoding/json` cannot marshal generic maps ([golang/go#52467](https://golang.org/issue/52467))
62+
- The `binary` format has been improved to handle OS-specific file paths correctly, in turn making the `-merge` flag work more reliably ({{< commit "1846305a946b13d350894512c7ac1e5ed71dc331" >}})
63+
- When using the `-merge` or `-matrix` flags, diagnostics reported by {{< check "SA4008" >}} now have to occur in all runs to be reported, reducing the number of false positives ({{< commit "0e678cbe1c8b3f09ac481673453886b1afc9906a" >}})
64+
- U1000 now understands struct type conversions involving type parameters, reducing the number of false positives ({{< commit "90804df0287d9265e565bcabbe19568efbe374fa" >}})

website/data/checks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@
11551155
"NonDefault": false,
11561156
"Options": null,
11571157
"Severity": 3,
1158-
"MergeIf": 0
1158+
"MergeIf": 1
11591159
},
11601160
"SA4009": {
11611161
"Title": "A function argument is overwritten before its first use",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ with .Get 0 }}<a title="commit {{ . }}" href="https://github.com/dominikh/go-tools/commit/{{ . }}">{{ . }}</a>{{ end -}}

website/layouts/shortcodes/issue.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ with .Get 0 }}<a title="issue {{ . }}" href="https://staticcheck.io/issues/{{ . }}">issue {{ . }}</a>{{ end -}}

0 commit comments

Comments
 (0)