-
Notifications
You must be signed in to change notification settings - Fork 3
refactoring: evaluate RuleElements with @sindresorhus/ow/isValid #97
Copy link
Copy link
Open
Labels
priority: mediumWill add consumer value when released.Will add consumer value when released.type: breaking changeModifications affect or replace the public API. ⇧ Bumps the MAJOR semver.Modifications affect or replace the public API. ⇧ Bumps the MAJOR semver.type: buildChanges to product build.Changes to product build.type: refactorRestructuring source code without changing its external behavior.Restructuring source code without changing its external behavior.type: testAdding, correcting, or improving tests (coverage).Adding, correcting, or improving tests (coverage).
Metadata
Metadata
Assignees
Labels
priority: mediumWill add consumer value when released.Will add consumer value when released.type: breaking changeModifications affect or replace the public API. ⇧ Bumps the MAJOR semver.Modifications affect or replace the public API. ⇧ Bumps the MAJOR semver.type: buildChanges to product build.Changes to product build.type: refactorRestructuring source code without changing its external behavior.Restructuring source code without changing its external behavior.type: testAdding, correcting, or improving tests (coverage).Adding, correcting, or improving tests (coverage).
1. Design summary / code smell(s)
Version 1.2.0 of archetypes-rules has:
2. Refactoring proposal(s)
Simplify RuleContext evaluations with @sindresorhus/ow/
isValidfunction.Rename the module @archetypes/rules.
Extend all @archetypes/rules/
Variableswith @sindresorhus/ow methods (by ECMAScript data type).3. Code quality improvement scores
The refactorings changes have either:
3.1. Complexity measures
3.2. Source Lines Of Code (SLOC)
3.3. Dependencies (production)
3.4. Bundle size (gzip)
3.5. Code quality results summary