Skip to content

Commit

Permalink
Merge pull request #3010 from returntocorp/fixcorrectness
Browse files Browse the repository at this point in the history
Lower correctness to INFO
  • Loading branch information
LewisArdern authored Jul 25, 2023
2 parents 56569db + c712edc commit 56817b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions go/lang/correctness/useless-eqeq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rules:
Detected useless comparison operation `$X == $X` or `$X != $X`. This will always return 'True' or 'False' and therefore
is not necessary. Instead, remove this comparison operation or use another comparison expression that is not deterministic.
languages: [go]
severity: ERROR
severity: INFO
metadata:
category: correctness
technology:
Expand All @@ -21,7 +21,7 @@ rules:
not necessary in the code. Remove the 'if (False)' expression completely or just the 'if (True)' comparison depending
on which expression is in the code.
languages: [go]
severity: ERROR
severity: INFO
pattern-either:
- pattern: if (true) { ... }
- pattern: if (false) { ... }
Expand Down
2 changes: 1 addition & 1 deletion javascript/lang/correctness/useless-assign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rules:
languages:
- javascript
- typescript
severity: WARNING
severity: INFO
metadata:
category: correctness
technology:
Expand Down
2 changes: 1 addition & 1 deletion javascript/lang/correctness/useless-eqeq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rules:
languages:
- javascript
- typescript
severity: ERROR
severity: INFO
metadata:
category: correctness
technology:
Expand Down
2 changes: 1 addition & 1 deletion python/lang/maintainability/useless-assign-keyed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ rules:
- id: useless-assignment-keyed
message: key `$Y` in `$X` is assigned twice; the first assignment is useless
languages: [python]
severity: WARNING
severity: INFO
pattern-either:
- pattern: |
$X[$Y] = ...
Expand Down

0 comments on commit 56817b0

Please sign in to comment.