Skip to content

Commit 09900e7

Browse files
committed
too many false alert, disable unnecessary-assert for now
e.g. `assert(arg[1])`
1 parent f61824f commit 09900e7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

changelog.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5-
* `NEW` `unnecessary-assert` diagnostic warns when asserting values that are always truthy
65
* `NEW` locale `es-419`, thanks [Felipe Lema](https://codeberg.org/FelipeLema)
76
* `FIX` prevent unnecessary edits by LSP formatting when content did not change
87
* `FIX` return no completions if completion is disabled

script/proto/diagnostic.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ m.register {
7878
'cast-type-mismatch',
7979
'return-type-mismatch',
8080
'inject-field',
81-
'unnecessary-assert',
81+
--'unnecessary-assert',
8282
} {
8383
group = 'type-check',
8484
severity = 'Warning',

0 commit comments

Comments
 (0)