Skip to content

Commit e8e593c

Browse files
committed
update config.md
1 parent 3132920 commit e8e593c

File tree

4 files changed

+152
-0
lines changed

4 files changed

+152
-0
lines changed

doc/en-us/config.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,16 @@ object<string, string>
333333
* cast-type-mismatch
334334
* need-check-nil
335335
* param-type-mismatch
336+
* return-type-mismatch
336337
* undefined-field
337338
*/
338339
"type-check": "Fallback",
339340
/*
340341
* missing-parameter
342+
* missing-return
343+
* missing-return-value
341344
* redundant-parameter
345+
* redundant-return-value
342346
* redundant-value
343347
* unbalanced-assignments
344348
*/
@@ -446,12 +450,16 @@ object<string, string>
446450
* cast-type-mismatch
447451
* need-check-nil
448452
* param-type-mismatch
453+
* return-type-mismatch
449454
* undefined-field
450455
*/
451456
"type-check": "Fallback",
452457
/*
453458
* missing-parameter
459+
* missing-return
460+
* missing-return-value
454461
* redundant-parameter
462+
* redundant-return-value
455463
* redundant-value
456464
* unbalanced-assignments
457465
*/
@@ -580,6 +588,8 @@ object<string, string>
580588
*/
581589
"lowercase-global": "Any",
582590
"missing-parameter": "Any",
591+
"missing-return": "Any",
592+
"missing-return-value": "Any",
583593
"need-check-nil": "Opened",
584594
/*
585595
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -601,10 +611,12 @@ object<string, string>
601611
*/
602612
"redundant-parameter": "Any",
603613
"redundant-return": "Opened",
614+
"redundant-return-value": "Any",
604615
/*
605616
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.
606617
*/
607618
"redundant-value": "Any",
619+
"return-type-mismatch": "Opened",
608620
"spell-check": "None",
609621
/*
610622
Enable trailing space diagnostics.
@@ -710,6 +722,8 @@ object<string, string>
710722
*/
711723
"lowercase-global": "Information",
712724
"missing-parameter": "Warning",
725+
"missing-return": "Warning",
726+
"missing-return-value": "Warning",
713727
"need-check-nil": "Warning",
714728
/*
715729
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -731,10 +745,12 @@ object<string, string>
731745
*/
732746
"redundant-parameter": "Warning",
733747
"redundant-return": "Hint",
748+
"redundant-return-value": "Warning",
734749
/*
735750
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.
736751
*/
737752
"redundant-value": "Warning",
753+
"return-type-mismatch": "Warning",
738754
"spell-check": "Information",
739755
/*
740756
Enable trailing space diagnostics.
@@ -932,6 +948,28 @@ boolean
932948
true
933949
```
934950

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.
965+
* ``"Disable"``: Disable virtual semicolons.
966+
967+
## default
968+
969+
```jsonc
970+
"SameLine"
971+
```
972+
935973
# hint.setType
936974

937975
Show hints of type at assignment operation.

doc/pt-br/config.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,16 @@ object<string, string>
333333
* cast-type-mismatch
334334
* need-check-nil
335335
* param-type-mismatch
336+
* return-type-mismatch
336337
* undefined-field
337338
*/
338339
"type-check": "Fallback",
339340
/*
340341
* missing-parameter
342+
* missing-return
343+
* missing-return-value
341344
* redundant-parameter
345+
* redundant-return-value
342346
* redundant-value
343347
* unbalanced-assignments
344348
*/
@@ -446,12 +450,16 @@ object<string, string>
446450
* cast-type-mismatch
447451
* need-check-nil
448452
* param-type-mismatch
453+
* return-type-mismatch
449454
* undefined-field
450455
*/
451456
"type-check": "Fallback",
452457
/*
453458
* missing-parameter
459+
* missing-return
460+
* missing-return-value
454461
* redundant-parameter
462+
* redundant-return-value
455463
* redundant-value
456464
* unbalanced-assignments
457465
*/
@@ -580,6 +588,8 @@ object<string, string>
580588
*/
581589
"lowercase-global": "Any",
582590
"missing-parameter": "Any",
591+
"missing-return": "Any",
592+
"missing-return-value": "Any",
583593
"need-check-nil": "Opened",
584594
/*
585595
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -601,10 +611,12 @@ object<string, string>
601611
*/
602612
"redundant-parameter": "Any",
603613
"redundant-return": "Opened",
614+
"redundant-return-value": "Any",
604615
/*
605616
赋值操作时,值的数量比被赋值的对象多
606617
*/
607618
"redundant-value": "Any",
619+
"return-type-mismatch": "Opened",
608620
"spell-check": "None",
609621
/*
610622
后置空格
@@ -710,6 +722,8 @@ object<string, string>
710722
*/
711723
"lowercase-global": "Information",
712724
"missing-parameter": "Warning",
725+
"missing-return": "Warning",
726+
"missing-return-value": "Warning",
713727
"need-check-nil": "Warning",
714728
/*
715729
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -731,10 +745,12 @@ object<string, string>
731745
*/
732746
"redundant-parameter": "Warning",
733747
"redundant-return": "Hint",
748+
"redundant-return-value": "Warning",
734749
/*
735750
赋值操作时,值的数量比被赋值的对象多
736751
*/
737752
"redundant-value": "Warning",
753+
"return-type-mismatch": "Warning",
738754
"spell-check": "Information",
739755
/*
740756
后置空格
@@ -932,6 +948,28 @@ boolean
932948
true
933949
```
934950

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.
965+
* ``"Disable"``: Disable virtual semicolons.
966+
967+
## default
968+
969+
```jsonc
970+
"SameLine"
971+
```
972+
935973
# hint.setType
936974

937975
Show hints of type at assignment operation.

doc/zh-cn/config.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,16 @@ object<string, string>
333333
* cast-type-mismatch
334334
* need-check-nil
335335
* param-type-mismatch
336+
* return-type-mismatch
336337
* undefined-field
337338
*/
338339
"type-check": "Fallback",
339340
/*
340341
* missing-parameter
342+
* missing-return
343+
* missing-return-value
341344
* redundant-parameter
345+
* redundant-return-value
342346
* redundant-value
343347
* unbalanced-assignments
344348
*/
@@ -446,12 +450,16 @@ object<string, string>
446450
* cast-type-mismatch
447451
* need-check-nil
448452
* param-type-mismatch
453+
* return-type-mismatch
449454
* undefined-field
450455
*/
451456
"type-check": "Fallback",
452457
/*
453458
* missing-parameter
459+
* missing-return
460+
* missing-return-value
454461
* redundant-parameter
462+
* redundant-return-value
455463
* redundant-value
456464
* unbalanced-assignments
457465
*/
@@ -580,6 +588,8 @@ object<string, string>
580588
*/
581589
"lowercase-global": "Any",
582590
"missing-parameter": "Any",
591+
"missing-return": "Any",
592+
"missing-return-value": "Any",
583593
"need-check-nil": "Opened",
584594
/*
585595
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -601,10 +611,12 @@ object<string, string>
601611
*/
602612
"redundant-parameter": "Any",
603613
"redundant-return": "Opened",
614+
"redundant-return-value": "Any",
604615
/*
605616
赋值操作时,值的数量比被赋值的对象多
606617
*/
607618
"redundant-value": "Any",
619+
"return-type-mismatch": "Opened",
608620
"spell-check": "None",
609621
/*
610622
后置空格
@@ -709,6 +721,8 @@ object<string, string>
709721
*/
710722
"lowercase-global": "Information",
711723
"missing-parameter": "Warning",
724+
"missing-return": "Warning",
725+
"missing-return-value": "Warning",
712726
"need-check-nil": "Warning",
713727
/*
714728
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -730,10 +744,12 @@ object<string, string>
730744
*/
731745
"redundant-parameter": "Warning",
732746
"redundant-return": "Hint",
747+
"redundant-return-value": "Warning",
733748
/*
734749
赋值操作时,值的数量比被赋值的对象多
735750
*/
736751
"redundant-value": "Warning",
752+
"return-type-mismatch": "Warning",
737753
"spell-check": "Information",
738754
/*
739755
后置空格
@@ -931,6 +947,28 @@ boolean
931947
true
932948
```
933949

950+
# hint.semicolon
951+
952+
若语句尾部没有分号,则显示虚拟分号。
953+
954+
## type
955+
956+
```ts
957+
string
958+
```
959+
960+
## enum
961+
962+
* ``"All"``: 所有语句都显示虚拟分号。
963+
* ``"SameLine"``: 2个语句在同一行时,在它们之间显示分号。
964+
* ``"Disable"``: 禁用虚拟分号。
965+
966+
## default
967+
968+
```jsonc
969+
"SameLine"
970+
```
971+
934972
# hint.setType
935973

936974
在赋值操作位置提示类型。

0 commit comments

Comments
 (0)