Skip to content

Latest commit

 

History

History
63 lines (36 loc) · 2.68 KB

README.md

File metadata and controls

63 lines (36 loc) · 2.68 KB

coala for Eclipse

Build Status

This package offers a plugin for the Eclipse to use the code analysis software coala inside the IDE.

Installation

Drag to your running Eclipse workspace.

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.

Build developmental version

mvn clean verify

Unistall

  1. In Eclipse go to Help-> Installation Details -> Installed Software.
  2. Select coala.
  3. Click uninstall.

Using the plug-in

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

  1. Fire up Eclipse and open a file that you want to run the analysis on.

  2. Make sure you have configured the coafile. Learn more about that here.

  3. Click the coala button on the tool-bar.

  4. The plug-in will then run the analysis and display the results in the Problems pane.

Running coala by manually selecting the bear of your choice

  1. Fire up Eclipse and open a file that you want to run the analysis on.

  2. Right click anywhere inside the editor window to open the context menu.

  3. In the Run coala with push menu, select the the bear you wish to run.

  4. The plug-in will then run the analysis and display the results in the Problems pane.

Fixing issues returned after analysis

  1. After the analysis is complete and the issues are visible in the Problems pane, right-click an issue and select the Quick Fix option (Ctrl +1 keyboard shortcut).

  2. In the Quick Fix dialog, select the fix that you want to apply and click Finish.

  3. The issue will be fixed and no longer visible in the Problems pane.

License

AGPL