Enable override field in vue-mess-detector.json to overwrite the max value for functionSize and scriptLength.
Proposal
The feedback received in our discord server from @jonathan-terrell about some "hardcoded" limits in our rules helped me align what do I think its one of the best usage for this tool. It's okay to be a bit opinionated but to provide a way for you to setup some of those opinions its a powerful feature for team work.
In my day-to-day job I manage at least two small teams where this overwrite was what it was missing for it to couple perfectly into our workflows.
I think this feature will attract more users 👀
Description
Create overrideConfig constant to share between files.
Add types for vue-mess-detector.json file
Update functionSize and scriptLength to use this constant
Create DEFAULT_OVERRIDE_CONFIG and include maxFunctionSize and maxScriptLength fields
Update docs to showcase this feature
Related Issues
Fixes #276
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Summary
Enable
override
field invue-mess-detector.json
to overwrite the max value forfunctionSize
andscriptLength
.Proposal
The feedback received in our discord server from @jonathan-terrell about some "hardcoded" limits in our rules helped me align what do I think its one of the best usage for this tool. It's okay to be a bit opinionated but to provide a way for you to setup some of those opinions its a powerful feature for team work.
In my day-to-day job I manage at least two small teams where this
overwrite
was what it was missing for it to couple perfectly into our workflows.I think this feature will attract more users 👀
Description
overrideConfig
constant to share between files.vue-mess-detector.json
filefunctionSize
andscriptLength
to use this constantDEFAULT_OVERRIDE_CONFIG
and includemaxFunctionSize
andmaxScriptLength
fieldsRelated Issues
Fixes #276
Type of Change
Screenshots (if applicable)
With this
vue-mess-detector.json
Now we include our override options:
With this increase, we have no reports for
scriptLength
ruleUpdated docs ⬇️