@atlisp/lint 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atlisp-lint.default.json +2 -2
- package/dist/config.js +2 -2
- package/dist/presets.js +5 -3
- package/dist/rules.js +1 -1
- package/package.json +1 -1
package/atlisp-lint.default.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"vlax_without_loading": "warn",
|
|
16
16
|
"token_in_url": "warn",
|
|
17
17
|
"open_without_close": "warn",
|
|
18
|
-
"bare_function_names": "
|
|
18
|
+
"bare_function_names": "off",
|
|
19
19
|
"line_length": "warn",
|
|
20
20
|
"function_complexity": "warn",
|
|
21
21
|
"parameter_naming": "warn",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"recursive_call": "warn",
|
|
33
33
|
"variable_shadow": "warn",
|
|
34
34
|
"unused_local_fun": "warn",
|
|
35
|
-
"multiple_setq": "
|
|
35
|
+
"multiple_setq": "off",
|
|
36
36
|
"redundant_quotes": "warn",
|
|
37
37
|
"trailing_paren": "warn",
|
|
38
38
|
"empty_comment": "warn",
|
package/dist/config.js
CHANGED
|
@@ -57,7 +57,7 @@ const DEFAULT_CONFIG = {
|
|
|
57
57
|
vlax_without_loading: 'warn',
|
|
58
58
|
token_in_url: 'warn',
|
|
59
59
|
open_without_close: 'warn',
|
|
60
|
-
bare_function_names: '
|
|
60
|
+
bare_function_names: 'off',
|
|
61
61
|
line_length: 'warn',
|
|
62
62
|
function_complexity: 'warn',
|
|
63
63
|
parameter_naming: 'warn',
|
|
@@ -75,7 +75,7 @@ const DEFAULT_CONFIG = {
|
|
|
75
75
|
recursive_call: 'warn',
|
|
76
76
|
variable_shadow: 'warn',
|
|
77
77
|
unused_local_fun: 'warn',
|
|
78
|
-
multiple_setq: '
|
|
78
|
+
multiple_setq: 'off',
|
|
79
79
|
redundant_quotes: 'warn',
|
|
80
80
|
trailing_paren: 'warn',
|
|
81
81
|
empty_comment: 'warn',
|
package/dist/presets.js
CHANGED
|
@@ -27,7 +27,7 @@ exports.PRESETS = {
|
|
|
27
27
|
recursive_call: 'warn',
|
|
28
28
|
variable_shadow: 'warn',
|
|
29
29
|
unused_local_fun: 'warn',
|
|
30
|
-
multiple_setq: '
|
|
30
|
+
multiple_setq: 'off',
|
|
31
31
|
redundant_quotes: 'warn',
|
|
32
32
|
trailing_paren: 'warn',
|
|
33
33
|
empty_comment: 'warn',
|
|
@@ -49,6 +49,7 @@ exports.PRESETS = {
|
|
|
49
49
|
global_naming: 'warn',
|
|
50
50
|
extra_parens: 'warn',
|
|
51
51
|
arg_count: 'warn',
|
|
52
|
+
builtin_arg_count: 'error',
|
|
52
53
|
strcat_usage: 'warn',
|
|
53
54
|
cond_simplify: 'warn',
|
|
54
55
|
quote_style: 'warn',
|
|
@@ -87,7 +88,7 @@ exports.PRESETS = {
|
|
|
87
88
|
vlax_without_loading: 'error',
|
|
88
89
|
token_in_url: 'error',
|
|
89
90
|
open_without_close: 'error',
|
|
90
|
-
bare_function_names: '
|
|
91
|
+
bare_function_names: 'off',
|
|
91
92
|
line_length: 'error',
|
|
92
93
|
function_complexity: 'error',
|
|
93
94
|
parameter_naming: 'error',
|
|
@@ -102,7 +103,7 @@ exports.PRESETS = {
|
|
|
102
103
|
recursive_call: 'error',
|
|
103
104
|
variable_shadow: 'error',
|
|
104
105
|
unused_local_fun: 'error',
|
|
105
|
-
multiple_setq: '
|
|
106
|
+
multiple_setq: 'off',
|
|
106
107
|
redundant_quotes: 'error',
|
|
107
108
|
trailing_paren: 'error',
|
|
108
109
|
empty_comment: 'error',
|
|
@@ -128,6 +129,7 @@ exports.PRESETS = {
|
|
|
128
129
|
global_naming: 'error',
|
|
129
130
|
extra_parens: 'error',
|
|
130
131
|
arg_count: 'error',
|
|
132
|
+
builtin_arg_count: 'error',
|
|
131
133
|
strcat_usage: 'error',
|
|
132
134
|
cond_simplify: 'error',
|
|
133
135
|
quote_style: 'error',
|
package/dist/rules.js
CHANGED
|
@@ -120,7 +120,7 @@ exports.RULES = [
|
|
|
120
120
|
description: '检测模块文件是否注册到 *modules*',
|
|
121
121
|
category: '架构',
|
|
122
122
|
},
|
|
123
|
-
{ name: 'multiple_setq', defaultSeverity: '
|
|
123
|
+
{ name: 'multiple_setq', defaultSeverity: 'off', description: '检测多个连续 setq 可以合并', category: '风格' },
|
|
124
124
|
{
|
|
125
125
|
name: 'namespace_header',
|
|
126
126
|
defaultSeverity: 'off',
|