File tree 2 files changed +21
-2
lines changed 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 13
13
< li > < a href ="#2020.2.1 "> Staticcheck 2020.2.1 release notes</ a > </ li >
14
14
< li > < a href ="#2020.2.2 "> Staticcheck 2020.2.2 release notes</ a > </ li >
15
15
< 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 >
16
17
</ ul >
17
18
18
19
< h2 id ="performance-improvements "> Performance improvements</ h2 >
@@ -600,3 +601,21 @@ <h2 id="2020.2.3">Staticcheck 2020.2.3 release notes</h2>
600
601
< p >
601
602
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.
602
603
</ 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 >
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ <h2 id="installation">Installation</h2>
22
22
< p >
23
23
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.
24
24
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 > .
26
26
One way of doing so would be as follows:
27
27
</ p >
28
28
29
29
< pre > < code > cd $GOPATH/src/honnef.co/go/tools/cmd/staticcheck
30
- git checkout 2020.2.3
30
+ git checkout 2020.2.4
31
31
go get
32
32
go install
33
33
</ code > </ pre >
You can’t perform that action at this time.
0 commit comments