Skip to content

Commit 740f570

Browse files
committed
doc: add 2021.1.1 release notes
(cherry picked from commit 5b5a29e)
1 parent e9143cf commit 740f570

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/2021.1.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<li><a href="#documentation">Restructured documentation</a></li>
1010
<li><a href="#gopls">Better integration with gopls</a></li>
1111
<li><a href="#rdeps">Deletion of rdeps</a></li>
12+
<li><a href="#2021.1.1">Staticcheck 2021.1.1 release notes</a></li>
1213
</ul>
1314

1415
<h2 id="ui-improvements">UI improvements</h2>
@@ -92,3 +93,29 @@ <h2 id="rdeps">Deletion of rdeps</h2>
9293
This was a GOPATH-centric tool that allowed finding all reverse dependencies of a Go package.
9394
Both the move to Go modules as well as the emergence of much better tooling for inspecting dependencies (such as <a href="https://github.com/loov/goda">goda</a>) has made rdeps redundant.
9495
</p>
96+
97+
<h2 id="2021.1.1">Staticcheck 2021.1.1 release notes</h2>
98+
99+
<p>
100+
This release adds support for new language features in Go 1.17,
101+
namely conversions from slices to array pointers,
102+
the unsafe.Add function,
103+
and the unsafe.Slice function.
104+
</p>
105+
106+
<p>
107+
Additionally, it fixes the following false positives:
108+
</p>
109+
110+
<ul>
111+
<li>{{ check "ST1000" }} no longer flags package docs that start with whitespace if they're otherwise well-formed.</li>
112+
<li>{{ check "SA5002" }} no longer prints one too many percent signs in its message.</li>
113+
<li>{{ check "SA4000" }} no longer flags comparisons between floats.</li>
114+
<li>{{ check "SA4010" }} no longer flags appends to slices that might share their backing array with other slices.</li>
115+
<li>{{ check "SA5011" }} no longer infers possible nil pointer dereferences from comparisons done outside of control flow constructs.
116+
This avoids false positives when using <code>assert</code>-style functions.
117+
See <a href="https://staticcheck.io/issues/1022">issue 1022</a> for a concrete example.</li>
118+
<li>{{ check "S1020" }} no longer flags nested if statements when the inner statement has an else branch.</li>
119+
<li>{{ check "SA5011" }} no longer claims that indexing a nil slice will cause a nil pointer dereference.</li>
120+
</ul>
121+

0 commit comments

Comments
 (0)