I run detekt with gradle with autocorrect enabled. I fail the build on detekt errors. This results in me running detekt twice for autocorrectable problems:
- The build fails and is autocorrected.
- The build passes.
Is it possible to configure detekt to do both in one step? I.e. detekt errors, autocorrect them, and therefore assert that everything is fine by not failing (build step succeeds)?