You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en-us/config.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -333,12 +333,16 @@ object<string, string>
333
333
* cast-type-mismatch
334
334
* need-check-nil
335
335
* param-type-mismatch
336
+
* return-type-mismatch
336
337
* undefined-field
337
338
*/
338
339
"type-check":"Fallback",
339
340
/*
340
341
* missing-parameter
342
+
* missing-return
343
+
* missing-return-value
341
344
* redundant-parameter
345
+
* redundant-return-value
342
346
* redundant-value
343
347
* unbalanced-assignments
344
348
*/
@@ -446,12 +450,16 @@ object<string, string>
446
450
* cast-type-mismatch
447
451
* need-check-nil
448
452
* param-type-mismatch
453
+
* return-type-mismatch
449
454
* undefined-field
450
455
*/
451
456
"type-check":"Fallback",
452
457
/*
453
458
* missing-parameter
459
+
* missing-return
460
+
* missing-return-value
454
461
* redundant-parameter
462
+
* redundant-return-value
455
463
* redundant-value
456
464
* unbalanced-assignments
457
465
*/
@@ -580,6 +588,8 @@ object<string, string>
580
588
*/
581
589
"lowercase-global":"Any",
582
590
"missing-parameter":"Any",
591
+
"missing-return":"Any",
592
+
"missing-return-value":"Any",
583
593
"need-check-nil":"Opened",
584
594
/*
585
595
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -601,10 +611,12 @@ object<string, string>
601
611
*/
602
612
"redundant-parameter":"Any",
603
613
"redundant-return":"Opened",
614
+
"redundant-return-value":"Any",
604
615
/*
605
616
Enable the redundant values assigned diagnostics. It's raised during assignment operation, when the number of values is higher than the number of objects being assigned.
606
617
*/
607
618
"redundant-value":"Any",
619
+
"return-type-mismatch":"Opened",
608
620
"spell-check":"None",
609
621
/*
610
622
Enable trailing space diagnostics.
@@ -710,6 +722,8 @@ object<string, string>
710
722
*/
711
723
"lowercase-global":"Information",
712
724
"missing-parameter":"Warning",
725
+
"missing-return":"Warning",
726
+
"missing-return-value":"Warning",
713
727
"need-check-nil":"Warning",
714
728
/*
715
729
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -731,10 +745,12 @@ object<string, string>
731
745
*/
732
746
"redundant-parameter":"Warning",
733
747
"redundant-return":"Hint",
748
+
"redundant-return-value":"Warning",
734
749
/*
735
750
Enable the redundant values assigned diagnostics. It's raised during assignment operation, when the number of values is higher than the number of objects being assigned.
736
751
*/
737
752
"redundant-value":"Warning",
753
+
"return-type-mismatch":"Warning",
738
754
"spell-check":"Information",
739
755
/*
740
756
Enable trailing space diagnostics.
@@ -932,6 +948,28 @@ boolean
932
948
true
933
949
```
934
950
951
+
# hint.semicolon
952
+
953
+
If there is no semicolon at the end of the statement, display a virtual semicolon.
954
+
955
+
## type
956
+
957
+
```ts
958
+
string
959
+
```
960
+
961
+
## enum
962
+
963
+
*``"All"``: All statements display virtual semicolons.
964
+
*``"SameLine"``: When two statements are on the same line, display a semicolon between them.
0 commit comments