NOTE: the automated codefix feature is only available for Silver and Gold members
What it is?
Code Inspector can automatically fix source code violations in your source code. When an issue can be automatically fixed, code inspector proposes multiple fixes. You can select the fix that seems appropriate for you and Code Inspector automatically generates a pull request/merge request for you.
The feature is currently available under beta. Automated codefix is available when the owner of the repository (user or group) has a silver or gold membership.
The automated codefix supports Java, C and C++ as of today.
The automated codefix feature is available for repositories on Github, Bitbucket and Gitlab.
How it works
First, navigate your code to find issues. If an issue can be solved, a button labelled "Show potential fixes" appears, as shown below.
Once you click on the button, the interface shows you potential fixes. You select the fix that seems appropriate to you. Multiple fixes can be generated, depending on the context of the code.
Once you select the fix, Code Inspector generate a pull request/merge request. When the pull request is created, a link to the pull request/merge request appears and you can merge the code in a single click.
Beta status and feedback.
This feature is currently in beta. If you have any feedback or request, please send us a message.