Fix failing problem type test

This commit is contained in:
BoykoAlex
2022-05-09 21:07:31 -04:00
parent 704d77d0e9
commit f82acac9b9
2 changed files with 39 additions and 3 deletions

View File

@@ -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"
}
],

View File

@@ -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",