Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
SonarQube
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="icon=false|title=Table of Contents" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86aWNvbj1mYWxzZXx0aXRsZT1UYWJsZSBvZiBDb250ZW50c30&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e3RvYzptYXhMZXZlbD0xfQ&locale=en_GB&version=2" data-macro-name="toc" data-macro-parameters="maxLevel=1"></p></td></tr></table><table class="wysiwyg-macro" data-macro-name="info" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm99&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p>This page documents how to work with SonarQube in Eclipse for versions 3.2+.</p><p>For versions prior to 3.2, browse <a class="confluence-link" href="/display/SONAR/Working+with+SonarQube+in+Eclipse+-+Prior+to+version+3.2" data-linked-resource-id="231081025" data-linked-resource-type="page" data-linked-resource-default-alias="Working with SonarQube in Eclipse - Prior to version 3.2" data-base-url="http://docs.codehaus.org">this page</a>.</p></td></tr></table><h1>Managing Existing Issues</h1><p>When going through the source code, SonarQubein Eclipse will highlight the existing issues. The idea is that once you have read the code and understood it, the cost of fixing an issue is low.</p><h2>Fixing an Issue</h2><p>Browse the <strong>Sonar Issues </strong>view that displays the list of issues of the selected resource (project, file, etc.):</p><p><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082381/eclipse_sonar_ssues.png?version=1&modificationDate=1371697204991&effects=drop-shadow" data-image-src="/download/attachments/231082381/eclipse_sonar_ssues.png?version=1&modificationDate=1371697204991&effects=drop-shadow" data-linked-resource-id="231377201" data-linked-resource-type="attachment" data-linked-resource-default-alias="eclipse_sonar_ssues.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082381" title="null > eclipse_sonar_ssues.png"></p><p>A double-click on an issue icon opens the source code editor and highlights the issue:</p><p><img class="confluence-embedded-image" src="/download/attachments/231082381/eclipse_issue_icon.png?version=1&modificationDate=1371697204985" data-image-src="/download/attachments/231082381/eclipse_issue_icon.png?version=1&modificationDate=1371697204985" data-linked-resource-id="231377200" data-linked-resource-type="attachment" data-linked-resource-default-alias="eclipse_issue_icon.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082381" title="null > eclipse_issue_icon.png"></p><h2>Reviewing an Issue (Remote)</h2><p>Just like it's possible to review an issue through the web interface, you can review an issue directly in Eclipse:</p><p><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082381/edit_issue.png?version=1&modificationDate=1371697204977&effects=drop-shadow" data-image-src="/download/attachments/231082381/edit_issue.png?version=1&modificationDate=1371697204977&effects=drop-shadow" data-linked-resource-id="231377199" data-linked-resource-type="attachment" data-linked-resource-default-alias="edit_issue.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082381" title="null > edit_issue.png"></p><p><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082381/sonar_issue_editor.png?version=1&modificationDate=1371697204961&effects=drop-shadow" data-image-src="/download/attachments/231082381/sonar_issue_editor.png?version=1&modificationDate=1371697204961&effects=drop-shadow" data-linked-resource-id="231377198" data-linked-resource-type="attachment" data-linked-resource-default-alias="sonar_issue_editor.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082381" title="null > sonar_issue_editor.png"></p><h1>Checking Code Prior to Commit</h1><p>SonarQubein Eclipse provides the ability to show the quality of changed/modified code prior to pushing it to the SCM.</p><p>After running a local analysis, if new issues have been introduced (comparison made against the latest analysis on the SonarQube server), Eclipse will clearly highlight them: t<span style="font-size: 10.0pt;line-height: 13.0pt;">he icon is red and t</span><span style="font-size: 10.0pt;line-height: 13.0pt;">he line is highlighted. </span><span style="font-size: 10.0pt;line-height: 13.0pt;">Moreover, every new issue is by default marked as an Error, meaning that it will also show up in the Eclipse Problems view, and the Package/Resource explorer will clearly show that your project has problems:</span></p><p><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082381/new_issues.png?version=1&modificationDate=1371697204941&effects=drop-shadow" data-image-src="/download/attachments/231082381/new_issues.png?version=1&modificationDate=1371697204941&effects=drop-shadow" data-linked-resource-id="231377197" data-linked-resource-type="attachment" data-linked-resource-default-alias="new_issues.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082381" title="null > new_issues.png"></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced