-
Notifications
You must be signed in to change notification settings - Fork 568
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
Can't use autofix to remove some code #6318
Comments
This issue is synced in Linear at https://linear.app/r2c/issue/PA-2000/cant-autofix-to-remove-some-code. Note: this link is for r2c use only and is not accessible publicly. |
I'm also looking for the same feature. I think the thread in this issue is related: #5674 |
Without this it's hard to use Semgrep for code cleanup. @nmote I think the line you're looking for is here?
|
@joshlory that looks pretty likely. Are you interested in putting up a PR? |
PR checklist: - [x] Purpose of the code is [evident to future readers](https://semgrep.dev/docs/contributing/contributing-code/#explaining-code) - [x] Tests included or PR comment includes a reproducible test plan - [x] Documentation is up-to-date - [x] A changelog entry was [added to changelog.d](https://semgrep.dev/docs/contributing/contributing-code/#adding-a-changelog-entry) for any user-facing change - [x] Change has no security implications (otherwise, ping security team) If you're unsure about any of this, please see: - [Contribution guidelines](https://semgrep.dev/docs/contributing/contributing-code)! - [One of the more specific guides located here](https://semgrep.dev/docs/contributing/contributing/)
Fixed by #7772 |
with this rule:
I can't use it on some codebase to remove all the typing imports.
semgrep --config ~/refactoring.yaml . --autofix
does not apply any fixes.The text was updated successfully, but these errors were encountered: