Перейти к содержимому

🚀 SonarQube Basic Scan (Local Code Analysis) — Beginner Project

Tech with Nu

0:00 / 0:00

🚀 SonarQube Basic Scan (Local Code Analysis) — Beginner Project

141 просмотр · 5 месяцев назад
Tech with Nu
69 подписчиков
141 просмотр · 5 месяцев назад
In this video, you will learn how to use *SonarQube* to perform a basic *local code analysis* step by step. This is a beginner-friendly project designed to help you understand how modern developers improve code quality using automated tools. --- 🎯 What You Will Learn What SonarQube is and why it is important How to scan your source code locally How to read and understand analysis reports: 🐞 Bugs 🔐 Vulnerabilities 🧹 Code Smells --- 🧱 Tech Stack PHP or Node.js (choose one) SonarQube (running with Docker) Sonar Scanner CLI --- ⚙️ Project Scenario You have a simple project (for example: a CRUD API). Your task is to: 👉 Set up SonarQube using Docker 👉 Run a local scan on your project --- 📌 Quick Demo Commands Run SonarQube: ```bash docker run -d -p 9000:9000 sonarqube ``` Run scan: ```bash sonar-scanner \ -Dsonar.projectKey=demo \ -Dsonar.sources=. \ -Dsonar.host.url=http://localhost:9000 ``` --- 🔍 Expected Results After completing the scan, you will: Access the SonarQube dashboard See detailed reports about your code Understand key quality metrics: Bugs → Code errors Vulnerabilities → Security risks Code Smells → Maintainability issues --- 🎓 Skills You Will Gain Basic understanding of code quality Hands-on experience with static code analysis First step into DevSecOps practices --- 💡 Why This Matters Instead of manually reviewing code, SonarQube helps you automatically detect issues early in development. This saves time, improves code quality, and makes your applications more secure and maintainable. --- 👉 This is the *first step* toward integrating code quality checks into CI/CD pipelines and becoming a better developer. --- 📌 Don’t forget to like, share, and subscribe for more DevOps & backend tutorials! 🚀