.. _ In DVT IDE for Eclipse:

DVT IDE for Eclipse
-------------------


From DVT IDE for Eclipse, auto-fixing can be performed only when a linting report is generated. You can create a new linting configuration or edit an existing one from the :guilabel:`Lint Configurations…` dialog: click the :guilabel:`Lint` button in the toolbar of the DVT Perspective and choose :guilabel:`Lint Configurations…`.

.. figure:: ../../images/verissimo-autofix-lint-configurations.png

.. |autofix| image:: ../../images/ovm_autofix.png
    :class: inline

There are multiple ways to fix the failures during an active linting session:

-  Right click on the check name in the report's checks tab and choose :guilabel:`Fix Failures for Check`

.. figure:: ../../images/verissimo-autofix-fix-failures-for-check.png




.. tip::

  To view only the checks that have auto-correct capabilities, you can use :guilabel:`Hide Non-Autofixable Checks` |autofix|


-  Select one or more failures in the report's checks tab, then right click and select :guilabel:`Fix Failures`

.. figure:: ../../images/verissimo-autofix-fix-failures.png


-  Press :kbd:`Ctrl+1` on the failure line in the editor and choose :guilabel:`Fix Failure`

.. figure:: ../../images/verissimo-autofix-quick-fix.png




-  Select one or more failures from :guilabel:`Problems View` then right click and choose :guilabel:`Quick Fix`.

.. figure:: ../../images/verissimo-autofix-problems-view.png




Similar failures will be suggested.

.. figure:: ../../images/verissimo-autofix-problems-view-similar-problems.png



.. note::

	For some checks, it might be necessary to provide additional info for fixing the failures.

	.. figure:: ../../images/verissimo-autofix-additional-info.png




If errors occur during autofixing, you can choose between the following options:

- Skip failure
- Add comment in code
- Add inline waiver for failure
- Rename element (only for name collisions)

.. figure:: ../../images/verissimo-autofix-errors-page.png




If no option is selected, the error will be skipped.

**Preview page** shows the changes that are about to be performed in the source code. Also, you can unselect the unwanted changes.

.. figure:: ../../images/verissimo-autofix-preview-page.png




After autofixing is finished, the check is re-applied automatically.
 

