DEV Community

Arsalan Khan
Arsalan Khan

Posted on

Improve Code Quality - Static Analyzer

My Workflow

As a developer, I am looking to improve my code quality and wants to receive fast feedback for my code changes. Specially, when a change comes in the Pull Request (PR) which can be overlooked. In such cases, automated static code analysis can be helpful, which list code coverage, potential bugs, code smells, vulnerabilities and security issues in the form of reports.

One popular tool, SonarCloud by SonarSource helped me to detect bugs and list code coverage detail on the PR. In the workflow, I have used an existing Github Action from sonar cloud to automatically analysis my changes (in a PR) and post the results on the PR itself.

GitHub Action used[https://github.com/SonarSource/sonarcloud-github-action]

SonarCloud Results on PR

Results on SonarCloud.io
Results on SonarCloud.io

Submission Category:

Maintainer Must-Haves

Yaml File or Link to Code

[https://github.com/asalan316/spring-boot-camunda-bpm-example/actions/runs/1541515266/workflow]

Additional Resources / Info

Sample PR
[https://github.com/asalan316/spring-boot-camunda-bpm-example/pull/1]

Master Branch
[https://github.com/asalan316/spring-boot-camunda-bpm-example/runs/4422734786?check_suite_focus=true]

Project
[https://github.com/asalan316/spring-boot-camunda-bpm-example]

Top comments (0)