Auto Fix - Studio

Autofix is a feature, where static code analysis issues can be fixed automatically with the click of a button.

Make sure you have:

Enable Autofix

  1. Go to WindowPreferencesIZ Preferences, and Sync Metadata if not done already

  2. Click on Enable Auto Fix

Auto Fix Issues

  1. Go to WindowShow ViewotherIZ Analyzer → select On the Fly Results

  2. Preview and Fix options will be available in On the Fly Results table against applicable rules

  3. Use the Preview option to view the list of changes that the Fix would perform. No files will be updated in preview mode auto fix preview

  4. Use the Fix option to apply the fix to applicable files auto fix apply

Auto Fix - Logs

  1. Go to WindowShow ViewotherIZ Analyzer → select Auto Fix Logs

  2. An audit log of the applied fix will be generated in the target/izanalyzer/autofix-log.csv directory

  3. HTML report of the same will be displayed in Auto Fix Logs view auto fix logs

Details