# Static Code Analysis

**SonarQube** is a Code Quality Assurance tool that collects and analyzes source code, and provides reports for the code quality of your project. It provides detailed reports on coding standards, unit tests, code coverage, bugs, and security vulnerabilities.

### **SonarQube Report**

If you choose tool integration while creating a build pipeline, SonarQube report is displayed here. To view the report:

1. Click **SonarQube Report** in the build page.

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2F4F2rz4lLwFrItu3HwkyY%2Fimage.png?alt=media&#x26;token=0e8e2cd8-dc2d-4981-8b28-fe345a9d76dc" alt=""><figcaption></figcaption></figure>

2. A comprehensive report is displayed here.<br>

   <figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2FxvMURzMY4LDC8vqL1OzW%2Fimage.png?alt=media&#x26;token=545ad571-122a-400b-9eb4-d2fc49325199" alt=""><figcaption></figcaption></figure>
3. Click on the numbers corresponding to bugs, vulnerabilities, etc. to be redirected to your SonarQube account for a more detailed report.

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2Fhcfh1oNC4ckDVmzEWs1r%2Fimage.png?alt=media&#x26;token=cfa67841-871b-4585-9e34-83686b90d310" alt=""><figcaption></figcaption></figure>

4. Click **Quality Gate Status,** to know the test cases status in SonarQube.

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2F0nzpXLfW69sqRyFm3Zxr%2Fimage.png?alt=media&#x26;token=586a237f-8660-423e-8117-be59a2d4ffb1" alt=""><figcaption></figcaption></figure>

5. Click **Lines of Code** to see the code in **SonarQube.**

<figure><img src="https://1890383800-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDWyxe6hm5vqosFaByVgs%2Fuploads%2F2zjZHP9nPjclKQrHe8gl%2Fimage.png?alt=media&#x26;token=4d79a99f-696b-4a94-b0fb-a9fc35593118" alt=""><figcaption></figcaption></figure>
