Skip to content

Commit

Permalink
Merge branch 'checkstyle:master' into issue9396
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayak-gaikwad committed Jul 22, 2021
2 parents 63bdb58 + e4478c1 commit 155510e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 15 additions & 6 deletions config/checkstyle_checks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,21 @@
<message key="matchxpath.match"
value="Avoid using deprecated method 'DetailAst.branchContains()'."/>
</module>
<module name="MatchXpath">
<property name="id" value="singleLineCommentStartWithSpace"/>
<property name="query"
value="//SINGLE_LINE_COMMENT[./COMMENT_CONTENT[not(starts-with(@text, ' '))
and not(@text = '\n') and not(ends-with(@text, '//\n')) ]]"/>
<message key="matchxpath.match" value="Single line comment text should start with space."/>
</module>
<module name="MatchXpath">
<property name="id" value="blockCommentStartWithSpace"/>
<property name="query"
value="//BLOCK_COMMENT_BEGIN[./COMMENT_CONTENT[matches(@text, '\\n+ *\*[^\\n ]\S')
or matches(@text, '^[^\* \\n]') and not(starts-with(@text, '*'))]]"/>
<message key="matchxpath.match"
value="Block comment text should start with space after asterisk."/>
</module>
<module name="MissingCtor">
<!--
we will not use that fanatic validation, extra code is not good
Expand Down Expand Up @@ -677,12 +692,6 @@
<module name="TodoComment">
<property name="format" value="(TODO)|(FIXME)" />
</module>
<!-- till https://github.com/checkstyle/checkstyle/issues/8137 -->
<module name="TodoComment">
<property name="id" value="commentStartWithSpace"/>
<property name="format" value="^([^\s\/*])"/>
<message key="todo.match" value="Comment text should start with space."/>
</module>
<module name="TrailingComment"/>
<module name="UncommentedMain">
<property name="excludedClasses" value="\.(Main|JavadocPropertiesGenerator)$"/>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.31</version>
<version>1.7.32</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 155510e

Please sign in to comment.