Skip to content

Commit 52dbf0f

Browse files
committed
doc: add 2020.2.4 release notes
1 parent c3ae702 commit 52dbf0f

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

doc/2020.2.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<li><a href="#2020.2.1">Staticcheck 2020.2.1 release notes</a></li>
1414
<li><a href="#2020.2.2">Staticcheck 2020.2.2 release notes</a></li>
1515
<li><a href="#2020.2.3">Staticcheck 2020.2.3 release notes</a></li>
16+
<li><a href="#2020.2.4">Staticcheck 2020.2.4 release notes</a></li>
1617
</ul>
1718

1819
<h2 id="performance-improvements">Performance improvements</h2>
@@ -600,3 +601,21 @@ <h2 id="2020.2.3">Staticcheck 2020.2.3 release notes</h2>
600601
<p>
601602
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.
602603
</p>
604+
605+
<h2 id="2020.2.4">Staticcheck 2020.2.4 release notes</h2>
606+
607+
<p>
608+
This release fixes the following issues:
609+
</p>
610+
611+
<ul>
612+
<li>A false positive in {{ check "S1017" }} when the <code>len</code> function has been shadowed</li>
613+
<li>
614+
A bug in Staticcheck's intermediate representation
615+
that would lead to nonsensical reports claiming that a value isn't being used
616+
when it is definitely being used
617+
(see issues <a href="https://github.com/dominikh/go-tools/issues/949">949</a> and
618+
<a href="https://github.com/dominikh/go-tools/issues/981">981</a> for more information)
619+
</li>
620+
<li>A rare crash (see issue <a href="https://github.com/dominikh/go-tools/issues/972">972</a> for more information)</li>
621+
</ul>

doc/staticcheck.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ <h2 id="installation">Installation</h2>
2222
<p>
2323
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.
2424
If you're still using a GOPATH-based workflow, then the above command will instead fetch the master branch.
25-
It is suggested that you explicitly check out the latest release tag instead, which is currently <code>2020.2.3</code>.
25+
It is suggested that you explicitly check out the latest release tag instead, which is currently <code>2020.2.4</code>.
2626
One way of doing so would be as follows:
2727
</p>
2828

2929
<pre><code>cd $GOPATH/src/honnef.co/go/tools/cmd/staticcheck
30-
git checkout 2020.2.3
30+
git checkout 2020.2.4
3131
go get
3232
go install
3333
</code></pre>

0 commit comments

Comments
 (0)