Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /