Skip to content

Commit

Permalink
Update Since field of checks that are new in 2022.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Mar 28, 2022
1 parent 01cef3b commit bebe6f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion quickfix/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if someCondition {

"QF1012": {
Title: `Use \'fmt.Fprintf(x, ...)\' instead of \'x.Write(fmt.Sprintf(...))\'`,
Since: "Unreleased",
Since: "2022.1",
Severity: lint.SeverityHint,
},
})
12 changes: 6 additions & 6 deletions staticcheck/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ As a consequence, the following code pattern is an expensive no-op:

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

"SA4031": {
Title: `Checking never-nil value against nil`,
Since: "Unreleased",
Since: "2022.1",
Severity: lint.SeverityWarning,
MergeIf: lint.MergeIfAny,
},
Expand Down Expand Up @@ -1271,7 +1271,7 @@ This check flags attempts at deleting the following directories:
- os.UserConfigDir
- os.UserHomeDir
`,
Since: "Unreleased",
Since: "2022.1",
Severity: lint.SeverityWarning,
MergeIf: lint.MergeIfAny,
},
Expand All @@ -1295,7 +1295,7 @@ result of a failed type assertion is the zero value of the type that
is being asserted to, so \'x\' in the else branch will always have the
value \'0\' and the type \'int\'.
`,
Since: "Unreleased",
Since: "2022.1",
Severity: lint.SeverityWarning,
MergeIf: lint.MergeIfAny,
},
Expand Down

0 comments on commit bebe6f2

Please sign in to comment.