rrd108 / vue-mess-detector

A static code analysis tool for detecting code smells and best practice violations in Vue.js and Nuxt.js projects
MIT License
250 stars 9 forks source link

feat: add new rule rrd css repeated values with tests and docs (215) #424

Closed David-Pena closed 3 weeks ago

David-Pena commented 1 month ago

Summary

Add new rrd rule for repeated css values

Description

Related Issues

Fixes #215

Type of Change

Screenshots (if applicable)

N/A

github-actions[bot] commented 1 month ago

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.
pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

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

commit: f2f7287

rrd108 commented 1 month ago

can you please check the failing tests?

github-actions[bot] commented 3 weeks ago

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 Githubissues.
  • Githubissues is a development platform for aggregating issues.