[autofix.ci] apply automated fixes #240
Annotations
5 errors and 2 warnings
src/rules/rrd/cyclomaticComplexity.test.ts > checkCyclomaticComplexity > should report scripts with moderate complexity:
src/rules/rrd/cyclomaticComplexity.test.ts#L30
AssertionError: expected [ { file: 'moderate.vue', …(3) } ] to strictly equal [ { file: 'moderate.vue', …(3) } ]
- Expected
+ Received
Array [
Object {
"description": "👉 Try to reduce complexity. See: https://vue-mess-detector.webmania.cc/rules/rrd/cyclomatic-complexity.html",
"file": "moderate.vue",
- "message": "(6) 🚨",
+ "message": "Cyclomatic complexity is high (6) 🚨",
"rule": "rrd ~ cyclomatic complexity",
},
]
❯ src/rules/rrd/cyclomaticComplexity.test.ts:30:42
|
src/rules/rrd/cyclomaticComplexity.test.ts > checkCyclomaticComplexity > should report scripts with high complexity:
src/rules/rrd/cyclomaticComplexity.test.ts#L46
AssertionError: expected [ { file: 'high.vue', …(3) } ] to strictly equal [ { file: 'high.vue', …(3) } ]
- Expected
+ Received
Array [
Object {
"description": "👉 Try to reduce complexity. See: https://vue-mess-detector.webmania.cc/rules/rrd/cyclomatic-complexity.html",
"file": "high.vue",
- "message": "(11) 🚨",
+ "message": "Cyclomatic complexity is very high (11) 🚨",
"rule": "rrd ~ cyclomatic complexity",
},
]
❯ src/rules/rrd/cyclomaticComplexity.test.ts:46:42
|
src/rules/rrd/shortVariableName.test.ts > shortVariableName > should report files where one variable is too short:
src/rules/rrd/shortVariableName.test.ts#L39
AssertionError: expected [ { …(4) } ] to strictly equal [ { …(4) } ]
- Expected
+ Received
Array [
Object {
"description": "👉 Variable names must have a minimum length of 4. See: https://vue-mess-detector.webmania.cc/rules/rrd/short-variable-name.html",
"file": "short-variable-name.vue",
- "message": "(age) 🚨",
+ "message": "variable: (age) 🚨",
"rule": "rrd ~ short variable names",
},
]
❯ src/rules/rrd/shortVariableName.test.ts:39:39
|
src/rules/rrd/shortVariableName.test.ts > shortVariableName > should report files where more than one variable are too short:
src/rules/rrd/shortVariableName.test.ts#L62
AssertionError: expected [ { …(4) }, { …(4) }, { …(4) } ] to strictly equal [ { …(4) }, { …(4) }, { …(4) } ]
- Expected
+ Received
Array [
Object {
"description": "👉 Variable names must have a minimum length of 4. See: https://vue-mess-detector.webmania.cc/rules/rrd/short-variable-name.html",
"file": "multiple-short-variable-name.vue",
- "message": "(age) 🚨",
+ "message": "variable: (age) 🚨",
"rule": "rrd ~ short variable names",
},
Object {
"description": "👉 Variable names must have a minimum length of 4. See: https://vue-mess-detector.webmania.cc/rules/rrd/short-variable-name.html",
"file": "multiple-short-variable-name.vue",
- "message": "(gps) 🚨",
+ "message": "variable: (gps) 🚨",
"rule": "rrd ~ short variable names",
},
Object {
"description": "👉 Variable names must have a minimum length of 4. See: https://vue-mess-detector.webmania.cc/rules/rrd/short-variable-name.html",
"file": "multiple-short-variable-name.vue",
- "message": "(lng) 🚨",
+ "message": "variable: (lng) 🚨",
"rule": "rrd ~ short variable names",
},
]
❯ src/rules/rrd/shortVariableName.test.ts:62:39
|
test
Process completed with exit code 1.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|