Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 104b7e8

Browse files
authored
[Linter] Upgrade Checkstyle plugin to 3.1.2 supporting Checkstyle version up to 8.41 (#1226)
* Upgrade checkstyle plugin to latest version 3.1.2 * Update rules to support Checkstyle 8.41 * Fix linter issue
1 parent 7740765 commit 104b7e8

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

etc/bot-checkstyle.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585

8686
<module name="SuppressWarningsFilter" />
8787

88+
<module name="LineLength">
89+
<property name="max" value="120"/>
90+
</module>
91+
8892
<module name="TreeWalker">
8993
<!-- check for usage of literal equality "==" between string -->
9094
<module name="StringLiteralEquality"/>
@@ -125,10 +129,7 @@
125129
</module>
126130

127131
<!-- Checks for Size Violations. -->
128-
<!-- See http://checkstyle.sourceforge.net/config_sizes.html -->
129-
<module name="LineLength">
130-
<property name="max" value="120"/>
131-
</module>
132+
<!-- See http://checkstyle.sourceforge.net/config_sizes.html -->
132133
<module name="MethodLength"/>
133134
<module name="ParameterNumber"/>
134135

libraries/bot-builder/src/main/java/com/microsoft/bot/builder/RegisterClassMiddleware.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public void setService(T withService) {
5757
this.service = withService;
5858
}
5959

60-
@Override
6160
/**
6261
* Adds the associated object or service to the current turn context.
6362
* @param turnContext The context object for this turn.
6463
* @param next The delegate to call to continue the bot middleware pipeline.
6564
*/
65+
@Override
6666
public CompletableFuture<Void> onTurn(TurnContext turnContext, NextDelegate next) {
6767
if (!StringUtils.isBlank(key)) {
6868
turnContext.getTurnState().add(key, service);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<jdk.version>1.8</jdk.version>
1919
<maven.compiler.target>1.8</maven.compiler.target>
2020
<maven.compiler.source>1.8</maven.compiler.source>
21-
<checkstyle.version>3.1.0</checkstyle.version>
21+
<checkstyle.version>3.1.2</checkstyle.version>
2222
<pmd.version>3.14.0</pmd.version>
2323
<exclude.tests>%regex[.*recognizers.*]</exclude.tests>
2424
<!-- <repo.id>MyGet</repo.id> -->

0 commit comments

Comments
 (0)