If a linter rule is violated, it's possible to correct the issue in certain cases.
As it stands, the linter rule API only provides a basic fix feature.
However, there's a need to implement what could be termed a 'suggestion API.' This would be particularly useful in situations where the fix is not straightforward (for example, when multiple solutions could address the same issue) or when it's potentially risky.
Thus, we will have two types of fix:
auto-fixable
suggestion
Consequently, the --fix option will only apply those corrections that are assuredly safe (auto-fixable), leaving the decision on suggestions to the user.
If a linter rule is violated, it's possible to correct the issue in certain cases.
As it stands, the linter rule API only provides a basic fix feature.
However, there's a need to implement what could be termed a 'suggestion API.' This would be particularly useful in situations where the fix is not straightforward (for example, when multiple solutions could address the same issue) or when it's potentially risky.
Thus, we will have two types of fix:
Consequently, the
--fix
option will only apply those corrections that are assuredly safe (auto-fixable), leaving the decision on suggestions to the user.