Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sonar

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Avatar for Victor Victor
September 24, 2015

 Sonar

Avatar for Victor

Victor

September 24, 2015

Other Decks in Programming

Transcript

  1. What’s Sonarqube —  Is an open platform to manage code

    quality —  Cover more than 20 languages (Java, C#, PHP , JS, CSS) —  Highly customizable
  2. Initial configuration —  Prerequisites —  Java JRE —  DBMS (Mysql,

    …) —  Download Sonarqube —  Modify sonar.properties to know about your DB —  Start Sonar server —  Add sonar.properties to your project and run SonarRunner to perform the static analysis
  3. A few descriptions —  Technicla debt: Can be thought of

    as work that needs to be done before a particular job can be considered complete or proper. (in general the lower the better) —  Cyclomatic Complexity: It is a quantitative measure of the number of linearly independent paths through a program’s source code (the lower the better too) —  Quality profiles: This are a set of rules with which you want to analyze your code. (can be chainable) —  Rules: Conditions that trigger an issue. e.g. “BigDecimal(double)” should not be used. —  SQALE: provides time estimation at the rule level