Name |
Eclipse Sonar Plugin |
|---|---|
License |
LGPL |
Authors |
|
Latest version |
0.1.0 |
Update site |
|
Eclipse Marketplace |
|
Jira |
|
Sources |
| Table of content |
Compatibility Matrix
Plugin |
0.1.0 |
|---|---|
Sonar |
2.0.1+ |
compatible with Eclipse 3.4, but works best on Eclipse 3.5.1 |
|
M2Eclipse (optional) |
0.10.0+ |
Installation
To install this plugin in the Eclipse IDE:
- Select Help -> Install New Software. This should display the "Install" dialog.
- Paste the Update Site URL into the field named "Work with:" and press Enter. Pressing Enter should cause Eclipse to update list of available plugins and components.
- Choose the component listed under Sonar: "Sonar Integration for Eclipse (Required)".
- If you use m2eclipse, then select component "Sonar Integration for M2Eclipse (Optional)" too.
- Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
- Click Finish to begin the installation process. Eclipse will then download and install the necessary components.
- Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. It's strongly recommended that you restart IDE.
This video demonstrates the process of installation.
Usage/Features
Global Configuration
In plugin configuration ( Window > Preferences > Sonar ) you can :
- Select the default sonar server
- Add, edit or remove a sonar server configuration

Server Configuration
In server configuration you can specify:
- URL of your Sonar server
- Username and password for access to it
Settings will be stored in file |

Project Configuration
In plugin configuration for project you can specify:
- URL of your Sonar server
- groupId and artifactId of your project
Support for branches would be available in version 0.2 - see SONARIDE-85 |

Network Configuration
Connection via proxy would be available in version 0.2 - see SONARIDE-136 |
You can use network configuration page ( Preferences > General > Network Connections ) to specify proxy settings for plugin :

Integration with m2eclipse
Open any Mavenized project and some parameters (groupId, artifactId) will be taken from pom.xml.
sonar.branch since 0.2 |
Option "Support multiple Maven modules mapped to a single Eclipse workspace project" doesn't supported. |
Perspective
Sonar perspective allows you to concentrate on quality of code :

Violations
Open any Java-file and see violations from Sonar as markers in source code.
Source code from Sonar server may not match source code from your working copy, so we are using some heuristic algorithm to determine line with violation. |


Duplications
Would be available in version 0.2 - see SONARIDE-61 |
Code coverage
Would be available in version 0.2 - see SONARIDE-60 |

Measures
Would be available in version 0.2 - see SONARIDE-67 |

Diff tool
Would be available in version 0.2 - see SONARIDE-41 |
Compare With > Sonar server :

Select In Sonar
At any time you can jump into the Sonar Web dashboard directly from the IDE to get more information not yet available in the plugin ( Sonar > Open in Sonar server ) :

Quick Fix
Would be available in version 0.2 - see SONARIDE-59 |

Sonar Server Navigator
Sonar Server Navigator allows you to browse all available projects in a specified Sonar server :

TreeMap
See SONARIDE-114 |
How to create sonar problems view


