Skip to content

Commit

Permalink
Exclude Junit TempDir annotation from null checking (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jskov authored Oct 7, 2024
1 parent f070720 commit b168e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Note that this is a plugin to ErrorProne, so is also affected by errorprone conf
Comma-separated list of packages to be scanned (will include sub-packages)
* `dk.mada.style.null-checker.exclude-packages = `
Comma-separated list of packages to be excluded from scanning
* `dk.mada.style.null-checker.exclude-field-annotations = javafx.fxml.FXML`
* `dk.mada.style.null-checker.exclude-field-annotations = javafx.fxml.FXML, org.junit.jupiter.api.io.TempDir`
Comma-separated list of classes that are assumed to inject (non-null) value into fields


Expand Down
3 changes: 1 addition & 2 deletions src/main/java/dk/mada/style/config/PluginConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public PluginConfiguration(Project project) {
getBoolProperty("null-checker.enabled", true),
getProperty("null-checker.include-packages", "dk"),
getProperty("null-checker.exclude-packages", ""),
getProperty("null-checker.exclude-field-annotations", ""));
getProperty("null-checker.exclude-field-annotations", "javafx.fxml.FXML, org.junit.jupiter.api.io.TempDir"));

sonarConf = new SonarConfiguration(
getBoolProperty("sonar.enabled", true),
Expand Down Expand Up @@ -230,5 +230,4 @@ private List<String> getListProperty(String name, List<String> defaultValue) {
.map(String::trim)
.toList();
}

}

0 comments on commit b168e50

Please sign in to comment.