Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

162 add checkstyle and spotbugs into build pipeline #339

Merged

Conversation

forkimenjeckayang
Copy link
Collaborator

Added the Checkstyle and Spotbugs plugin to pom.xml for static code analysis

@forkimenjeckayang forkimenjeckayang linked an issue Jul 24, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.76%. Comparing base (89da57d) to head (116c839).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #339      +/-   ##
=============================================
+ Coverage      86.14%   86.76%   +0.62%     
  Complexity         1        1              
=============================================
  Files            165      165              
  Lines           3348     3348              
  Branches         217      217              
=============================================
+ Hits            2884     2905      +21     
+ Misses           330      309      -21     
  Partials         134      134              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@max402 max402 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of bugs detected by checkstyle and spotbug. We need to create new task to review and fix them

pom.xml Outdated
@@ -123,6 +123,10 @@
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
<checkstyle-maven-plugin.version>3.2.0</checkstyle-maven-plugin.version>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is already version 3.4.0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will update the version here too

<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
<outputFile>${project.basedir}/target/checkstyle-report.xml</outputFile>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add
<propertyExpansion>org.checkstyle.google.severity=warning</propertyExpansion>
So we can make it more strict later by changing to error

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great i will correct that, and push before merging

Copy link

sonarcloud bot commented Jul 26, 2024

@forkimenjeckayang forkimenjeckayang merged commit f5e2b35 into develop Jul 29, 2024
4 checks passed
@forkimenjeckayang forkimenjeckayang deleted the 162-add-checkstyle-and-spotbugs-into-build-pipeline branch July 29, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add checkstyle and spotbugs into build pipeline
3 participants