Enhance: SonarCloud Integration - #18
Merged
Merged
Conversation
- Updated workflow name from "SonarQube" to "SonarQube Cloud Analysis" - Added description field to workflow for better GitHub Actions UI visibility - Maintained all existing triggers and job configurations :link: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#run-name This improves workflow discoverability in the GitHub Actions dashboard.
- Added explicit project name and version for UI clarity - Defined source directories relative to project root - Set source encoding to UTF-8 for consistent analysis - Added exclusions for common non-source directories (.docs/, .git/) - Enabled analysis of shell script files with appropriate language settings :link: https://docs.sonarsource.com/sonarqube-cloud/advanced-setup/analysis-parameters/parameters-not-settable-in-ui Configuration now provides more accurate and comprehensive analysis scope.
- Added multiple SonarCloud badges for granular metrics visibility: - Bugs count and rating - Vulnerabilities count and rating - Code Smells count and rating - Organized badges in a logical grid layout - Added hover tooltips for badge descriptions - Maintained existing project branding and structure Provides stakeholders with immediate insight into code quality metrics.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



With Comprehensive Configuration and Metrics Visibility
This pull request significantly enhances our SonarCloud integration by improving configuration granularity, workflow clarity, and project metrics transparency. The updates provide more accurate analysis and better visibility into code quality metrics.
Changes Implemented:
1. Workflow Enhancement (
sonar.yml)2. Configuration Enhancement (
sonar-project.properties)sonar.projectNameandsonar.projectVersionfor clear SonarCloud UI identificationsonar.sources=.to analyze all source files in project rootsonar.sourceEncoding=UTF-8for consistent character handling.docs/,.git/, and other non-source directories3. Metrics Visibility Enhancement (
README.md)Technical Impact:
Analysis Accuracy
Developer Experience
Maintainability
Motivation:
This enhancement addresses three key areas identified during initial SonarCloud implementation:
By implementing these improvements, we establish a production-ready code quality monitoring system that:
The updates align with industry best practices for continuous code quality monitoring while maintaining the project's commitment to clean, maintainable code.