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 browse SonarQube in Eclipse for versions 3.2+.</p><p>For versions prior to 3.2, browse <a class="confluence-link" href="/display/SONAR/Browsing+SonarQube+in+Eclipse+-+Prior+to+version+3.2" data-linked-resource-id="231081014" data-linked-resource-type="page" data-linked-resource-default-alias="Browsing SonarQube in Eclipse - Prior to version 3.2" data-base-url="http://docs.codehaus.org">this page</a>.</p></td></tr></table><h1>Local and Remote Mode</h1><p>Two modes are available:</p><h3>Remote Mode</h3><p>This is the default mode. Information showed in the remote mode is coming from a remote SonarQube server. This means that this information has been computed during the latest analysis on that server.</p><p>Thus, you will not see issues introduced in the code that you just added or changed.</p><h3>Local Mode</h3><p>When switching to the local mode, information displayed is coming from the latest local analysis.</p><p>Thus, you can see the issues introduced in the code that you just added or changed.</p><h3>Switch from One Mode to Another</h3><p>To switch from one mode to another, right-click on the project, then select <strong>Sonar > Mode > Remote</strong> or <strong>Local</strong>:</p><p><img class="confluence-embedded-image" src="/download/attachments/231082390/sonar-mode.png?version=1&modificationDate=1371712131517" data-image-src="/download/attachments/231082390/sonar-mode.png?version=1&modificationDate=1371712131517" data-linked-resource-id="231377252" data-linked-resource-type="attachment" data-linked-resource-default-alias="sonar-mode.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082390" title="null > sonar-mode.png"></p><p>When switching to the Local mode, a local analysis will be run automatically.</p><p>At any time, to run another local analysis, right-click on the project, then select <strong>Sonar > Run Local Analysis</strong>:</p><p><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082390/run-local-analysis.png?version=1&modificationDate=1371712131426&effects=drop-shadow" data-image-src="/download/attachments/231082390/run-local-analysis.png?version=1&modificationDate=1371712131426&effects=drop-shadow" data-linked-resource-id="231377249" data-linked-resource-type="attachment" data-linked-resource-default-alias="run-local-analysis.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082390" title="null > run-local-analysis.png"></p><h3>Local Analysis Parameters</h3><p>Parameters to configure local analysis can be set in various places. Here is the hierarchy of parameters:</p><ul><li>Parameters defined in the SonarQube Web UI</li><li>Parameters set in the pom.xml file (for Maven projects only, with the m2e connector installed) will override parameters defined in the UI</li><li>Parameters defined in Eclipse will override parameters defined in the pom file (go to <strong>Window > Preferences > Sonar > Local analysis properties</strong>)</li><li>Parameters defined at project level in Eclipse will override parameters defined at Eclipse level (<span style="font-size: 10.0pt;line-height: 13.0pt;">right click on the project and go to </span><strong style="font-size: 10.0pt;line-height: 13.0pt;">Properties > Sonar > Local analysis properties</strong>)</li></ul><table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="title=Excluding Plugins" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86dGl0bGU9RXhjbHVkaW5nIFBsdWdpbnN9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p>Some plugins (useless for a local analysis) can be skipped while performing a local analysis thanks to the <code>sonar.dryRun.excludePlugins</code> property (Settings > Configuration > General Settings > General).</p><p>The default value is 'devcockpit,pdfreport,report,scmactivity,views'. For example, to skip the Build Stability plugin (due to <a href="https://jira.codehaus.org/browse/SONARIDE-346">https://jira.codehaus.org/browse/SONARIDE-346</a>), set the property to 'devcockpit,pdfreport,report,scmactivity,views,buildstability'.</p></td></tr></table><h3>Last Analysis Date</h3><p>There are two ways to know when the last analysis was run on a project:</p><ul><li><span>Right-click on the project in the </span><strong>Project Explorer</strong><span>, and then </span><strong>Properties > Sonar</strong></li><li>This date can be displayed on the navigation views, like the Project explorer or the Navigator. This option is not active by default. To activate it, go to <strong>Window > Preferences > General > Appearance > Label Decorations</strong> and check <strong>Sonar Analysis Date Decorator</strong>:</li></ul><p style="margin-left: 60.0px;"><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082390/analysis-date-label.png?version=1&modificationDate=1371712131374&effects=drop-shadow" data-image-src="/download/attachments/231082390/analysis-date-label.png?version=1&modificationDate=1371712131374&effects=drop-shadow" data-linked-resource-id="231377247" data-linked-resource-type="attachment" data-linked-resource-default-alias="analysis-date-label.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082390" title="null > analysis-date-label.png"></p><h1>Sonar Issues View (displays local or remote information depending on the selected mode)</h1><p>The <strong>Sonar Issues</strong> view 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/231082390/sonar_issues_view.png?version=1&modificationDate=1371712131351&effects=drop-shadow" data-image-src="/download/attachments/231082390/sonar_issues_view.png?version=1&modificationDate=1371712131351&effects=drop-shadow" data-linked-resource-id="231377246" data-linked-resource-type="attachment" data-linked-resource-default-alias="sonar_issues_view.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082390" title="null > sonar_issues_view.png"></p><p>To refresh the list of issues on the project, click on the <strong>Refresh</strong> button.</p><p>You can also add/remove columns, group issues (by severities, ...), filter issues (new issues only, issues, assigned to me, ...), sort (by assignee, ...), etc.</p><p>Note that "Resolved" issues are not displayed.</p><p>This view can be displayed by going to <strong>Window > Show View > Other... > Sonar > Sonar Issues</strong>. <strong>Problems</strong> and <strong>Markers</strong> views also display issues.</p><h1>Sonar Web Browser View (displays remote information only)</h1><p>The <strong>Web</strong> view displays the main project dashboard (for project) or the resource viewer (for class or file).</p><p>This web page can also be used to access information and services (Clouds, Hotspots, etc.) that are not available in SonarQube Eclipse.</p><p><img class="confluence-embedded-image" confluence-query-params="effects=drop-shadow" src="/download/attachments/231082390/sonar_web_browser_view.png?version=1&modificationDate=1371712131307&effects=drop-shadow" data-image-src="/download/attachments/231082390/sonar_web_browser_view.png?version=1&modificationDate=1371712131307&effects=drop-shadow" data-linked-resource-id="231377245" data-linked-resource-type="attachment" data-linked-resource-default-alias="sonar_web_browser_view.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231082390" title="null > sonar_web_browser_view.png"></p><p>This view is automatically displayed when clicking on <strong>Sonar > Open in Sonar server</strong>. It can also be displayed by going to <strong>Window > Show View > Other... > Sonar > Sonar Web Browser</strong>.</p><p> </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