SonarCloud integration (Import API)
Unlock the potential of SonarCloud integration using the Import API functionality, empowering you to craft custom metrics tailored to your data source.
While SonarCloud was not officially supported by Perf in the past, it used to function within Perf under SonarQube integration versions prior to 8.6. However, this integration broke after subsequent updates on SonarQube side.
Let's walk through the process:
Go to Data Source Configuration page
Choose “SonarCloud” in Import API section
Enter SonarCloud link and password
Fill in your SonarCloud projects (this should be done manually)
Save and run data load
Important: for each new environment it's required SonarCloud agent to be enabled
Now you are ready to explore the Custom Metrics feature to effortlessly generate your own metrics by associating them with the respective table names:
Metric | Table name |
---|---|
Technical Debt (in hours) | sc_tech_debt |
Technical Debt for a New Code (in hours) | sc_new_tech_debt |
Unit Test Coverage, % | sc_unit_tests_cov |
Code Violations by Priorities | sc_viol_by_priority |
Duplicated Lines (%) | sc_dup_lines_density |
Code Maintainability Rating, grade | sc_maint_rating |
Cyclomatic Complexity Per File, level | sc_file_complexity |
OWASP Security Vulnerabilities (in items) | sc_owasp_vulns |
Security Rating, grade | sc_sec_rating |
Additionally, here are some examples with notes that can assist you in crafting PerQL.
If you require assistance or have any questions, feel free to reach out to our support team for expert guidance and consultations.