2016-03-14 00:02:07 -05:00
<?xml version="1.0"?>
2020-07-24 11:37:53 -07:00
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name= "com.puppycrawl.tools.checkstyle.Checker" >
2016-03-14 00:02:07 -05:00
<module name= "SuppressionFilter" >
2020-07-24 11:37:53 -07:00
<property name= "file"
value= "${config_loc}/checkstyle-suppressions.xml" />
2016-03-14 00:02:07 -05:00
</module>
2020-07-29 14:14:23 -07:00
<module name= "com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderCheck" >
<property name= "headerFile" value= "${config_loc}/header.txt" />
<property name= "fileExtensions" value= "java" />
2016-03-14 00:02:07 -05:00
</module>
2026-01-22 14:58:41 -06:00
<module name= "com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocPackageCheck" /> <!-- Require package - info.java -->
<module name= "com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck" >
<property name= "id" value= "requireNullMarkedInPackageInfo" />
<property name= "format" value= "@NullMarked\s+package" />
<property name= "minimum" value= "1" />
<property name= "maximum" value= "1" />
<property name= "message" value= "package-info.java must include @NullMarked annotation before the package declaration" />
<property name= "fileExtensions" value= "java" />
</module>
2020-07-29 14:14:23 -07:00
<module name= "io.spring.javaformat.checkstyle.SpringChecks" >
<property name= "excludes" value= "io.spring.javaformat.checkstyle.check.SpringHeaderCheck" />
2022-07-15 12:00:22 -05:00
<property name= "excludes" value= "com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocPackageCheck" />
2020-08-24 16:38:12 -05:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.test.web.reactive.server.SecurityMockServerConfigurers.*" />
2021-05-10 13:45:04 -03:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.test.web.servlet.response.SecurityMockMvcResultHandlers.*" />
2022-05-26 14:14:10 -06:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.config.annotation.SecurityContextChangedListenerArgumentMatchers.*" />
2022-09-22 09:26:53 -05:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.web.csrf.CsrfTokenAssert.*" />
2025-07-02 18:16:41 -06:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.web.servlet.TestMockHttpServletRequests.*" />
2025-07-02 14:06:12 -06:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.*" />
2022-10-06 09:53:54 -03:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.security.web.util.matcher.RegexRequestMatcher.*" />
2022-11-16 09:15:44 -03:00
<property name= "avoidStaticImportExcludes" value= "org.springframework.core.annotation.MergedAnnotations.SearchStrategy.*" />
2024-06-05 16:58:11 -06:00
<property name= "avoidStaticImportExcludes" value= "org.assertj.core.api.InstanceOfAssertFactories.*" />
2020-07-29 14:14:23 -07:00
</module>
2020-08-04 14:20:45 -07:00
<module name= "com.puppycrawl.tools.checkstyle.TreeWalker" >
<module name= "com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck" >
<property name= "maximum" value= "0" />
<property name= "format" value= "org\.assertj\.core\.api\.Assertions\.(catchThrowable|catchThrowableOfType|assertThatThrownBy|assertThatCode)" />
<property name= "message" value= "Please use assertThatExceptionOfType." />
<property name= "ignoreComments" value= "true" />
2016-03-14 00:02:07 -05:00
</module>
2024-10-28 07:38:45 -04:00
<module name= "com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck" >
<property name= "id" value= "toLowerCaseWithoutLocale" />
<property name= "format" value= "\.toLowerCase\(\)" />
<property name= "maximum" value= "0" />
<property name= "message"
value= "String.toLowerCase() should be String.toLowerCase(Locale.ROOT) or String.toLowerCase(Locale.ENGLISH)" />
<property name= "ignoreComments" value= "true" />
</module>
<module name= "com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck" >
<property name= "id" value= "toUpperCaseWithoutLocale" />
<property name= "format" value= "\.toUpperCase\(\)" />
<property name= "maximum" value= "0" />
<property name= "message"
value= "String.toUpperCase() should be String.toUpperCase(Locale.ROOT) or String.toUpperCase(Locale.ENGLISH)" />
<property name= "ignoreComments" value= "true" />
</module>
2026-01-22 14:58:41 -06:00
<module name= "com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck" >
<property name= "id" value= "bannedImports" />
<property name= "regexp" value= "true" />
<property name= "illegalPkgs" value= "org.jetbrains.annotations, reactor.util.annotation, javax.annotation" />
</module>
<module name= "com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck" >
<property name= "id" value= "bannedNullabilityImports" />
<property name= "regexp" value= "true" />
<!-- Rejects all NonNull, Nonnull, and Nullable types that are NOT in the org.jspecify.annotations package. -->
<property name= "illegalClasses" value= "^(?!org\.jspecify\.annotations).*(Non[Nn]ull|Nullable)$" />
</module>
<module name= "com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck" >
<property name= "id" value= "nullableAfterModifiers" />
<property name= "format" value= "^\s*(public|protected|private|static|final|synchronized|native|strictfp|abstract)\s+@Nullable\s+(public|protected|private|static|final|synchronized|native|strictfp|abstract)\s" />
<property name= "maximum" value= "0" />
<property name= "message" value= "@Nullable must appear immediately before the type, after all other modifiers (e.g., 'private final @Nullable Object' not 'private @Nullable final Object')" />
<property name= "ignoreComments" value= "true" />
</module>
2016-03-14 00:02:07 -05:00
</module>
</module>