MaibornWolff / metric-gardener

BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Use xo to enforce consistent code style #320

Closed clemens-mw closed 2 months ago

clemens-mw commented 2 months ago

Use xo to enforce consistent code style

Closes: #172

Description

see xo

Current config (see package.json and .editorconfig, can be discussed):

Some warnings are ignored and should be fixed later (most of them related to coupling metrics)

This PR changes many files! If not merged soon, there will be a huge rebasing overhead (and lots of the work will need to be done again).

github-actions[bot] commented 2 months ago

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 94.71% (🎯 90%) 4537 / 4790
🟢 Statements 94.71% (🎯 90%) 4537 / 4790
🟢 Functions 94.78% (🎯 90%) 200 / 211
🟢 Branches 91.42% (🎯 90%) 533 / 583
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/app.ts 0% 0% 0% 0% 1-6
src/cli.ts 100% 100% 100% 100%
src/parser/resolver/usages-collector.ts 95.83% 66.66% 100% 95.83% 21
src/parser/resolver/call-expressions/factory.ts 100% 100% 100% 100%
src/parser/resolver/fully-qualified-type-names/factory.ts 100% 100% 100% 100%
src/parser/resolver/type-usages/factory.ts 100% 100% 100% 100%
Generated in workflow #40