<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SonarQube question and answers Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/sonarqube-question-and-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/sonarqube-question-and-answers/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:49:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>SonarQube Frequently asked questions (FAQ) &#124;  SonarQube FAQs</title>
		<link>https://www.scmgalaxy.com/tutorials/sonarqube-frequently-asked-questions-faq/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sonarqube-frequently-asked-questions-faq/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 28 Jul 2017 19:15:16 +0000</pubDate>
				<category><![CDATA[SonarQube]]></category>
		<category><![CDATA[FAQs]]></category>
		<category><![CDATA[Frequently asked questions]]></category>
		<category><![CDATA[SonarQube FAQs]]></category>
		<category><![CDATA[SonarQube question and answers]]></category>
		<category><![CDATA[SonarQube questions]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2017/07/28/sonarqube-frequently-asked-questions-faq/</guid>

					<description><![CDATA[<h3>SonarQube Frequently asked questions (FAQ)</h3>
<div> </div>
<div><strong>Is SonarQube Replacement for Checkstyle, PMD, FindBugs?</strong></div>
<div><strong>--------------------------------------------------------------</strong></div>
<div>Answers - YES and NO</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sonarqube-frequently-asked-questions-faq/">SonarQube Frequently asked questions (FAQ) |  SonarQube FAQs</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img fetchpriority="high" decoding="async" class="size-full wp-image-2832 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/sonarqube-faqs.png" alt="sonarqube-faqs" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/sonarqube-faqs.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/sonarqube-faqs-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h3>
<h3></h3>
<p>&nbsp;</p>
<h3>SonarQube Frequently asked questions (FAQ)</h3>
<div></div>
<div><strong>Is SonarQube Replacement for Checkstyle, PMD, FindBugs?</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div>
<p>Answers &#8211; YES and NO</p>
</div>
<div></div>
<div>Why Yes?</div>
<div>Sonar will run CheckStyle, FindBugs and PMD, as well as a few other &#8220;plugins&#8221; such as Cobertura (code coverage) by default for Java projects. The main added value, however, is that it stores the history in a database. You can then see the trend. Are you improving the code base or are you doing the opposite? Only a tool with memory can tell you that.</div>
<div></div>
<div>Why No?</div>
<div>SonarQube is currently on the way to deprecate PMD, Checkstyle and Findbugs and use their own technology to analyze Java code (called SonarJava). They do it, because they don&#8217;t want to spend their time fixing, upgrading (or waiting on it) those libraries (e.g. for Java 8), which for example uses outdated libraries. Well at least since SonarQube 6.3+ it seems to be that Findbugs is (at the moment) no longer supported as a plugin.</div>
<div></div>
<p>&nbsp;</p>
<div><strong>What is the SonarQube Plugins available which can be integrated with Eclipse, IntelliJ IDEA, Visual Studio, Visual Studio Code, and Atom?</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div>Answer &#8211;</div>
<div>SonarLint is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.</div>
<div>Reference</div>
<div><a href="http://www.sonarlint.org/index.html" target="_blank" rel="noopener">http://www.sonarlint.org/index.html</a></div>
<div></div>
<p>&nbsp;</p>
<div><strong>Where i can get the Support related to SonarQube?</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div>Google Grops</div>
<div><a href="https://groups.google.com/forum/#!forum/sonarqube" target="_blank" rel="noopener">https://groups.google.com/forum/#!forum/sonarqube</a></div>
<div></div>
<div>Facebook Groups</div>
<div><a href="https://www.facebook.com/groups/devopsindia" target="_blank" rel="noopener">https://www.facebook.com/groups/devopsindia</a></div>
<div></div>
<div>Linkedin Groups</div>
<div><a href="https://www.linkedin.com/groups/6727934" target="_blank" rel="noopener">https://www.linkedin.com/groups/6727934</a></div>
<div></div>
<div>Public Forum</div>
<div><a href="https://stackoverflow.com/questions/tagged/sonarqube" target="_blank" rel="noopener">https://stackoverflow.com/questions/tagged/sonarqube</a></div>
<div></div>
<p>&nbsp;</p>
<div><strong>Top 10 Lessons Learned from 2 Years Work with Codehaus Sonar</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div><a href="http://www.sw-engineering-candies.com/blog-1/top-10-lessons-learned-from-2-years-work-with-codehaus-sonar-open-source-quality-management-platform" target="_blank" rel="noopener">http://www.sw-engineering-candies.com/blog-1/top-10-lessons-learned-from-2-years-work-with-codehaus-sonar-open-source-quality-management-platform</a></div>
<div></div>
<div></div>
<p>&nbsp;</p>
<div><strong>Configure Sonar to exclude files from Maven pom.xml</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<img decoding="async" class=" size-full wp-image-679" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/Configure-SonarQube-to-excl.jpg" alt="" width="836" height="600" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/Configure-SonarQube-to-excl.jpg 836w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/Configure-SonarQube-to-excl-300x215.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/07/Configure-SonarQube-to-excl-768x551.jpg 768w" sizes="(max-width: 836px) 100vw, 836px" /><br />
</strong></div>
<div><a href="http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreFiles" target="_blank" rel="noopener">http://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreFiles</a></div>
<div><a href="https://docs.sonarqube.org/display/SONAR/Analysis+Parameters#AnalysisParameters-Exclusions/Inclusions" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Analysis+Parameters#AnalysisParameters-Exclusions/Inclusions</a></div>
<div><a href="https://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreCodeCoverage" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus#NarrowingtheFocus-IgnoreCodeCoverage</a></div>
<div><a href="https://docs.sonarqube.org/display/SONAR/Analysis+Parameters#AnalysisParameters-Exclusions/Inclusions" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Analysis+Parameters#AnalysisParameters-Exclusions/Inclusions</a></div>
<div><a href="https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven#AnalyzingwithSonarQubeScannerforMaven-ExcludingamodulefromSonarQubeanalysis" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven#AnalyzingwithSonarQubeScannerforMaven-ExcludingamodulefromSonarQubeanalysis</a></div>
<div></div>
<p>&nbsp;</p>
<div><strong>Does Sonar support multiple language in same project ex. sonar.language=java,grvy?</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div>Starting with SonarQube 4.2, multi-language projects are supported.</div>
<div></div>
<div>This automatically happens when sonar.language is not set.</div>
<div>See sample project here: <a href="https://github.com/bellingard/multi-language-project" target="_blank" rel="noopener">https://github.com/bellingard/multi-language-project</a></div>
<div></div>
<div></div>
<p>&nbsp;</p>
<div><strong>How to exclude the directory in SonarQube?</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div>try something like this:</div>
<div>sonar.exclusions=src/java/test/**</div>
<div>
<p>sonar.exclusions=system/**, test/**, application/third_party/**, application/logs/**</p>
<div><strong>How to Increase SonarQube Heap Size?</strong></div>
<div><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></div>
<div>Whenever you get a issues like &#8220;SonarQube analysis failed java.lang.OutOfMemoryError: Java heap space&#8221;, you may following options to follow.</div>
<div></div>
<div>Option 1 &#8211; Reduce the analyze scope by either reducing the project size(split your project in smaller sub projects/modules) or reducing the set of rules that are analyzed.</div>
<div></div>
<div>Option 2 – Increase the memory size that can be consumed by the JVM.  This can be done by adding the following Environment Variable:</div>
<div>SONAR_RUNNER_OPTS=&#8221;-Xmx3062m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m&#8221;</div>
<div></div>
<div>e.g Linux</div>
<div>&gt; export SONAR_SCANNER_OPTS=&#8221;-Xmx3062m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m&#8221;</div>
<div>e.g Windows</div>
<div>&gt; set SONAR_SCANNER_OPTS=&#8221;-Xmx3062m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=128m&#8221;</div>
<div></div>
<p>&nbsp;</p>
<div>Reference</div>
<div><a href="https://docs.sonarqube.org/display/SONAR/Hardware+Recommendations" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SONAR/Hardware+Recommendations</a></div>
<div><a href="https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner" target="_blank" rel="noopener">https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner</a></div>
</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sonarqube-frequently-asked-questions-faq/">SonarQube Frequently asked questions (FAQ) |  SonarQube FAQs</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sonarqube-frequently-asked-questions-faq/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
