|
9 | 9 | <li><a href="#documentation">Restructured documentation</a></li>
|
10 | 10 | <li><a href="#gopls">Better integration with gopls</a></li>
|
11 | 11 | <li><a href="#rdeps">Deletion of rdeps</a></li>
|
| 12 | + <li><a href="#2021.1.1">Staticcheck 2021.1.1 release notes</a></li> |
12 | 13 | </ul>
|
13 | 14 |
|
14 | 15 | <h2 id="ui-improvements">UI improvements</h2>
|
@@ -92,3 +93,29 @@ <h2 id="rdeps">Deletion of rdeps</h2>
|
92 | 93 | This was a GOPATH-centric tool that allowed finding all reverse dependencies of a Go package.
|
93 | 94 | 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.
|
94 | 95 | </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