Skip to content

Commit

Permalink
doc: add 2020.2.4 release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed May 1, 2021
1 parent c3ae702 commit 52dbf0f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions doc/2020.2.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<li><a href="#2020.2.1">Staticcheck 2020.2.1 release notes</a></li>
<li><a href="#2020.2.2">Staticcheck 2020.2.2 release notes</a></li>
<li><a href="#2020.2.3">Staticcheck 2020.2.3 release notes</a></li>
<li><a href="#2020.2.4">Staticcheck 2020.2.4 release notes</a></li>
</ul>

<h2 id="performance-improvements">Performance improvements</h2>
Expand Down Expand Up @@ -600,3 +601,21 @@ <h2 id="2020.2.3">Staticcheck 2020.2.3 release notes</h2>
<p>
This release fixes a false positive in U1000. See <a href="https://github.com/dominikh/go-tools/issues/942">issue 942</a> for an example.
</p>

<h2 id="2020.2.4">Staticcheck 2020.2.4 release notes</h2>

<p>
This release fixes the following issues:
</p>

<ul>
<li>A false positive in {{ check "S1017" }} when the <code>len</code> function has been shadowed</li>
<li>
A bug in Staticcheck's intermediate representation
that would lead to nonsensical reports claiming that a value isn't being used
when it is definitely being used
(see issues <a href="https://github.com/dominikh/go-tools/issues/949">949</a> and
<a href="https://github.com/dominikh/go-tools/issues/981">981</a> for more information)
</li>
<li>A rare crash (see issue <a href="https://github.com/dominikh/go-tools/issues/972">972</a> for more information)</li>
</ul>
4 changes: 2 additions & 2 deletions doc/staticcheck.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ <h2 id="installation">Installation</h2>
<p>
If you use Go modules, you can simply run <code>go get honnef.co/go/tools/cmd/staticcheck</code> to obtain the latest released version.
If you're still using a GOPATH-based workflow, then the above command will instead fetch the master branch.
It is suggested that you explicitly check out the latest release tag instead, which is currently <code>2020.2.3</code>.
It is suggested that you explicitly check out the latest release tag instead, which is currently <code>2020.2.4</code>.
One way of doing so would be as follows:
</p>

<pre><code>cd $GOPATH/src/honnef.co/go/tools/cmd/staticcheck
git checkout 2020.2.3
git checkout 2020.2.4
go get
go install
</code></pre>
Expand Down

0 comments on commit 52dbf0f

Please sign in to comment.