<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tech Knowledge]]></title><description><![CDATA[Tech Knowledge]]></description><link>https://amantyagi27.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 07:52:44 GMT</lastBuildDate><atom:link href="https://amantyagi27.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Static Code Analysis with SonarQube]]></title><description><![CDATA[This will help you to analyse your source code.
1) Download SonarQube community edition from here

2) Extract the downloaded file
3) In the extracted folder go to bin, and then to Windows-x86-32 (according to  Windows OS) to find a file named StartSo...]]></description><link>https://amantyagi27.hashnode.dev/static-code-analysis-with-sonarqube</link><guid isPermaLink="true">https://amantyagi27.hashnode.dev/static-code-analysis-with-sonarqube</guid><dc:creator><![CDATA[AMAN TYAGI]]></dc:creator><pubDate>Tue, 24 Nov 2020 11:37:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216255860/IX1hh7UGr.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3 id="this-will-help-you-to-analyse-your-source-code">This will help you to analyse your source code.</h3>
<p>1) Download SonarQube community edition from <a target="_blank" href="https://www.sonarqube.org/downloads/">here</a></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216527140/djMucBT0Z.png" alt="Screenshot (457).png" /></p>
<p>2) Extract the downloaded file</p>
<p>3) In the extracted folder go to bin, and then to Windows-x86-32 (according to  Windows OS) to find a file named StartSonar.bat</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216574137/37_qR0quc.png" alt="image.png" /></p>
<p>4)Open command prompt as admin and move to the folder where the StartSonar.bat file is stored.</p>
<p>5) Run the command 
<code>StartSonar.bat</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216680675/76UjPLNq_.png" alt="image.png" /></p>
<p>6)Once the command successfully runs, go to localhost:9000 (Default port for sonar)</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216714276/qeF3V9Ta7.png" alt="image.png" /></p>
<p>7)Now from another command prompt window  traverse to the project for which analysis is to be run </p>
<p>8) Run the command </p>
<p><code>mvn clean install sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.analysis.mode=publish</code></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606216798083/7LeT-4bS3.png" alt="image.png" /></p>
<p>9)You will get “Build success”</p>
<p>10)Navigate to the project tab at SonarQube dashboard , and you will see the analyzed project.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1606217606381/7UOeopoF3.png" alt="image.png" /></p>
]]></content:encoded></item></channel></rss>