Step-by-Step Tutorial: Installing SonarQube on Windows 10 for ASP.NET Development
ฝัง
- เผยแพร่เมื่อ 30 มิ.ย. 2024
- In this video you we will learn,
How to Install SonarQube, how to configure SonarQube, how to setup for a ASP.NET project in SonarQube. Also, how to install SonarQube on Windows. How to run the code analysis and see the code analysis report. Drill down different areas like Issues (Bugs, Vulnerabilities, Code Smells), Severity (Blocker, Critical, Major), Resolution, Status, Code Security, Reliability, Code Coverage, Maintainability, Duplicate, Quality Gate and much more.
Why SonarQube is So important for Code Quality?
SonarQube is a Code Analysis tool used to measure and analyses the source code quality. Code quality analysis makes your code more reliable and more readable. SonarQube is written in java but it can analyze and manage code of more than 20 programming languages, including C#, TypeScript, JavaScript, JAVA, C/C++, PL/SQL, Cobol etc. through plugins. Plugins extend the functionality of SonarQube. More than 50 plugins are available.
In this video we run the SonarQube Scanner for a ASP.NET MVC project.
Also like and share the channel if the content benefits you and don't forget to tell about the improvements in comments.
If you already have SonarQube setup and just want to know how to run code analysis for ASP.NET/C#/VB.NET project, Watch below video.
• Analyze Asp.Net MVC Co...
#InstallSonarQube #ConfigureSonarQube #SonarQubeInstallation #sonarqubetutorial
FACEBOOK PAGE: / easylearningchannel
LINKEDIN: / tahirazeemalvi
GITHUB: github.com/tahiralvi
STACKOVERFLOW: stackexchange.com/users/14540...
00:00 SonarQube Installation and Configuration Steps
2:29 Download the Required tools
4:42 Setup JDK 11 and add a reference in System Environment Path
7:24 Download the SonarQube Community Edition
12:15 Download the SonarQube .NET Scanner
15:21 How to install SonarQube on Windows
18:33 Run the SonarQube Server by StartSonar.bat in CMD
19:34 Run the SonarQube Server in the Browser and login
21:57 Browse different section of SonarQube Server
28:30 Update Admin user permissions
30:30 Setup a project for code analysis in SonarQube
38:58 Start code analysis by running the commands
50:24 Browse through the code analysis report
thank you soo much for the explanation sir..i had no idea what sonarqube is, and my team asked me to use this tool for code analaysis for the .NET API that we use in our project..thank god you have helped me through this sir... Can you also make a video, on whatever errors that we will encounter during setting up th server, or any errors that we might encounteer during running those commands... it would be more helpful sir.....
Thanks brother. I will make sure that made another video for errors handling.
A good helpful video to get started and gain sufficient knowledge for Sonar.
Thank Sir😄😀
So nice of you
This was so incredibly helpful, thank you so much!
thanks a lot.
Thank you so much, what a calm personality you are, everything understood by the viewers 🎉🎉🎉
You are very welcome bro
Thanks for the clear explanation.
Thanks for the appreciation and hopefully you will get from video.
I really like and appreciate this great work, this helpful video save my time thanks in ♾️ loop
Thanks you if you like the video content.
Ohh waoo found a informative video. Appreciating. Plz upload more on this topic
Thanks a lot for appreciating. Soon you will find new videos on technology.
Waooo
What a informative video about sonar qube
Great work ..!
informative video
thx for the video my boy
Thanks for liking the content.
Great video, please makes a video in net core code analysis
For ASP.NET Core the installation process is same but differ when run the Sonar scanner for Net Core project. Sure I will make a separate video on it very soon.
Important Points in the Video
00:00 SonarQube Prerequisites, Installation and Configuration Steps
2:29 Download the Required tools
4:42 Setup JDK 11 and add a reference in System Environment Path
7:24 Download the SonarQube Community Edition
12:15 Download the SonarQube .NET Scanner
15:21 Setup SonarQube Server on Local Machine
18:33 Run the SonarQube Server by StartSonar.bat in CMD
19:34 Run the SonarQube Server in the Browser and login
21:57 Browse different section of SonarQube Server
28:30 Update Admin user permissions
30:30 Setup a project for code analysis in SonarQube
38:58 Start code analysis by running the commands
50:24 Browse through the code analysis report
you have a folder called SocialLadder with many folders and this SCS folder where you start the program. How am i supposed to get this file structure? Why you didn't explain it? I don't have such folder, how to start this without such folders? You just explained happy paths, nothing besides it
Well, that is a sample project that I have in my local drive on which I ran the SonarQube scanner. For you, choose any project directory that you have in your machine for which you want to run Sonarqube. Or you could download any sample from github.
👍🏻👍🏻
Thanks for liking the video
Just in case it will give error in jdk version above 17 please stick to jdk version 17 only Thanks for the video
You are welcome
THANKS A LOT , I JUST HAVE A QUESTION WHEN YOU EXCUTE THE THREE COMANDS WHERE I HAVE TO EXCUTE ?
You could use cmd.exe (open it as Admin) or use powershell console (open it as Admin)
If the port isn't available, the service will stop immediately after starting, without any log on the reason. Keep that in mind!
100% right
Hi Sir, thanks for the detailed tutorial. need to get the coverage as is shwoing 0% only.may i know how to setup this?
Dear Sheo,
Sonarqube doesn't run the test or generate reports. To calculate coverage results for your project you need to install / set up 3rd party tool.
Jacoco is one of the tool
@@TahirAlviOfficial as such ?jococo ?
This is a Plugin available in SonarQube. You may install it once you have Admin access of Sonarqube
Hi just like to ask something. I have a .net program developed in visual studio 2005 and i'd like to run it in sonarqube. unfortunately the Msbuild.exe isn't available in the location where it is supposed to be. I searched if there is other location of it but my research conclude that there is no msbuild.exe in visual studio 2005. just like to ask if there is other way to execute the sonarqube analysis on my source code? thank you
Well, I don't have any final word on it. but let me do some work on it, if i find something will share with you.
It is not displaying the Unit Tests count, can you please help in bringing that
SonarQube does not generate the coverage report itself. Instead, you must set up a third-party tool to produce the report as part of your build process. You then need to configure your analysis to tell the SonarScanner where the report is located so that it can pick it up and send it to SonarQube, where it will be displayed on your project dashboard along with the other analysis metrics.
SonarQube supports the following .NET test coverage tools:
Visual Studio Code Coverage
dotnet-coverage Code Coverage
dotCover
OpenCover
Coverlet
Hi, video is nice but I want to run it for an android project .please makes a video on it
Do you work on Kotlin or Java for Android Studio? Meanwhile I will shoot a video for both very soon. Keep watching
this video does not works in newst version. There is no wrapper.exe on bin file. Not working, please update the informations!
Thanks for reaching out, this video is used to install the specific version of JDK and SonarQube. Yes for newer version, this is not a refrence video.
is there any video related to bitbucket repo?
what exactly do you want to know about bitbucket repo? might be I will help you
@@TahirAlviOfficial I am trying to implement sonarqube using bitbucket cloud intergration using pipline. Do you have any step? I am stuck if I am using localhost:9000 in pipeline.