repowisespring-projects/spring-boot

Code health of spring-projects/spring-boot

Repowise scores spring-projects/spring-boot at 9.7 out of 10 for code health, which reads as excellent, alongside maintainability 9.8 and static performance 10.0 on the same scale. There are 674 open findings across the three pillars, and the lowest-scoring file is jquery-1.7.2.js at 1.0. Scores are computed from complexity, duplication, churn and git fix history, not from a linter.

Findings by severity

46 critical, 108 high, 381 medium, 139 low.

Hotspots

47 files are flagged as hotspots. The top 5:

  • loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarUrlClassLoader.java: 13 commits in the last 90 days from 4 contributors with 1 recent bug fix
  • module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/WebOperationInvocationArguments.java: 3 commits in the last 90 days from 1 contributor
  • build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java: 4 commits in the last 90 days from 3 contributors
  • module/spring-boot-amqp-rabbitmq/src/main/java/org/springframework/boot/amqp/rabbitmq/autoconfigure/AmqpRabbitProperties.java: 6 commits in the last 90 days from 4 contributors
  • loader/spring-boot-jarmode-tools/src/main/java/org/springframework/boot/jarmode/tools/ExtractCommand.java: 5 commits in the last 90 days from 5 contributors with 1 recent bug fix

Lowest-scoring files

  • smoke-test/spring-boot-smoke-test-web-groovy-templates/src/main/resources/static/js/jquery-1.7.2.js: 1.0 out of 10
  • core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java: 5.6 out of 10
  • buildSrc/src/main/java/org/springframework/boot/build/bom/BomPlugin.java: 5.9 out of 10 with 1 bug fix in the last 180 days
  • loader/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/LoadableNames.java: 6.5 out of 10
  • module/spring-boot-kafka/src/test/java/org/springframework/boot/kafka/autoconfigure/KafkaAutoConfigurationTests.java: 6.8 out of 10

Checked against bug fixes

Of the 20 files Repowise scores lowest, 8 had a bug fix in the last 180 days. Across all 9,266 scored files, 1.2% had a bug fix in that window.

Dead code and refactoring

Repowise found 47 unused exports. 56 refactoring targets across 56 files would raise the score.

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

Related guide: Best dead code detection tools by language