Closed vermegi closed 1 year ago
We already have a rule that looks for Spring Config imports.
We should enrich this rule so it can detect the spring-cloud-config-server
dependency:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
As well as checking for the org.springframework.cloud.config.server.EnableConfigServer.EnableConfigServer
annotation
Btw, for spring petclinic the config server dependency did not get picked up, because of issue #124 where in the config files it has newlines. So for the existing rule you mention, that one should also take newlines into account.
Similar to the reporting of eureka usage (https://github.com/Azure/appcat-rulesets/blob/main/rules/rules-reviewed/azure/springboot/spring-boot-to-azure-eureka.windup.xml) appcat should also report on config-server usage. This is also functionality provided OOB by spring apps, so would be nice to see it in the report.