diff --git a/headless-services/spring-boot-language-server/src/main/resources/problem-types.json b/headless-services/spring-boot-language-server/src/main/resources/problem-types.json index 79cfb3363..7784b8715 100644 --- a/headless-services/spring-boot-language-server/src/main/resources/problem-types.json +++ b/headless-services/spring-boot-language-server/src/main/resources/problem-types.json @@ -8,8 +8,20 @@ }, { "code": "JAVA_AUTOWIRED_CONSTRUCTOR", - "label": "Unnecessary @Autowired", - "description": "Unnecessary @Autowired over the only constructor", + "label": "Unnecessary `@Autowired`", + "description": "Unnecessary `@Autowired` over the only constructor", + "defaultSeverity": "WARNING" + }, + { + "code": "JAVA_PUBLIC_BEAN_METHOD", + "label": "public `@Bean` method", + "description": "Public modifier on `@Bean` method. They no longer have to be public visibility to be usable by Spring.", + "defaultSeverity": "HINT" + }, + { + "code": "JAVA_TEST_SPRING_EXTENSION", + "label": "Unnecessary `@SpringExtension`", + "description": "`@SpringBootTest` and all test slice annotations already applies `@SpringExtension` as of Spring Boot 2.1.0.", "defaultSeverity": "WARNING" } ], diff --git a/vscode-extensions/vscode-spring-boot/package.json b/vscode-extensions/vscode-spring-boot/package.json index fb7f5c2aa..05e1b330f 100644 --- a/vscode-extensions/vscode-spring-boot/package.json +++ b/vscode-extensions/vscode-spring-boot/package.json @@ -232,7 +232,31 @@ "spring-boot.ls.problem.java.JAVA_AUTOWIRED_CONSTRUCTOR": { "type": "string", "default": "WARNING", - "description": "Unnecessary @Autowired over the only constructor", + "description": "Unnecessary `@Autowired` over the only constructor", + "enum": [ + "IGNORE", + "INFO", + "WARNING", + "HINT", + "ERROR" + ] + }, + "spring-boot.ls.problem.java.JAVA_PUBLIC_BEAN_METHOD": { + "type": "string", + "default": "HINT", + "description": "Public modifier on `@Bean` method. They no longer have to be public visibility to be usable by Spring.", + "enum": [ + "IGNORE", + "INFO", + "WARNING", + "HINT", + "ERROR" + ] + }, + "spring-boot.ls.problem.java.JAVA_TEST_SPRING_EXTENSION": { + "type": "string", + "default": "WARNING", + "description": "`@SpringBootTest` and all test slice annotations already applies `@SpringExtension` as of Spring Boot 2.1.0.", "enum": [ "IGNORE", "INFO",