Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scripthunter7 opened this issue Jan 27, 2024 · 0 comments

Comments

@scripthunter7
Copy link
Member

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 scripthunter7 changed the title Implement suggestions Implement suggestions, split fixes into "auto-fixable" and "suggestions" Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants