Skip to content
Snippets Groups Projects

Bug and Style Checker

Merged Clayton, Brandon Scott requested to merge ghsc/users/bclayton/nshmp/nshmp-ws:lint into master
  • Added SpotBugs, Spotless, and Gradle Githook to Gradle build.
  • Updated format on files

SpotBugs (FindBugs successor)

  • Added SpotBugs to Gradle build to find common bugs to the code
  • Uses nshmp-lib/gradle/spotbugs.gradle file for config
  • Check main code: ./gradlew spotbugsMain
  • Check test code: ./gradlew spotbugsTest
  • spotbugsMain and spotbugsTest are ran automatically on git commit

Spotless

  • Added Spotless to Gradle build to check code formatting based on the Eclipse format XML file (src/resources/nshmp.eclipse-format.xml)
  • Uses nshmp-lib/gradle/spotless.gradle file for config
  • Check code: ./gradlew spotlessCheck
  • Apply format: ./gradlew spotlessApply
  • spotlessCheck is automatically ran on Git push

Gradle Githook

  • Added Gradle Githook to allow Git hooks
  • Uses nshmp-lib/gradle/git-hooks.gradle for config

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading