Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI prints project version number #428

Closed
wants to merge 4 commits into from

Conversation

pieterocp
Copy link
Contributor

Summary

Gets version printing out project specific version number. Helpful for bug reports/checking versions at a glance.

Description

Should get the version number printing. Still need to pull it into a project and test but I want to say this does it.

Related Issues

Fixes #427

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
    • I hope nobody has been depending on this to work this way, but if they have, that's on them.
  • Documentation update

Screenshots (if applicable)

Copy link

logo Vue Mess Detector Analysis Results

PR Code Health Full Code Health

🚨 New Errors: 0
⚠️ New Warnings: 4
✅ Fixed Errors: 0
🔧 Fixed Warnings: 0
📝 Total Lines: 140
📁 Total Files: 2

New Issues

- src/rules/rrd/noImportant.ts:
  rrd ~ function size: function (resetResults#7) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/rrd/noImportant.test.ts:
  rrd ~ magic numbers: magic numbers found (line #57 magic number: 2) 🚨
  rrd ~ no Inline Styles: line #1 Found inline style: style="color: blue" 🚨

🔍 Download Full Analysis Details

For any issues or feedback, feel free to report them here.

Copy link

pkg-pr-new bot commented Oct 22, 2024

Open in Stackblitz

yarn add https://pkg.pr.new/rrd108/vue-mess-detector@428.tgz

commit: f2f44fb

@David-Pena
Copy link
Collaborator

There are some tests failing, could you check them out?
For example this one of the cli.test.ts image

@pieterocp
Copy link
Contributor Author

There are some tests failing, could you check them out? For example this one of the cli.test.ts image

Thinking about it, testing version just feels a bit like much, a bit of overhead to add to every test run.

Copy link

logo Vue Mess Detector Analysis Results

PR Code Health Full Code Health

🚨 New Errors: 0
⚠️ New Warnings: 4
✅ Fixed Errors: 0
🔧 Fixed Warnings: 0
📝 Total Lines: 140
📁 Total Files: 2

New Issues

- src/rules/rrd/noImportant.ts:
  rrd ~ function size: function (resetResults#7) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/rrd/noImportant.test.ts:
  rrd ~ magic numbers: magic numbers found (line #57 magic number: 2) 🚨
  rrd ~ no Inline Styles: line #1 Found inline style: style="color: blue" 🚨

🔍 Download Full Analysis Details

For any issues or feedback, feel free to report them here.

@pieterocp
Copy link
Contributor Author

I'm struggling with these failing tests, locally without any changes they are mostly timing out even when set to 20 seconds, feel free to make grand sweeping changes @David-Pena

Copy link

logo Vue Mess Detector Analysis Results

Full Code Health

🚨 Errors: 68
⚠️ Warnings: 239
📝 Total Lines: 9955
📁 Total Files: 150

Issues

- src/rules/rrd/noVarDeclaration.test.ts:
  rrd ~ magic numbers: magic numbers found (line #55 magic number: 4) 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declarations 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #26 Avoid using 'var' for variable declarations: var x = 5; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #26 Avoid using 'var' for variable declarations: var x = 5; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declarations 🚨
  rrd ~ No Var Declaration: line #46 Avoid using 'var' for variable declarations: var a = 1; 🚨
  rrd ~ No Var Declaration: line #47 Avoid using 'var' for variable declarations: var b = 2; 🚨
  rrd ~ No Var Declaration: line #48 Avoid using 'var' for variable declarations: var c = 3; 🚨
  rrd ~ No Var Declaration: line #49 Avoid using 'var' for variable declarations: var d = a + b; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #46 Avoid using 'var' for variable declarations: var a = 1; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #47 Avoid using 'var' for variable declarations: var b = 2; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #48 Avoid using 'var' for variable declarations: var c = 3; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #49 Avoid using 'var' for variable declarations: var d = a + b; 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (z) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (a) 🚨
  rrd ~ short variable names: variable: (b) 🚨
  rrd ~ short variable names: variable: (c) 🚨
  rrd ~ short variable names: variable: (d) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (a) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (b) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (c) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (d) 🚨
- src/helpers/skipComments.test.ts:
  rrd ~ function size: function (normalizeWhitespace#5) is too long: 53 lines 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
- src/rules/rrd/hugeFiles.test.ts:
  rrd ~ magic numbers: magic numbers found (line #12 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #16 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #32 magic number: 50) 🚨
  rrd ~ magic numbers: magic numbers found (line #52 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #66 magic number: 150) 🚨
  rrd ~ magic numbers: magic numbers found (line #76 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #80 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #111 magic number: 400) 🚨
  rrd ~ magic numbers: magic numbers found (line #133 magic number: 300) 🚨
  rrd ~ magic numbers: magic numbers found (line #142 magic number: 200) 🚨
  rrd ~ magic numbers: magic numbers found (line #151 magic number: 150) 🚨
  rrd ~ magic numbers: magic numbers found (line #175 magic number: 700) 🚨
  rrd ~ Long <script> blocks: (191 lines) 🚨
  rrd ~ short variable names: variable: (a) 🚨
- src/rules/rrd/amountOfComments.test.ts:
  rrd ~ Long <script> blocks: (127 lines) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (z) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (z) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
- src/rules/rrd/noSkippedTests.test.ts:
  rrd ~ magic numbers: magic numbers found (line #58 magic number: 2) 🚨
  rrd ~ no skipped tests: line #28 skip test found: ".skip" 🚨
  rrd ~ no skipped tests: line #44 skip test found: ".todo" 🚨
  rrd ~ no skipped tests: line #58 skip test found: ".todo" 🚨
  rrd ~ no skipped tests: line #66 skip test found: ".skip" 🚨
  rrd ~ no skipped tests: line #70 skip test found: ".skipIf" 🚨
  rrd ~ no skipped tests: line #84 skip test found: ".skip" 🚨
  rrd ~ no skipped tests: line #89 skip test found: ".skipIf" 🚨
- src/cli.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (16) 🚨
  rrd ~ magic numbers: magic numbers found (line #16 magic number: 2) 🚨
  rrd ~ magic numbers: magic numbers found (line #179 magic number: 120) 🚨
  rrd ~ magic numbers: magic numbers found (line #202 magic number: 2) 🚨
  rrd ~ magic numbers: magic numbers found (line #219 magic number: 2) 🚨
  rrd ~ Long <script> blocks: (228 lines) 🚨
  rrd ~ short variable names: variable: (log) 🚨
- src/generator/createDoc.js:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (7) 🚨
  rrd ~ else conditions: else clauses found (1) 🚨
  rrd ~ function size: function (getQuestions#26) is too long: 22 lines 🚨
  rrd ~ function size: function (main#63) is too long: 23 lines 🚨
  rrd ~ if without curly braces: line #43 if statement without curly braces: if (error.code !== 'ENOENT') 🚨
  rrd ~ Zero Length Comparison: line #31 zero length comparison found (inProgressRules) 🚨
- src/rules/rrd/functionSize.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (26) 🚨
  rrd ~ else conditions: else clauses found (5) 🚨
  rrd ~ function size: function (resetResults#129) is too long: 65 lines 🚨
  rrd ~ parameter count: function addFunctionToFiles has 5 parameters 🚨
  rrd ~ Long <script> blocks: (194 lines) 🚨
  rrd ~ Zero Length Comparison: line #178 zero length comparison found (results) 🚨
- src/rulesReport.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (9) 🚨
  rrd ~ else conditions: else clauses found (1) 🚨
  rrd ~ function size: function (reportRules#11) is too long: 135 lines 🚨
  rrd ~ parameter count: function reportRules has 4 parameters 🚨
  rrd ~ parameter count: function addOffense has 5 parameters 🚨
  rrd ~ Long <script> blocks: (148 lines) 🚨
- src/analyzer.ts:
  rrd ~ complicated conditions: line #94 script has a complicated condition with 5 blocks 🚨
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (13) 🚨
  rrd ~ function size: function (walkAsync#52) is too long: 30 lines 🚨
  rrd ~ Long <script> blocks: (172 lines) 🚨
  rrd ~ Zero Length Comparison: line #130 zero length comparison found (individualRules) 🚨
- src/rules/rrd/complicatedConditions.test.ts:
  rrd ~ complicated conditions: line #33 script has a complicated condition with 6 blocks 🚨
  rrd ~ complicated conditions: line #69 script has a complicated condition with 6 blocks 🚨
  rrd ~ complicated conditions: line #85 script has a complicated condition with 6 blocks 🚨
  rrd ~ magic numbers: magic numbers found (line #66 magic number: 2) 🚨
  rrd ~ Long <script> blocks: (121 lines) 🚨
- src/rules/rrd/cyclomaticComplexity.ts:
  rrd ~ complicated conditions: line #22 script has a complicated condition with 6 blocks 🚨
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#8) is too long: 58 lines 🚨
  rrd ~ short variable names: variable: (_if) 🚨
  rrd ~ Zero Length Comparison: line #50 zero length comparison found (results) 🚨
- src/rules/rrd/hugeFiles.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ else conditions: else clauses found (2) 🚨
  rrd ~ function size: function (resetResults#6) is too long: 49 lines 🚨
  rrd ~ parameter count: function checkHugeFiles has 4 parameters 🚨
  rrd ~ Zero Length Comparison: line #39 zero length comparison found (results) 🚨
- src/rules/rrd/parameterCount.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 55 lines 🚨
  rrd ~ parameter count: function checkParameters has 4 parameters 🚨
  rrd ~ Zero Length Comparison: line #14 zero length comparison found (param) 🚨
  rrd ~ Zero Length Comparison: line #45 zero length comparison found (results) 🚨
- src/rules/rrd/cyclomaticComplexity.test.ts:
  rrd ~ magic numbers: magic numbers found (line #10 magic number: 4) 🚨
  rrd ~ magic numbers: magic numbers found (line #23 magic number: 6) 🚨
  rrd ~ magic numbers: magic numbers found (line #34 magic number: 6) 🚨
  rrd ~ magic numbers: magic numbers found (line #41 magic number: 11) 🚨
  rrd ~ magic numbers: magic numbers found (line #52 magic number: 11) 🚨
- src/helpers/coerceRules.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ else conditions: else clauses found (2) 🚨
  rrd ~ function size: function (coerceRules#6) is too long: 31 lines 🚨
  rrd ~ Zero Length Comparison: line #29 zero length comparison found (invalidValues) 🚨
- src/rules/rrd/elseCondition.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (7) 🚨
  rrd ~ else conditions: else clauses found (3) 🚨
  rrd ~ function size: function (resetResults#8) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #33 zero length comparison found (results) 🚨
- src/helpers/constants.ts:
  rrd ~ magic numbers: magic numbers found (line #4 magic number: 5) 🚨
  rrd ~ magic numbers: magic numbers found (line #5 magic number: 75) 🚨
  rrd ~ magic numbers: magic numbers found (line #6 magic number: 85) 🚨
  rrd ~ magic numbers: magic numbers found (line #7 magic number: 95) 🚨
- src/rules/rrd/nestedTernary.test.ts:
  rrd ~ nested Ternary: line #71 has nested ternary 🚨
  rrd ~ nested Ternary: line #88 has nested ternary 🚨
  rrd ~ nested Ternary: line #106 has nested ternary 🚨
  rrd ~ Long <script> blocks: (121 lines) 🚨
- src/rulesCheck.ts:
  rrd ~ complicated conditions: line #18 script has a complicated condition with 26 blocks 🚨
  rrd ~ function size: function (checkRules#11) is too long: 79 lines 🚨
  rrd ~ parameter count: function checkRules has 4 parameters 🚨
- src/cli.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (runCLI#21) is too long: 280 lines 🚨
  rrd ~ Long <script> blocks: (301 lines) 🚨
- src/missingRules.js:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (17) 🚨
  rrd ~ function size: function (isValidSourceFile#4) is too long: 139 lines 🚨
  rrd ~ Long <script> blocks: (143 lines) 🚨
- src/rules/rrd/bigVif.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (10) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 50 lines 🚨
  rrd ~ Zero Length Comparison: line #41 zero length comparison found (results) 🚨
- src/rules/rrd/complicatedConditions.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 77 lines 🚨
  rrd ~ Zero Length Comparison: line #70 zero length comparison found (results) 🚨
- src/rules/rrd/ifWithoutCurlyBraces.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (11) 🚨
  rrd ~ function size: function (resetResults#8) is too long: 60 lines 🚨
  rrd ~ Zero Length Comparison: line #52 zero length comparison found (results) 🚨
- src/rules/rrd/vForExpression.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 46 lines 🚨
  rrd ~ Zero Length Comparison: line #38 zero length comparison found (results) 🚨
- src/rules/rrd/vForWithIndexKey.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 50 lines 🚨
  rrd ~ Zero Length Comparison: line #43 zero length comparison found (results) 🚨
- src/rules/vue-essential/vforNoKey.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (16) 🚨
  rrd ~ magic numbers: magic numbers found (line #30 magic number: 2) 🚨
  rrd ~ Long <script> blocks: (111 lines) 🚨
- src/rules/vue-essential/vforNoKey.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#6) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/vue-essential/vifWithVfor.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (12) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 56 lines 🚨
  rrd ~ Zero Length Comparison: line #49 zero length comparison found (results) 🚨
- src/rules/vue-recommended/elementAttributeOrder.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (11) 🚨
  rrd ~ function size: function (resetResults#27) is too long: 60 lines 🚨
  rrd ~ Zero Length Comparison: line #70 zero length comparison found (results) 🚨
- src/rules/vue-strong/componentFilenameCasing.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 49 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/vue-strong/directiveShorthands.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (7) 🚨
  rrd ~ function size: function (resetResults#12) is too long: 40 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/vue-strong/multiAttributeElements.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 60 lines 🚨
  rrd ~ Zero Length Comparison: line #50 zero length comparison found (results) 🚨
- src/rules/vue-strong/quotedAttributeValues.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 61 lines 🚨
  rrd ~ Zero Length Comparison: line #54 zero length comparison found (results) 🚨
- src/rules/rrd/noPropDestructure.ts:
  rrd ~ function size: function (resetResults#9) is too long: 41 lines 🚨
  rrd ~ no Prop Destructure: line #39 props destructuring found: const { propName } = defineProps() 🚨
  rrd ~ Zero Length Comparison: line #34 zero length comparison found (results) 🚨
- src/rules/rrd/noVarDeclaration.ts:
  rrd ~ No Var Declaration: line #37 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ Zero Length Comparison: line #32 zero length comparison found (results) 🚨
- src/rules/vue-strong/simpleComputed.test.ts:
  vue-strong ~ complicated computed property: line #2 computed 🚨
  rrd ~ computed side effects: line #1 side effect detected in computed property (let total = 0
    ) 🚨
- src/rules/rrd/vForWithIndexKey.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (11) 🚨
  rrd ~ Long <script> blocks: (102 lines) 🚨
- src/rules/vue-strong/directiveShorthands.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (9) 🚨
  rrd ~ magic numbers: magic numbers found (line #42 magic number: 3) 🚨
- src/generator/createRule.js:
  rrd ~ function size: function (createFiles#19) is too long: 57 lines 🚨
  rrd ~ if without curly braces: line #69 if statement without curly braces: if (error.code !== 'ENOENT') 🚨
- src/rules/rrd/amountOfComments.ts:
  rrd ~ function size: function (resetResults#7) is too long: 50 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/rrd/bigVshow.ts:
  rrd ~ function size: function (resetResults#7) is too long: 49 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/rrd/computedSideEffects.ts:
  rrd ~ function size: function (resetResults#8) is too long: 46 lines 🚨
  rrd ~ Zero Length Comparison: line #38 zero length comparison found (results) 🚨
- src/rules/rrd/deepIndentation.ts:
  rrd ~ function size: function (resetResults#11) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/rrd/htmlImageElements.ts:
  rrd ~ function size: function (resetResults#8) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #35 zero length comparison found (results) 🚨
- src/rules/rrd/htmlLink.ts:
  rrd ~ function size: function (resetResults#8) is too long: 37 lines 🚨
  rrd ~ Zero Length Comparison: line #29 zero length comparison found (results) 🚨
- src/rules/rrd/nestedTernary.ts:
  rrd ~ function size: function (resetResults#7) is too long: 49 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/rrd/noDirectDomAccess.ts:
  rrd ~ function size: function (resetResults#9) is too long: 45 lines 🚨
  rrd ~ Zero Length Comparison: line #37 zero length comparison found (results) 🚨
- src/rules/rrd/noImportant.ts:
  rrd ~ function size: function (resetResults#7) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/rrd/noInlineStyles.ts:
  rrd ~ function size: function (resetResults#8) is too long: 40 lines 🚨
  rrd ~ Zero Length Comparison: line #32 zero length comparison found (results) 🚨
- src/rules/rrd/noSkippedTests.ts:
  rrd ~ function size: function (resetResults#8) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #34 zero length comparison found (results) 🚨
- src/rules/rrd/noTsLang.ts:
  rrd ~ function size: function (resetResults#6) is too long: 36 lines 🚨
  rrd ~ Zero Length Comparison: line #24 zero length comparison found (results) 🚨
- src/rules/rrd/plainScript.ts:
  rrd ~ function size: function (resetResults#7) is too long: 29 lines 🚨
  rrd ~ Zero Length Comparison: line #20 zero length comparison found (results) 🚨
- src/rules/rrd/propsDrilling.ts:
  rrd ~ function size: function (resetResults#10) is too long: 85 lines 🚨
  rrd ~ Zero Length Comparison: line #79 zero length comparison found (results) 🚨
- src/rules/rrd/scriptLength.ts:
  rrd ~ function size: function (resetResults#6) is too long: 34 lines 🚨
  rrd ~ Zero Length Comparison: line #24 zero length comparison found (results) 🚨
- src/rules/rrd/shortVariableName.ts:
  rrd ~ function size: function (resetResults#7) is too long: 42 lines 🚨
  rrd ~ Zero Length Comparison: line #33 zero length comparison found (results) 🚨
- src/rules/rrd/tooManyProps.ts:
  rrd ~ function size: function (resetResults#9) is too long: 37 lines 🚨
  rrd ~ Zero Length Comparison: line #30 zero length comparison found (results) 🚨
- src/rules/rrd/zeroLengthComparison.ts:
  rrd ~ function size: function (resetResults#9) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/security/apiWithoutMethod.ts:
  rrd ~ function size: function (resetResults#9) is too long: 55 lines 🚨
  rrd ~ Zero Length Comparison: line #47 zero length comparison found (results) 🚨
- src/rules/security/rateLimiter.ts:
  rrd ~ function size: function (resetResults#6) is too long: 39 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/vue-caution/elementSelectorsWithScoped.ts:
  rrd ~ function size: function (resetResults#9) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #33 zero length comparison found (results) 🚨
- src/rules/vue-caution/implicitParentChildCommunication.ts:
  rrd ~ function size: function (resetResults#9) is too long: 61 lines 🚨
  rrd ~ Zero Length Comparison: line #53 zero length comparison found (results) 🚨
- src/rules/vue-essential/globalStyle.ts:
  rrd ~ function size: function (resetResults#7) is too long: 33 lines 🚨
  rrd ~ Zero Length Comparison: line #24 zero length comparison found (results) 🚨
- src/rules/vue-essential/simpleProp.ts:
  rrd ~ function size: function (resetResults#8) is too long: 35 lines 🚨
  rrd ~ Zero Length Comparison: line #27 zero length comparison found (results) 🚨
- src/rules/vue-essential/singleNameComponent.ts:
  rrd ~ function size: function (resetResults#8) is too long: 45 lines 🚨
  rrd ~ Zero Length Comparison: line #37 zero length comparison found (results) 🚨
- src/rules/vue-recommended/topLevelElementOrder.ts:
  rrd ~ function size: function (resetResults#5) is too long: 48 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/vue-strong/componentFiles.ts:
  rrd ~ function size: function (resetResults#8) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #30 zero length comparison found (results) 🚨
- src/rules/vue-strong/fullWordComponentName.ts:
  rrd ~ function size: function (resetResults#8) is too long: 48 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/vue-strong/propNameCasing.ts:
  rrd ~ function size: function (resetResults#10) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #35 zero length comparison found (results) 🚨
- src/rules/vue-strong/selfClosingComponents.ts:
  rrd ~ function size: function (resetResults#8) is too long: 68 lines 🚨
  rrd ~ Zero Length Comparison: line #60 zero length comparison found (results) 🚨
- src/rules/vue-strong/simpleComputed.ts:
  rrd ~ function size: function (resetResults#9) is too long: 46 lines 🚨
  rrd ~ Zero Length Comparison: line #39 zero length comparison found (complicatedComputedFiles) 🚨
- src/rules/vue-strong/templateSimpleExpression.ts:
  rrd ~ function size: function (resetResults#8) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #34 zero length comparison found (results) 🚨
- src/rules/rrd/noImportant.test.ts:
  rrd ~ magic numbers: magic numbers found (line #57 magic number: 2) 🚨
  rrd ~ no Inline Styles: line #1 Found inline style: style="color: blue" 🚨
- src/rules/rrd/propsDrilling.test.ts:
  vue-essential ~ simple prop: Props type not defined 🚨
- src/helpers/extractPropNames.ts:
  rrd ~ amount of comments: The script block contains 59.44% comments, which exceeds the limit of 30%. 🚨
- src/helpers/getEscapedLink.ts:
  rrd ~ amount of comments: The script block contains 74.45% comments, which exceeds the limit of 30%. 🚨
- src/types/Override.ts:
  rrd ~ amount of comments: The script block contains 31.82% comments, which exceeds the limit of 30%. 🚨
- src/rules/rrd/bigVif.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (10) 🚨
- src/rules/rrd/vForExpression.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
- src/rules/vue-essential/vifWithVfor.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (13) 🚨
- src/rules/vue-strong/componentFilenameCasing.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
- src/helpers/getConfig.ts:
  rrd ~ else conditions: else clauses found (1) 🚨
- src/generator/insertRule2Rules.js:
  rrd ~ function size: function (insertRule2Rules#4) is too long: 35 lines 🚨
- src/rules/rrd/magicNumbers.ts:
  rrd ~ function size: function (resetResults#10) is too long: 58 lines 🚨
- src/rules/getLineNumber.test.ts:
  rrd ~ magic numbers: magic numbers found (line #6 magic number: 2) 🚨
- src/rules/rrd/htmlImageElements.test.ts:
  rrd ~ magic numbers: magic numbers found (line #37 magic number: 3) 🚨
- src/rules/rrd/noInlineStyles.test.ts:
  rrd ~ magic numbers: magic numbers found (line #38 magic number: 2) 🚨
- src/rules/vue-caution/elementSelectorsWithScoped.test.ts:
  rrd ~ magic numbers: magic numbers found (line #34 magic number: 2) 🚨
- src/rules/vue-strong/multiAttributeElements.test.ts:
  rrd ~ magic numbers: magic numbers found (line #56 magic number: 2) 🚨
- src/rules/vue-strong/quotedAttributeValues.test.ts:
  rrd ~ no Inline Styles: line #1 Found inline style: style="{ width: sidebarWidth + ' 🚨
- src/rules/vue-strong/selfClosingComponents.test.ts:
  rrd ~ Long <script> blocks: (105 lines) 🚨
- src/rules/vue-recommended/topLevelElementOrder.test.ts:
  rrd ~ short variable names: variable: (age) 🚨

🔍 Download Full Analysis Details

For any issues or feedback, feel free to report them here.

Copy link

logo Vue Mess Detector Analysis Results

Full Code Health

🚨 Errors: 68
⚠️ Warnings: 239
📝 Total Lines: 9955
📁 Total Files: 150

Issues

- src/rules/rrd/noVarDeclaration.test.ts:
  rrd ~ magic numbers: magic numbers found (line #55 magic number: 4) 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declarations 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #26 Avoid using 'var' for variable declarations: var x = 5; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #26 Avoid using 'var' for variable declarations: var x = 5; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declarations 🚨
  rrd ~ No Var Declaration: line #46 Avoid using 'var' for variable declarations: var a = 1; 🚨
  rrd ~ No Var Declaration: line #47 Avoid using 'var' for variable declarations: var b = 2; 🚨
  rrd ~ No Var Declaration: line #48 Avoid using 'var' for variable declarations: var c = 3; 🚨
  rrd ~ No Var Declaration: line #49 Avoid using 'var' for variable declarations: var d = a + b; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #46 Avoid using 'var' for variable declarations: var a = 1; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #47 Avoid using 'var' for variable declarations: var b = 2; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #48 Avoid using 'var' for variable declarations: var c = 3; 🚨
  rrd ~ No Var Declaration: line #6 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ No Var Declaration: line #49 Avoid using 'var' for variable declarations: var d = a + b; 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (z) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (a) 🚨
  rrd ~ short variable names: variable: (b) 🚨
  rrd ~ short variable names: variable: (c) 🚨
  rrd ~ short variable names: variable: (d) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (a) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (b) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (c) 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ short variable names: variable: (d) 🚨
- src/helpers/skipComments.test.ts:
  rrd ~ function size: function (normalizeWhitespace#5) is too long: 53 lines 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
- src/rules/rrd/hugeFiles.test.ts:
  rrd ~ magic numbers: magic numbers found (line #12 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #16 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #32 magic number: 50) 🚨
  rrd ~ magic numbers: magic numbers found (line #52 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #66 magic number: 150) 🚨
  rrd ~ magic numbers: magic numbers found (line #76 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #80 magic number: 100) 🚨
  rrd ~ magic numbers: magic numbers found (line #111 magic number: 400) 🚨
  rrd ~ magic numbers: magic numbers found (line #133 magic number: 300) 🚨
  rrd ~ magic numbers: magic numbers found (line #142 magic number: 200) 🚨
  rrd ~ magic numbers: magic numbers found (line #151 magic number: 150) 🚨
  rrd ~ magic numbers: magic numbers found (line #175 magic number: 700) 🚨
  rrd ~ Long <script> blocks: (191 lines) 🚨
  rrd ~ short variable names: variable: (a) 🚨
- src/rules/rrd/amountOfComments.test.ts:
  rrd ~ Long <script> blocks: (127 lines) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (z) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
  rrd ~ short variable names: variable: (z) 🚨
  rrd ~ short variable names: variable: (x) 🚨
  rrd ~ short variable names: variable: (y) 🚨
- src/rules/rrd/noSkippedTests.test.ts:
  rrd ~ magic numbers: magic numbers found (line #58 magic number: 2) 🚨
  rrd ~ no skipped tests: line #28 skip test found: ".skip" 🚨
  rrd ~ no skipped tests: line #44 skip test found: ".todo" 🚨
  rrd ~ no skipped tests: line #58 skip test found: ".todo" 🚨
  rrd ~ no skipped tests: line #66 skip test found: ".skip" 🚨
  rrd ~ no skipped tests: line #70 skip test found: ".skipIf" 🚨
  rrd ~ no skipped tests: line #84 skip test found: ".skip" 🚨
  rrd ~ no skipped tests: line #89 skip test found: ".skipIf" 🚨
- src/cli.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (16) 🚨
  rrd ~ magic numbers: magic numbers found (line #16 magic number: 2) 🚨
  rrd ~ magic numbers: magic numbers found (line #179 magic number: 120) 🚨
  rrd ~ magic numbers: magic numbers found (line #202 magic number: 2) 🚨
  rrd ~ magic numbers: magic numbers found (line #219 magic number: 2) 🚨
  rrd ~ Long <script> blocks: (228 lines) 🚨
  rrd ~ short variable names: variable: (log) 🚨
- src/generator/createDoc.js:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (7) 🚨
  rrd ~ else conditions: else clauses found (1) 🚨
  rrd ~ function size: function (getQuestions#26) is too long: 22 lines 🚨
  rrd ~ function size: function (main#63) is too long: 23 lines 🚨
  rrd ~ if without curly braces: line #43 if statement without curly braces: if (error.code !== 'ENOENT') 🚨
  rrd ~ Zero Length Comparison: line #31 zero length comparison found (inProgressRules) 🚨
- src/rules/rrd/functionSize.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (26) 🚨
  rrd ~ else conditions: else clauses found (5) 🚨
  rrd ~ function size: function (resetResults#129) is too long: 65 lines 🚨
  rrd ~ parameter count: function addFunctionToFiles has 5 parameters 🚨
  rrd ~ Long <script> blocks: (194 lines) 🚨
  rrd ~ Zero Length Comparison: line #178 zero length comparison found (results) 🚨
- src/rulesReport.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (9) 🚨
  rrd ~ else conditions: else clauses found (1) 🚨
  rrd ~ function size: function (reportRules#11) is too long: 135 lines 🚨
  rrd ~ parameter count: function reportRules has 4 parameters 🚨
  rrd ~ parameter count: function addOffense has 5 parameters 🚨
  rrd ~ Long <script> blocks: (148 lines) 🚨
- src/analyzer.ts:
  rrd ~ complicated conditions: line #94 script has a complicated condition with 5 blocks 🚨
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (13) 🚨
  rrd ~ function size: function (walkAsync#52) is too long: 30 lines 🚨
  rrd ~ Long <script> blocks: (172 lines) 🚨
  rrd ~ Zero Length Comparison: line #130 zero length comparison found (individualRules) 🚨
- src/rules/rrd/complicatedConditions.test.ts:
  rrd ~ complicated conditions: line #33 script has a complicated condition with 6 blocks 🚨
  rrd ~ complicated conditions: line #69 script has a complicated condition with 6 blocks 🚨
  rrd ~ complicated conditions: line #85 script has a complicated condition with 6 blocks 🚨
  rrd ~ magic numbers: magic numbers found (line #66 magic number: 2) 🚨
  rrd ~ Long <script> blocks: (121 lines) 🚨
- src/rules/rrd/cyclomaticComplexity.ts:
  rrd ~ complicated conditions: line #22 script has a complicated condition with 6 blocks 🚨
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#8) is too long: 58 lines 🚨
  rrd ~ short variable names: variable: (_if) 🚨
  rrd ~ Zero Length Comparison: line #50 zero length comparison found (results) 🚨
- src/rules/rrd/hugeFiles.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ else conditions: else clauses found (2) 🚨
  rrd ~ function size: function (resetResults#6) is too long: 49 lines 🚨
  rrd ~ parameter count: function checkHugeFiles has 4 parameters 🚨
  rrd ~ Zero Length Comparison: line #39 zero length comparison found (results) 🚨
- src/rules/rrd/parameterCount.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 55 lines 🚨
  rrd ~ parameter count: function checkParameters has 4 parameters 🚨
  rrd ~ Zero Length Comparison: line #14 zero length comparison found (param) 🚨
  rrd ~ Zero Length Comparison: line #45 zero length comparison found (results) 🚨
- src/rules/rrd/cyclomaticComplexity.test.ts:
  rrd ~ magic numbers: magic numbers found (line #10 magic number: 4) 🚨
  rrd ~ magic numbers: magic numbers found (line #23 magic number: 6) 🚨
  rrd ~ magic numbers: magic numbers found (line #34 magic number: 6) 🚨
  rrd ~ magic numbers: magic numbers found (line #41 magic number: 11) 🚨
  rrd ~ magic numbers: magic numbers found (line #52 magic number: 11) 🚨
- src/helpers/coerceRules.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ else conditions: else clauses found (2) 🚨
  rrd ~ function size: function (coerceRules#6) is too long: 31 lines 🚨
  rrd ~ Zero Length Comparison: line #29 zero length comparison found (invalidValues) 🚨
- src/rules/rrd/elseCondition.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (7) 🚨
  rrd ~ else conditions: else clauses found (3) 🚨
  rrd ~ function size: function (resetResults#8) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #33 zero length comparison found (results) 🚨
- src/helpers/constants.ts:
  rrd ~ magic numbers: magic numbers found (line #4 magic number: 5) 🚨
  rrd ~ magic numbers: magic numbers found (line #5 magic number: 75) 🚨
  rrd ~ magic numbers: magic numbers found (line #6 magic number: 85) 🚨
  rrd ~ magic numbers: magic numbers found (line #7 magic number: 95) 🚨
- src/rules/rrd/nestedTernary.test.ts:
  rrd ~ nested Ternary: line #71 has nested ternary 🚨
  rrd ~ nested Ternary: line #88 has nested ternary 🚨
  rrd ~ nested Ternary: line #106 has nested ternary 🚨
  rrd ~ Long <script> blocks: (121 lines) 🚨
- src/rulesCheck.ts:
  rrd ~ complicated conditions: line #18 script has a complicated condition with 26 blocks 🚨
  rrd ~ function size: function (checkRules#11) is too long: 79 lines 🚨
  rrd ~ parameter count: function checkRules has 4 parameters 🚨
- src/cli.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (runCLI#21) is too long: 280 lines 🚨
  rrd ~ Long <script> blocks: (301 lines) 🚨
- src/missingRules.js:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (17) 🚨
  rrd ~ function size: function (isValidSourceFile#4) is too long: 139 lines 🚨
  rrd ~ Long <script> blocks: (143 lines) 🚨
- src/rules/rrd/bigVif.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (10) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 50 lines 🚨
  rrd ~ Zero Length Comparison: line #41 zero length comparison found (results) 🚨
- src/rules/rrd/complicatedConditions.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 77 lines 🚨
  rrd ~ Zero Length Comparison: line #70 zero length comparison found (results) 🚨
- src/rules/rrd/ifWithoutCurlyBraces.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (11) 🚨
  rrd ~ function size: function (resetResults#8) is too long: 60 lines 🚨
  rrd ~ Zero Length Comparison: line #52 zero length comparison found (results) 🚨
- src/rules/rrd/vForExpression.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 46 lines 🚨
  rrd ~ Zero Length Comparison: line #38 zero length comparison found (results) 🚨
- src/rules/rrd/vForWithIndexKey.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 50 lines 🚨
  rrd ~ Zero Length Comparison: line #43 zero length comparison found (results) 🚨
- src/rules/vue-essential/vforNoKey.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (16) 🚨
  rrd ~ magic numbers: magic numbers found (line #30 magic number: 2) 🚨
  rrd ~ Long <script> blocks: (111 lines) 🚨
- src/rules/vue-essential/vforNoKey.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#6) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/vue-essential/vifWithVfor.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (12) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 56 lines 🚨
  rrd ~ Zero Length Comparison: line #49 zero length comparison found (results) 🚨
- src/rules/vue-recommended/elementAttributeOrder.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (11) 🚨
  rrd ~ function size: function (resetResults#27) is too long: 60 lines 🚨
  rrd ~ Zero Length Comparison: line #70 zero length comparison found (results) 🚨
- src/rules/vue-strong/componentFilenameCasing.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 49 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/vue-strong/directiveShorthands.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (7) 🚨
  rrd ~ function size: function (resetResults#12) is too long: 40 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/vue-strong/multiAttributeElements.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#7) is too long: 60 lines 🚨
  rrd ~ Zero Length Comparison: line #50 zero length comparison found (results) 🚨
- src/rules/vue-strong/quotedAttributeValues.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (6) 🚨
  rrd ~ function size: function (resetResults#9) is too long: 61 lines 🚨
  rrd ~ Zero Length Comparison: line #54 zero length comparison found (results) 🚨
- src/rules/rrd/noPropDestructure.ts:
  rrd ~ function size: function (resetResults#9) is too long: 41 lines 🚨
  rrd ~ no Prop Destructure: line #39 props destructuring found: const { propName } = defineProps() 🚨
  rrd ~ Zero Length Comparison: line #34 zero length comparison found (results) 🚨
- src/rules/rrd/noVarDeclaration.ts:
  rrd ~ No Var Declaration: line #37 Avoid using 'var' for variable declarations: var declaration 🚨
  rrd ~ short variable names: variable: (or) 🚨
  rrd ~ Zero Length Comparison: line #32 zero length comparison found (results) 🚨
- src/rules/vue-strong/simpleComputed.test.ts:
  vue-strong ~ complicated computed property: line #2 computed 🚨
  rrd ~ computed side effects: line #1 side effect detected in computed property (let total = 0
    ) 🚨
- src/rules/rrd/vForWithIndexKey.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (11) 🚨
  rrd ~ Long <script> blocks: (102 lines) 🚨
- src/rules/vue-strong/directiveShorthands.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (9) 🚨
  rrd ~ magic numbers: magic numbers found (line #42 magic number: 3) 🚨
- src/generator/createRule.js:
  rrd ~ function size: function (createFiles#19) is too long: 57 lines 🚨
  rrd ~ if without curly braces: line #69 if statement without curly braces: if (error.code !== 'ENOENT') 🚨
- src/rules/rrd/amountOfComments.ts:
  rrd ~ function size: function (resetResults#7) is too long: 50 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/rrd/bigVshow.ts:
  rrd ~ function size: function (resetResults#7) is too long: 49 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/rrd/computedSideEffects.ts:
  rrd ~ function size: function (resetResults#8) is too long: 46 lines 🚨
  rrd ~ Zero Length Comparison: line #38 zero length comparison found (results) 🚨
- src/rules/rrd/deepIndentation.ts:
  rrd ~ function size: function (resetResults#11) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/rrd/htmlImageElements.ts:
  rrd ~ function size: function (resetResults#8) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #35 zero length comparison found (results) 🚨
- src/rules/rrd/htmlLink.ts:
  rrd ~ function size: function (resetResults#8) is too long: 37 lines 🚨
  rrd ~ Zero Length Comparison: line #29 zero length comparison found (results) 🚨
- src/rules/rrd/nestedTernary.ts:
  rrd ~ function size: function (resetResults#7) is too long: 49 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/rrd/noDirectDomAccess.ts:
  rrd ~ function size: function (resetResults#9) is too long: 45 lines 🚨
  rrd ~ Zero Length Comparison: line #37 zero length comparison found (results) 🚨
- src/rules/rrd/noImportant.ts:
  rrd ~ function size: function (resetResults#7) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/rrd/noInlineStyles.ts:
  rrd ~ function size: function (resetResults#8) is too long: 40 lines 🚨
  rrd ~ Zero Length Comparison: line #32 zero length comparison found (results) 🚨
- src/rules/rrd/noSkippedTests.ts:
  rrd ~ function size: function (resetResults#8) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #34 zero length comparison found (results) 🚨
- src/rules/rrd/noTsLang.ts:
  rrd ~ function size: function (resetResults#6) is too long: 36 lines 🚨
  rrd ~ Zero Length Comparison: line #24 zero length comparison found (results) 🚨
- src/rules/rrd/plainScript.ts:
  rrd ~ function size: function (resetResults#7) is too long: 29 lines 🚨
  rrd ~ Zero Length Comparison: line #20 zero length comparison found (results) 🚨
- src/rules/rrd/propsDrilling.ts:
  rrd ~ function size: function (resetResults#10) is too long: 85 lines 🚨
  rrd ~ Zero Length Comparison: line #79 zero length comparison found (results) 🚨
- src/rules/rrd/scriptLength.ts:
  rrd ~ function size: function (resetResults#6) is too long: 34 lines 🚨
  rrd ~ Zero Length Comparison: line #24 zero length comparison found (results) 🚨
- src/rules/rrd/shortVariableName.ts:
  rrd ~ function size: function (resetResults#7) is too long: 42 lines 🚨
  rrd ~ Zero Length Comparison: line #33 zero length comparison found (results) 🚨
- src/rules/rrd/tooManyProps.ts:
  rrd ~ function size: function (resetResults#9) is too long: 37 lines 🚨
  rrd ~ Zero Length Comparison: line #30 zero length comparison found (results) 🚨
- src/rules/rrd/zeroLengthComparison.ts:
  rrd ~ function size: function (resetResults#9) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/security/apiWithoutMethod.ts:
  rrd ~ function size: function (resetResults#9) is too long: 55 lines 🚨
  rrd ~ Zero Length Comparison: line #47 zero length comparison found (results) 🚨
- src/rules/security/rateLimiter.ts:
  rrd ~ function size: function (resetResults#6) is too long: 39 lines 🚨
  rrd ~ Zero Length Comparison: line #28 zero length comparison found (results) 🚨
- src/rules/vue-caution/elementSelectorsWithScoped.ts:
  rrd ~ function size: function (resetResults#9) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #33 zero length comparison found (results) 🚨
- src/rules/vue-caution/implicitParentChildCommunication.ts:
  rrd ~ function size: function (resetResults#9) is too long: 61 lines 🚨
  rrd ~ Zero Length Comparison: line #53 zero length comparison found (results) 🚨
- src/rules/vue-essential/globalStyle.ts:
  rrd ~ function size: function (resetResults#7) is too long: 33 lines 🚨
  rrd ~ Zero Length Comparison: line #24 zero length comparison found (results) 🚨
- src/rules/vue-essential/simpleProp.ts:
  rrd ~ function size: function (resetResults#8) is too long: 35 lines 🚨
  rrd ~ Zero Length Comparison: line #27 zero length comparison found (results) 🚨
- src/rules/vue-essential/singleNameComponent.ts:
  rrd ~ function size: function (resetResults#8) is too long: 45 lines 🚨
  rrd ~ Zero Length Comparison: line #37 zero length comparison found (results) 🚨
- src/rules/vue-recommended/topLevelElementOrder.ts:
  rrd ~ function size: function (resetResults#5) is too long: 48 lines 🚨
  rrd ~ Zero Length Comparison: line #36 zero length comparison found (results) 🚨
- src/rules/vue-strong/componentFiles.ts:
  rrd ~ function size: function (resetResults#8) is too long: 38 lines 🚨
  rrd ~ Zero Length Comparison: line #30 zero length comparison found (results) 🚨
- src/rules/vue-strong/fullWordComponentName.ts:
  rrd ~ function size: function (resetResults#8) is too long: 48 lines 🚨
  rrd ~ Zero Length Comparison: line #40 zero length comparison found (results) 🚨
- src/rules/vue-strong/propNameCasing.ts:
  rrd ~ function size: function (resetResults#10) is too long: 41 lines 🚨
  rrd ~ Zero Length Comparison: line #35 zero length comparison found (results) 🚨
- src/rules/vue-strong/selfClosingComponents.ts:
  rrd ~ function size: function (resetResults#8) is too long: 68 lines 🚨
  rrd ~ Zero Length Comparison: line #60 zero length comparison found (results) 🚨
- src/rules/vue-strong/simpleComputed.ts:
  rrd ~ function size: function (resetResults#9) is too long: 46 lines 🚨
  rrd ~ Zero Length Comparison: line #39 zero length comparison found (complicatedComputedFiles) 🚨
- src/rules/vue-strong/templateSimpleExpression.ts:
  rrd ~ function size: function (resetResults#8) is too long: 43 lines 🚨
  rrd ~ Zero Length Comparison: line #34 zero length comparison found (results) 🚨
- src/rules/rrd/noImportant.test.ts:
  rrd ~ magic numbers: magic numbers found (line #57 magic number: 2) 🚨
  rrd ~ no Inline Styles: line #1 Found inline style: style="color: blue" 🚨
- src/rules/rrd/propsDrilling.test.ts:
  vue-essential ~ simple prop: Props type not defined 🚨
- src/helpers/extractPropNames.ts:
  rrd ~ amount of comments: The script block contains 59.44% comments, which exceeds the limit of 30%. 🚨
- src/helpers/getEscapedLink.ts:
  rrd ~ amount of comments: The script block contains 74.45% comments, which exceeds the limit of 30%. 🚨
- src/types/Override.ts:
  rrd ~ amount of comments: The script block contains 31.82% comments, which exceeds the limit of 30%. 🚨
- src/rules/rrd/bigVif.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (10) 🚨
- src/rules/rrd/vForExpression.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
- src/rules/vue-essential/vifWithVfor.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is very high (13) 🚨
- src/rules/vue-strong/componentFilenameCasing.test.ts:
  rrd ~ cyclomatic complexity: Cyclomatic complexity is high (8) 🚨
- src/helpers/getConfig.ts:
  rrd ~ else conditions: else clauses found (1) 🚨
- src/generator/insertRule2Rules.js:
  rrd ~ function size: function (insertRule2Rules#4) is too long: 35 lines 🚨
- src/rules/rrd/magicNumbers.ts:
  rrd ~ function size: function (resetResults#10) is too long: 58 lines 🚨
- src/rules/getLineNumber.test.ts:
  rrd ~ magic numbers: magic numbers found (line #6 magic number: 2) 🚨
- src/rules/rrd/htmlImageElements.test.ts:
  rrd ~ magic numbers: magic numbers found (line #37 magic number: 3) 🚨
- src/rules/rrd/noInlineStyles.test.ts:
  rrd ~ magic numbers: magic numbers found (line #38 magic number: 2) 🚨
- src/rules/vue-caution/elementSelectorsWithScoped.test.ts:
  rrd ~ magic numbers: magic numbers found (line #34 magic number: 2) 🚨
- src/rules/vue-strong/multiAttributeElements.test.ts:
  rrd ~ magic numbers: magic numbers found (line #56 magic number: 2) 🚨
- src/rules/vue-strong/quotedAttributeValues.test.ts:
  rrd ~ no Inline Styles: line #1 Found inline style: style="{ width: sidebarWidth + ' 🚨
- src/rules/vue-strong/selfClosingComponents.test.ts:
  rrd ~ Long <script> blocks: (105 lines) 🚨
- src/rules/vue-recommended/topLevelElementOrder.test.ts:
  rrd ~ short variable names: variable: (age) 🚨

🔍 Download Full Analysis Details

For any issues or feedback, feel free to report them here.

@pieterocp
Copy link
Contributor Author

@David-Pena or @rrd108 this is ready for a review. Please do check it out and give it a waltz yourselves since I still couldn't get any cli tests to run locally after a bunch of changes so 🤷

@David-Pena
Copy link
Collaborator

David-Pena commented Nov 1, 2024

On my end I have similar issues with the tests in another branch (still trying to figure out why) probably @rrd108 can check it out soon

@David-Pena
Copy link
Collaborator

I see all checks have passed @pieterocp

@David-Pena
Copy link
Collaborator

But I open your changes in Stackblitz and the --version seems to still not be working
image

@rrd108
Copy link
Owner

rrd108 commented Nov 2, 2024

Sorry for not replying, I was (I am) sick.

I do not think that changing the tests is needed here. I think the bug sits somewhere else.

@pieterocp
Copy link
Contributor Author

Sorry for not replying, I was (I am) sick.

Don't apologise, I hope you get better soon.

I do not think that changing the tests is needed here. I think the bug sits somewhere else.

Yeah, does sound like it, if this isn't working then feel free to close this PR.

@rrd108
Copy link
Owner

rrd108 commented Nov 7, 2024

Let me investigate it further.

@David-Pena
Copy link
Collaborator

Hi @pieterocp

I found and fixed this issue locally, it was happening because the flag was retrieving the version field instead of the 'vue-mess-detector' value from dependencies or devDependencies

Would you like me to push my code to your branch so we can move forward this PR? Or would you like to give a try?

@pieterocp
Copy link
Contributor Author

Would you like me to push my code to your branch so we can move forward this PR? Or would you like to give a try?

Go for it @David-Pena, thank you.

@David-Pena
Copy link
Collaborator

Got it! I'll push it in a moment 🫡

@David-Pena
Copy link
Collaborator

This PR will be closed, the fix is in #461

@David-Pena David-Pena closed this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version not working
3 participants