Skip to content

Bug and Style Checker

  • 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