repowisespring-projects/spring-petclinic

Code health of spring-projects/spring-petclinic

Repowise scores spring-projects/spring-petclinic at 8.8 out of 10 for code health, which reads as excellent, alongside maintainability 9.4 and static performance 9.9 on the same scale. There are 57 open findings across the three pillars, and the lowest-scoring file is PetController.java at 6.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

2 critical, 13 high, 16 medium, 26 low.

Lowest-scoring files

  • src/main/java/org/springframework/samples/petclinic/owner/PetController.java: 6.0 out of 10
  • src/test/java/org/springframework/samples/petclinic/system/I18nPropertiesSyncTest.java: 7.4 out of 10
  • src/test/java/org/springframework/samples/petclinic/owner/PetControllerTests.java: 7.8 out of 10
  • src/test/java/org/springframework/samples/petclinic/owner/VisitControllerTests.java: 7.8 out of 10
  • src/test/java/org/springframework/samples/petclinic/owner/OwnerControllerTests.java: 7.8 out of 10 with 1 bug fix in the last 180 days

Checked against bug fixes

Of the 20 files Repowise scores lowest, 5 had a bug fix in the last 180 days. Across all 57 scored files, 12.3% had a bug fix in that window.

Dead code and refactoring

1 refactoring target across 1 file would raise the score.

More on spring-petclinic: summary and FAQ, codebase overview, architecture.

Related guide: Best dead code detection tools by language