Skip to content

Commit bebe6f2

Browse files
committed
Update Since field of checks that are new in 2022.1
1 parent 01cef3b commit bebe6f2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

quickfix/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ if someCondition {
141141

142142
"QF1012": {
143143
Title: `Use \'fmt.Fprintf(x, ...)\' instead of \'x.Write(fmt.Sprintf(...))\'`,
144-
Since: "Unreleased",
144+
Since: "2022.1",
145145
Severity: lint.SeverityHint,
146146
},
147147
})

staticcheck/doc.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ As a consequence, the following code pattern is an expensive no-op:
747747

748748
"SA4028": {
749749
Title: `\'x % 1\' is always zero`,
750-
Since: "Unreleased",
750+
Since: "2022.1",
751751
Severity: lint.SeverityWarning,
752752
MergeIf: lint.MergeIfAny, // MergeIfAny if we only flag literals, not named constants
753753
},
@@ -762,7 +762,7 @@ especially not sort any values. The correct usage is
762762
but there are more convenient helpers, namely \'sort.Float64s\',
763763
\'sort.Ints\', and \'sort.Strings\'.
764764
`,
765-
Since: "Unreleased",
765+
Since: "2022.1",
766766
Severity: lint.SeverityWarning,
767767
MergeIf: lint.MergeIfAny,
768768
},
@@ -775,14 +775,14 @@ as \'Intn\', generate random numbers in the half-open interval [0,n). In
775775
other words, the generated numbers will be \'>= 0\' and \'< n\' – they
776776
don't include \'n\'. \'rand.Intn(1)\' therefore doesn't generate \'0\'
777777
or \'1\', it always generates \'0\'.`,
778-
Since: "Unreleased",
778+
Since: "2022.1",
779779
Severity: lint.SeverityWarning,
780780
MergeIf: lint.MergeIfAny,
781781
},
782782

783783
"SA4031": {
784784
Title: `Checking never-nil value against nil`,
785-
Since: "Unreleased",
785+
Since: "2022.1",
786786
Severity: lint.SeverityWarning,
787787
MergeIf: lint.MergeIfAny,
788788
},
@@ -1271,7 +1271,7 @@ This check flags attempts at deleting the following directories:
12711271
- os.UserConfigDir
12721272
- os.UserHomeDir
12731273
`,
1274-
Since: "Unreleased",
1274+
Since: "2022.1",
12751275
Severity: lint.SeverityWarning,
12761276
MergeIf: lint.MergeIfAny,
12771277
},
@@ -1295,7 +1295,7 @@ result of a failed type assertion is the zero value of the type that
12951295
is being asserted to, so \'x\' in the else branch will always have the
12961296
value \'0\' and the type \'int\'.
12971297
`,
1298-
Since: "Unreleased",
1298+
Since: "2022.1",
12991299
Severity: lint.SeverityWarning,
13001300
MergeIf: lint.MergeIfAny,
13011301
},

0 commit comments

Comments
 (0)