Introduction

Since we many people have computers, internet is available almost everywhere programming has been done by almost everyone and we have every kind programming code :-D

Something important for professionals and even if you’re not (It is better to have best practises soon ;-) ) is a clean code. For that you have many concepts, philosophies: OOP, SOLID, DRY, use the right design patterns, etc. Here we’ll use a tool that helps to analyze your code: Sonarqube

SonarQube is an open-source platform developed by SonarSource for continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs, code smells, and security vulnerabilities on 20+ programming languages (PHP, Java, Python, etc …).

There are different types of editions available :

  • Community (what we’ll use here)
  • Developer
  • Enterprise
  • Data Center

Prerequisite

To follow and run this tutorial, you should have this install :

  • docker ( link)
  • install  sonarqube
  • Symfony application
  • browser (to check result after sonarqube analysis)

Utility

Sonarqube is used to analyze code quality, especially :

  • Reliability
  • Security
  • Maintainability
  • Coverage
  • Duplications
  • Size
  • Complexity
  • Issues

#symfony #php #docker #sonarqube

Code quality with SONARQUBE
2.25 GEEK