This package offers a plugin for the Eclipse to use the code analysis software coala inside the IDE.
Drag the above button into your running Eclipse workspace and accept the terms to install.
If you're unable to view the button install the plug-in from the Eclipse Marketplace.
mvn clean verify
- In Eclipse go to Help-> Installation Details -> Installed Software.
- Select coala.
- Click uninstall.
The plug-in requires the coala binaries to be present on your system. If you haven't already installed coala you can read the installation instructions here.
There are two ways in which you can run coala from the Eclipse plug-in:
- Using a
coafile
. - Manually selecting a bear to run the analysis with.
Running coala using a coafile
-
Fire up Eclipse and open a file that you want to run the analysis on.
-
Make sure you have configured the
coafile
. Learn more about that here. -
Click the
coala
button on the tool-bar. -
The plug-in will then run the analysis and display the results in the
Problems
pane.
-
Fire up Eclipse and open a file that you want to run the analysis on.
-
Right click anywhere inside the editor window to open the context menu.
-
In the
Run coala with
push menu, select the the bear you wish to run. -
The plug-in will then run the analysis and display the results in the
Problems
pane.
-
After the analysis is complete and the issues are visible in the
Problems
pane, right-click an issue and select theQuick Fix
option (Ctrl +1 keyboard shortcut). -
In the
Quick Fix
dialog, select the fix that you want to apply and clickFinish
. -
The issue will be fixed and no longer visible in the
Problems
pane.