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

Suggest fixes for issues #824

Closed
wants to merge 5 commits into from
Closed

Suggest fixes for issues #824

wants to merge 5 commits into from

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Feb 23, 2022

This change introduces a new feature that will suggest a fix in
the form of a line of code as replacement for the line range of
the issue.

This is the first step to have the ability to auto-correct problems
detected. Later more changes can be merged to modify the file with
the suggested fix.

The Issue class has a new fix string attribute that denotes how
the lines of affected code can be replaced. This suggested fix
will not preserve code comments and possibly other optimizations
the AST does not capture.

Closes #439

Signed-off-by: Eric Brown browne@vmware.com

@ericwb ericwb added this to the Release 1.8.0 milestone Mar 8, 2022
This change bumps the version of Black in use to fix the errors
seen coming out of the format build step.

See psf/black#2964

Signed-off-by: Eric Brown <browne@vmware.com>
This change introduces a new feature that will suggest a fix in
the form of a line of code as replacement for the line range of
the issue.

This is the first step to have the ability to auto-correct problems
detected. Later more changes can be merged to modify the file with
the suggested fix.

The Issue class has a new fix string attribute that denotes how
the lines of affected code can be replaced. This suggested fix
will not preserve code comments and possibly other optimizations
the AST does not capture.

Closes #439

Signed-off-by: Eric Brown <browne@vmware.com>
@ericwb ericwb modified the milestones: Release 1.7.5, Near Future Apr 1, 2022
@ericwb ericwb reopened this Jul 8, 2022
@ericwb
Copy link
Member Author

ericwb commented Mar 19, 2023

Recreated this pull request in #1001 since the branch to my repo disappeared when I deleted the fork.

@ericwb ericwb closed this Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an auto-fix or auto-correct feature
1 participant