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.
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.