NOTE: the automated codefix feature is only available for Silver and Gold members
What is Automated Codefix?
Code Inspector can automatically fix source code violations in your source code. If 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.
This 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.
Currently, the automated codefix supports Java, C and C++.
The automated codefix feature is available for repositories on GitHub, Bitbucket and GitLab.
How it works
Firstly, navigate through 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 the potential fixes. You can 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 generates 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 with only one click.
Beta status and feedback
This feature is currently in Beta. If you have any feedback or request, please send us a message.