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

ความคิดเห็น • 50

  • @suryavishwanath8564
    @suryavishwanath8564 2 ปีที่แล้ว +4

    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.....

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว +1

      Thanks brother. I will make sure that made another video for errors handling.

  • @prashantmahajan8584
    @prashantmahajan8584 2 หลายเดือนก่อน

    A good helpful video to get started and gain sufficient knowledge for Sonar.
    Thank Sir😄😀

  • @ClaireGrob
    @ClaireGrob ปีที่แล้ว +1

    This was so incredibly helpful, thank you so much!

  • @satishbhuktar2020
    @satishbhuktar2020 9 หลายเดือนก่อน

    Thank you so much, what a calm personality you are, everything understood by the viewers 🎉🎉🎉

  • @jeroenvanmarion3062
    @jeroenvanmarion3062 2 ปีที่แล้ว +2

    Thanks for the clear explanation.

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว

      Thanks for the appreciation and hopefully you will get from video.

  • @atheeral-otaibi2182
    @atheeral-otaibi2182 2 ปีที่แล้ว +2

    I really like and appreciate this great work, this helpful video save my time thanks in ♾️ loop

  • @uzairali4768
    @uzairali4768 2 ปีที่แล้ว +1

    Ohh waoo found a informative video. Appreciating. Plz upload more on this topic

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว

      Thanks a lot for appreciating. Soon you will find new videos on technology.

    • @umaralvi3327
      @umaralvi3327 2 ปีที่แล้ว +1

      Waooo

    • @umaralvi3327
      @umaralvi3327 2 ปีที่แล้ว +1

      What a informative video about sonar qube

  • @POISONGUYS
    @POISONGUYS ปีที่แล้ว

    Great work ..!

  • @samiullah-sb4fc
    @samiullah-sb4fc 2 ปีที่แล้ว +1

    informative video

  • @joaomarques490
    @joaomarques490 2 ปีที่แล้ว +1

    thx for the video my boy

  • @tasneemior7507
    @tasneemior7507 2 ปีที่แล้ว +1

    Great video, please makes a video in net core code analysis

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว

      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.

  • @TahirAlviOfficial
    @TahirAlviOfficial  2 ปีที่แล้ว +1

    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

  • @user-zo1te4nu7e
    @user-zo1te4nu7e ปีที่แล้ว +2

    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

    • @TahirAlviOfficial
      @TahirAlviOfficial  11 หลายเดือนก่อน

      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.

  • @ralvi9827
    @ralvi9827 ปีที่แล้ว +1

    👍🏻👍🏻

  • @harshilshrivastava344
    @harshilshrivastava344 5 หลายเดือนก่อน

    Just in case it will give error in jdk version above 17 please stick to jdk version 17 only Thanks for the video

  • @FranciscoRodriguez-fv6nu
    @FranciscoRodriguez-fv6nu 2 หลายเดือนก่อน

    THANKS A LOT , I JUST HAVE A QUESTION WHEN YOU EXCUTE THE THREE COMANDS WHERE I HAVE TO EXCUTE ?

    • @TahirAlviOfficial
      @TahirAlviOfficial  หลายเดือนก่อน

      You could use cmd.exe (open it as Admin) or use powershell console (open it as Admin)

  • @georgigeorgiev4871
    @georgigeorgiev4871 2 ปีที่แล้ว +1

    If the port isn't available, the service will stop immediately after starting, without any log on the reason. Keep that in mind!

  • @theengineerguyshiv
    @theengineerguyshiv 2 ปีที่แล้ว +1

    Hi Sir, thanks for the detailed tutorial. need to get the coverage as is shwoing 0% only.may i know how to setup this?

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว +1

      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.

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว

      Jacoco is one of the tool

    • @theengineerguyshiv
      @theengineerguyshiv 2 ปีที่แล้ว

      @@TahirAlviOfficial as such ?jococo ?

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว +1

      This is a Plugin available in SonarQube. You may install it once you have Admin access of Sonarqube

  • @jokodelapena2840
    @jokodelapena2840 6 หลายเดือนก่อน

    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

    • @TahirAlviOfficial
      @TahirAlviOfficial  5 หลายเดือนก่อน

      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.

  • @rahulchaurasia5560
    @rahulchaurasia5560 6 หลายเดือนก่อน +1

    It is not displaying the Unit Tests count, can you please help in bringing that

    • @TahirAlviOfficial
      @TahirAlviOfficial  5 หลายเดือนก่อน

      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

  • @ralvi9827
    @ralvi9827 2 ปีที่แล้ว +1

    Hi, video is nice but I want to run it for an android project .please makes a video on it

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 ปีที่แล้ว

      Do you work on Kotlin or Java for Android Studio? Meanwhile I will shoot a video for both very soon. Keep watching

  • @justfair4181
    @justfair4181 3 หลายเดือนก่อน

    this video does not works in newst version. There is no wrapper.exe on bin file. Not working, please update the informations!

    • @TahirAlviOfficial
      @TahirAlviOfficial  2 หลายเดือนก่อน

      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.

  • @vishalyagnik8758
    @vishalyagnik8758 ปีที่แล้ว +1

    is there any video related to bitbucket repo?

    • @TahirAlviOfficial
      @TahirAlviOfficial  ปีที่แล้ว

      what exactly do you want to know about bitbucket repo? might be I will help you

    • @vishalyagnik8758
      @vishalyagnik8758 ปีที่แล้ว

      @@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.