flaviostutz / monolint

Linter for monorepos. Checks folder structure, module contents, file contents and naming conventions
MIT License
7 stars 4 forks source link

Auto fix mechanism for rules #24

Closed flaviostutz closed 1 year ago

flaviostutz commented 1 year ago

If the cli is called with "--fix" the rules will try to fix the issues automatically (when possible) by changing workspace contents.

One design idea is to add an additional function "fix(ruleresults)" to all rules that will be called after check() if the cli parameter --fix was used. Then the rule can use ruleresults to apply the fixes.