CodeFactor can fix certain reported issues. This can be done on-demand or automatically. We currently support:

- ESLInt

- PHP_CodeSniffer

- Stylelint

- TSLint

- RuboCop

- SwiftLint

On-demand fixes

When visiting a page with fixable issues, you can create new PR or commit manually:

If you do not see this button it means CodeFactor did not find any issues that can be fixed.

We recommend using it to test this feature or when you need to resolve fixable issues by file, category or whole branch.

Automatic fixes

Disabled by default. To enable it, go to repository Settings page:

We recommend using it when you want fixes for each commit to be automatically sent to your repository as new PR or direct commit.