Skip to content

Commit 424008b

Browse files
Daniel Muehlbachlerromani
authored andcommitted
Issue #269: update pom.xml to include test sources for checkstyle
1 parent 53ca7f3 commit 424008b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@
408408
<headerLocation>I just need to put here smth to let it not use default - LICENSE.txt</headerLocation>
409409
<propertiesLocation>config/checkstyle.properties</propertiesLocation>
410410
<includeTestResources>false</includeTestResources>
411+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
411412
</configuration>
412413
</execution>
413414
<execution>

src/test/java/org/sonar/plugins/checkstyle/internal/ChecksTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,10 @@ else if (AbstractFileSetCheck.class.isAssignableFrom(clss)) {
397397
// remove undocumented properties
398398
new HashSet<>(properties)
399399
.stream()
400-
.filter(property -> UNDOCUMENTED_PROPERTIES
401-
.contains(clss.getSimpleName() + "." + property))
400+
.filter(property -> {
401+
return UNDOCUMENTED_PROPERTIES
402+
.contains(clss.getSimpleName() + "." + property);
403+
})
402404
.forEach(properties::remove);
403405

404406
if (AbstractCheck.class.isAssignableFrom(clss)) {

0 commit comments

Comments
 (0)