Verissimo SystemVerilog Linter - How to Use Auto-correct in Batch Mode

Overview

This video explains how to enable the Verissimo Auto-Correct functionality in batch mode in order to fix the failures reported during linting.

Details

Verissimo Auto-Correct saves time by automatically fixing lint failures. You no longer have to manually handle each failure that Verissimo detects.

Enabling Auto-Correct

To activate autocorrect when running in batch mode, just add the -autocorrect argument to your Verissimo invocation and specify which rules Verissimo should auto-correct. You can either use -autocorrect_rule followed by the rule name in your verissimo.sh invocation or add the autocorrect="on" attribute in the ruleset XML file.

For specific rules, auto-correction may require additional input. You can specify it in a similar way if you need to override the default values.

Fixing the Failures

Verissimo fixes the failures as it executes each rule.

With batch mode auto-correction you address all automatable linting failures in a single step. This is especially useful during the initial setup of a Verissimo linting flow, when numerous issues may arise, but also provides benefit for later continuous runs, saving time and allowing you to focus on more complex fixes that require deeper changes.

For reviewing or debugging purposes you can generate a Custom Report containing detailed information about each auto-correct.

Instead of performing the fixes directly on the source code, they can be applied on file copies. This allows you to perform an extra review of the changes before deciding to apply them on the original source code.