|
1 | 1 | <?xml version="1.0"?> |
2 | 2 | <!DOCTYPE module PUBLIC |
3 | | - "-//Puppy Crawl//DTD Check Configuration 1.3//EN" |
4 | | - "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
| 3 | + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" |
| 4 | + "https://checkstyle.org/dtds/configuration_1_3.dtd"> |
5 | 5 |
|
6 | 6 | <!-- |
7 | 7 | Palantir Baseline Checkstyle configuration. |
|
127 | 127 | <property name="illegalPkgs" value="junit.framework"/> |
128 | 128 | <message key="import.illegal" value="Use JUnit 4-style (org.junit.*) test classes and assertions instead of JUnit 3 (junit.framework.*)."/> |
129 | 129 | </module> |
| 130 | + <module name="IllegalImport"> <!-- Only relevant for pre-Java 11 because javafx is gone completely in Java 11 --> |
| 131 | + <property name="id" value="BanJavafx"/> |
| 132 | + <property name="illegalPkgs" value="javafx"/> |
| 133 | + <message key="import.illegal" value="Must not import javafx classes because some OpenJDK builds do not include javafx."/> |
| 134 | + </module> |
130 | 135 | <module name="IllegalImport"> <!-- Java Coding Guidelines: Import the canonical package --> |
131 | 136 | <property name="illegalPkgs" value="org.elasticsearch.common.base, com.clearspring.analytics.util, org.spark_project.guava"/> |
132 | 137 | <message key="import.illegal" value="Must not import repackaged classes."/> |
|
417 | 422 | <property name="allowEmptyMethods" value="true"/> |
418 | 423 | <property name="allowEmptyTypes" value="true"/> |
419 | 424 | <property name="allowEmptyLoops" value="true"/> |
| 425 | + <property name="allowEmptyLambdas" value="true"/> |
420 | 426 | <property name="ignoreEnhancedForColon" value="false"/> |
421 | 427 | <message key="ws.notFollowed" value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/> |
422 | 428 | <message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/> |
|
430 | 436 | </module> |
431 | 437 | <module name="CyclomaticComplexity"/> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity --> |
432 | 438 | <module name="DesignForExtension"> <!-- Java Coding Guidelines: Design for extension --> |
433 | | - <property name="ignoredAnnotations" value="Test, Before, BeforeEach, After, AfterEach, BeforeClass, BeforeAll, AfterClass, AfterAll"/> |
| 439 | + <property name="ignoredAnnotations" value="ParameterizedTest, Test, Before, BeforeEach, After, AfterEach, BeforeClass, BeforeAll, AfterClass, AfterAll"/> |
434 | 440 | </module> |
435 | 441 | <module name="JavadocMethod"> <!-- Java Style Guide: Where Javadoc is used --> |
436 | 442 | <property name="scope" value="public"/> |
|
0 commit comments