AGLint icon indicating copy to clipboard operation
AGLint copied to clipboard

Implement suggestions, split fixes into "auto-fixable" and "suggestions"

Open scripthunter7 opened this issue 1 year ago • 0 comments

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:

  1. auto-fixable
  2. suggestion

Consequently, the --fix option will only apply those corrections that are assuredly safe (auto-fixable), leaving the decision on suggestions to the user.

scripthunter7 avatar Jan 27 '24 15:01 scripthunter7