Skip to content

Commit

Permalink
website: add 2022.2.1 release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Apr 24, 2022
1 parent c0ef32b commit a39c65d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
/website/resources
/website/assets/img/sponsors
/website/data/sponsors.toml
/website/data/copyrights.toml
15 changes: 15 additions & 0 deletions website/content/changes/2022.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,18 @@ The following checks have been improved:
- Numerous checks have a better understanding of integer literals and can detect mistakes involving unconventional
literals such as `---1` instead of `-1`
- Some runtime crashes have been fixed

## Staticcheck 2022.1.1 release notes {#2022.1.1}

This release addresses the following false positives, crashes, and infinite loops:

- {{< check "SA1026" >}} and {{< check "SA5008" >}} no longer get stuck in infinite loops when code attempts to marshal cyclic pointer types ({{< issue "1202" >}})
- U1000 no longer crashes when code contains mutually recursive type instantiations ({{< issue "1247" >}})
- U1000 no longer crashes when generic functions use composite literals of type parameter types ({{< commit "0ccdb5c9dad7e96a8e3a3136738192491b37dbdb" >}})
- {{< check "ST1021" >}} now understands type names that are also English articles ({{< issue "1187" >}})
- {{< check "SA4023" >}} no longer gets confused by the nilness of type parameters ({{< issue "1242" >}})
- Some checks no longer crash when trying to generate automated code fixes that involve function literals ({{< issue "1134" >}})
- {{< check "SA1026" >}} no longer claims that `encoding/json` cannot marshal generic maps ([golang/go#52467](https://golang.org/issue/52467))
- The `binary` format has been improved to handle OS-specific file paths correctly, in turn making the `-merge` flag work more reliably ({{< commit "1846305a946b13d350894512c7ac1e5ed71dc331" >}})
- 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" >}})
- U1000 now understands struct type conversions involving type parameters, reducing the number of false positives ({{< commit "90804df0287d9265e565bcabbe19568efbe374fa" >}})
2 changes: 1 addition & 1 deletion website/data/checks.json
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@
"NonDefault": false,
"Options": null,
"Severity": 3,
"MergeIf": 0
"MergeIf": 1
},
"SA4009": {
"Title": "A function argument is overwritten before its first use",
Expand Down
1 change: 1 addition & 0 deletions website/layouts/shortcodes/commit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ with .Get 0 }}<a title="commit {{ . }}" href="https://github.com/dominikh/go-tools/commit/{{ . }}">{{ . }}</a>{{ end -}}
1 change: 1 addition & 0 deletions website/layouts/shortcodes/issue.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ with .Get 0 }}<a title="issue {{ . }}" href="https://staticcheck.io/issues/{{ . }}">issue {{ . }}</a>{{ end -}}

0 comments on commit a39c65d

Please sign in to comment.