forked from OpenEnroth/OpenEnroth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luarc.json
198 lines (198 loc) · 7.19 KB
/
.luarc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"diagnostics": {
"disable": [],
"globals": [
"enumToString",
"stringToEnum"
],
"groupFileStatus": {
"ambiguity": "Any",
"await": "Any",
"duplicate": "Any",
"codestyle": "Any",
"global": "Any",
"luadoc": "Any",
"redefined": "Any",
"strict": "Any",
"strong": "Any",
"type-check": "Any",
"unbalanced": "Any",
"unused": "Any"
},
"severity": {
"ambiguity-1": "Warning",
"assign-type-mismatch": "Warning",
"await-in-sync": "Warning",
"cast-local-type": "Warning",
"cast-type-mismatch": "Warning",
"circle-doc-class": "Warning",
"close-non-object": "Warning",
"code-after-break": "Warning",
"codestyle-check": "Warning",
"count-down-loop": "Warning",
"deprecated": "Warning",
"different-requires": "Warning",
"discard-returns": "Warning",
"doc-field-no-class": "Warning",
"duplicate-doc-alias": "Warning",
"duplicate-doc-field": "Warning",
"duplicate-doc-param": "Warning",
"duplicate-index": "Warning",
"duplicate-set-field": "Warning",
"empty-block": "Warning",
"global-in-nil-env": "Warning",
"lowercase-global": "Information",
"missing-parameter": "Warning",
"missing-return": "Warning",
"missing-return-value": "Warning",
"need-check-nil": "Warning",
"newfield-call": "Warning",
"newline-call": "Warning",
"no-unknown": "Warning",
"not-yieldable": "Warning",
"param-type-mismatch": "Warning",
"redefined-local": "Warning",
"redundant-parameter": "Warning",
"redundant-return": "Warning",
"redundant-return-value": "Warning",
"redundant-value": "Warning",
"return-type-mismatch": "Warning",
"spell-check": "Information",
"trailing-space": "Hint",
"unbalanced-assignments": "Warning",
"undefined-doc-class": "Warning",
"undefined-doc-name": "Warning",
"undefined-doc-param": "Warning",
"undefined-env-child": "Information",
"undefined-field": "Warning",
"undefined-global": "Warning",
"unknown-cast-variable": "Warning",
"unknown-diag-code": "Warning",
"unknown-operator": "Warning",
"unreachable-code": "Warning",
"unused-function": "Warning",
"unused-label": "Warning",
"unused-local": "Warning",
"unused-vararg": "Hint"
},
"ignoredFiles": "Opened",
"libraryFiles": "Disable"
},
"runtime": {
"version": "Lua 5.2",
"path": [
"./resources/scripts/?.lua",
"./resources/scripts/_definitions/?.lua"
],
"builtin": {
"bit32": "enable"
},
"pathStrict": false
},
"workspace": {
"maxPreload": 1600,
"preloadFileSize": 1000,
"ignoreDir": [
"/locale/",
"/libs/",
"/3rd",
"/.vscode",
"/meta"
],
"checkThirdParty": false
},
"typeFormat": {
"config": {
"format_line": "false"
}
},
"type": {
"castNumberToInteger": false
},
"doc": {
"privateName": [
"_*"
]
},
"format.enable": true,
"format.defaultConfig": {
"indent_style": "space",
"indent_size": "4",
"tab_width": "4",
"quote_style": "double",
"continuation_indent": "4",
"max_line_length": "120",
"end_of_line": "auto",
"table_separator_style": "none",
"trailing_table_separator": "keep",
"call_arg_parentheses": "keep",
"detect_end_of_line": "false",
"insert_final_newline": "true",
"space_around_table_field_list": "true",
"space_before_attribute": "true",
"space_before_function_open_parenthesis": "false",
"space_before_function_call_open_parenthesis": "false",
"space_before_closure_open_parenthesis": "true",
"space_before_function_call_single_arg": "always",
"space_before_open_square_bracket": "false",
"space_inside_function_call_parentheses": "false",
"space_inside_function_param_list_parentheses": "false",
"space_inside_square_brackets": "false",
"space_around_table_append_operator": "false",
"ignore_spaces_inside_function_call": "false",
"space_before_inline_comment": "1",
"space_after_comment_dash": "false",
"space_around_math_operator": "true",
"space_after_comma": "true",
"space_after_comma_in_for_statement": "true",
"space_around_concat_operator": "true",
"space_around_logical_operator": "true",
"space_around_assign_operator": "true",
"align_call_args": "false",
"align_function_params": "true",
"align_continuous_assign_statement": "true",
"align_continuous_rect_table_field": "true",
"align_continuous_line_space": "2",
"align_if_branch": "false",
"align_array_table": "true",
"align_continuous_similar_call_args": "false",
"align_continuous_inline_comment": "true",
"align_chain_expr": "none",
"never_indent_before_if_condition": "false",
"never_indent_comment_on_if_branch": "false",
"keep_indents_on_empty_lines": "false",
"allow_non_indented_comments": "false",
"line_space_after_if_statement": "keep",
"line_space_after_do_statement": "keep",
"line_space_after_while_statement": "keep",
"line_space_after_repeat_statement": "keep",
"line_space_after_for_statement": "keep",
"line_space_after_local_or_assign_statement": "keep",
"line_space_after_function_statement": "fixed(2)",
"line_space_after_expression_statement": "keep",
"line_space_after_comment": "keep",
"line_space_around_block": "fixed(1)",
"break_all_list_when_line_exceed": "false",
"auto_collapse_lines": "false",
"break_before_braces": "false",
"ignore_space_after_colon": "false",
"remove_call_expression_list_finish_comma": "false",
"end_statement_with_semicolon": "keep"
},
"nameStyle.config": {
"local_name_style": "camel_case",
"function_param_name_style": "camel_case",
"function_name_style": "camel_case",
"local_function_name_style": "camel_case",
"table_field_name_style": "camel_case",
"global_variable_name_style": "pascal_case",
"module_name_style": "pascal_case",
"require_module_name_style": "pascal_case",
"class_name_style": "pascal_case",
"const_variable_name_style": "pascal_case"
},
"spell.dict": [
"imgui"
]
}