SlideServe
Menu
Préférences
© SlideServe · v2026

CPSC 871

cosima avatar
22 diapositives · 373 Views · Jul 10, 2014

This guide introduces you to using Sonar, a static analysis tool for code quality, in conjunction with the Brickles Project. Learn how to download and set up Sonar, import the Brickles Project into Topcased, and execute it through Eclipse. Discover the process of creating users, assigning them to projects, and conducting code reviews using Sonar’s built-in metrics and features. Follow step-by-step instructions to generate review reports and explore design reviews, helping enhance overall code standards.

CPSC 871 - slide 1
01 / 22CPSC 871
1 / 17

Télécharger la présentation

CPSC 871
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. CPSC 871 John D. McGregor Module 6 Session 4 Sonar

  2. BricklesProject • Download and unzip the BricklesProject zip • Import the BricklesProject into your Topcased • The project can be executed by right clicking on the BricklesView.java file. Select Java Applet and it should execute.

  3. Sonar introduction

  4. Sonar system architecture Sonar has a server that performs the analyses • The server may be for a project or a company. Sonar client runs in browser Sonar client runs in Eclipse Sonar client runs from command line

  5. Installation • Install server on your machine • Install the Eclipse plug-in into your Topcased setup • When a new Eclipse project is created, associate it with Sonar • Create Users in sonar • Assign Users to projects

  6. Sonar startup • Sonar is a static analysis tool for code • Download from: http://www.sonarsource.org/downloads/ • Unzip • from the bin/win32-x86 click on StartSonar for a windows system • this will start the Sonar server • It will listen on localhost:9000

  7. Eclipse sonar • Download the plug-in • http://docs.codehaus.org/display/SONAR/Sonar+Eclipse • Follow the installation instructions to add it into your Topcased installation

  8. Sonar initial screen Browse to localhost:9000 using any browser

  9. Sonar startup • There is a wink tutorial on getting a program up and running with Sonar.

  10. New project • Any new project – add the Sonar nature to the project • Login to Sonar and assign yourself as the User of the project

  11. Markers appear in the source editor to indicate Sonar issues

  12. Use violation drill down to locate individual statements

  13. Drill down in unit

  14. Manual Reviews

  15. A review begins with the assignment to a reviewer and adding a comment

  16. Hovering over violation brings up resolution choices Pops up

  17. Reviewer has decided on action

  18. Reviewer fixes violation and adds comment. Reviewer fixes the violation

  19. Time machine shows changes across multiple builds

  20. Use the Sonar perspective to open all the windows needed The same measures as shown In the web browser are in these windows

  21. Metrics • Sonar has a number of built-in measures that are applied to every build of the product • There are many plug-ins of additional metrics that can be added to the server.

  22. Here’s what you are going to do • Install Sonar • Import the Brickles project into Topcased • Build the project • Look at the Sonar DashBoard • Explore how to conduct a design review using Sonar • Submit a screen shot of your code dashBoard for Brickles • Follow the review process to generate a review report