lint: port redundant semicolons diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
37588d6d4e
commit
8e836566f0
2 changed files with 15 additions and 7 deletions
|
@ -131,3 +131,13 @@ lint-noop-method-call = call to `.{$method}()` on a reference in this situation
|
|||
|
||||
lint-pass-by-value = passing `{$ty}` by reference
|
||||
.suggestion = try passing by value
|
||||
|
||||
lint-redundant-semicolons =
|
||||
unnecessary trailing {$multiple ->
|
||||
[true] semicolons
|
||||
*[false] semicolon
|
||||
}
|
||||
.suggestion = remove {$multiple ->
|
||||
[true] these semicolons
|
||||
*[false] this semicolon
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue