Skip to content

Commit

Permalink
Bump checkstyle from 8.18 to 8.29 (yahoo#1005)
Browse files Browse the repository at this point in the history
* Bump checkstyle from 8.18 to 8.29

Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 8.18 to 8.29.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](checkstyle/checkstyle@checkstyle-8.18...checkstyle-8.29)

Signed-off-by: dependabot[bot] <[email protected]>
* Bumping the checkstyle client level and fixing broken chekstyle config.

Co-authored-by: michael-mclawhorn <[email protected]>
  • Loading branch information
dependabot[bot] and michael-mclawhorn authored Feb 3, 2020
1 parent 61c8540 commit 725751f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
38 changes: 20 additions & 18 deletions checkstyle-style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,31 @@

<property name="severity" value="warning" />


<module name="SuppressWithPlainTextCommentFilter">
<property name="offCommentFormat" value=" // CHECKSTYLE:OFF"/>
<property name="onCommentFormat" value=" // CHECKSTYLE:ON"/>
</module>

<module name="LineLength">
<property name="severity" value="error" />
<property name="ignorePattern" value="^import.*$" />
<property name="max" value="120" />
<property name="tabWidth" value="4" />
<property name="fileExtensions" value="java" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity"
value="inherit" />
<metadata name="net.sf.eclipsecs.core.comment"
value="Line length of 120 characters except for import lines." />
</module>

<module name="TreeWalker">
<module name="RedundantModifier">
<property name="severity" value="error" />
</module>

<!-- Make the @SuppressWarnings annotations available to Checkstyle -->
<module name="SuppressWarningsHolder" />
<module name="SuppressWarningsHolder" />

<module name="ConstantName">
<property name="severity" value="error" />
Expand Down Expand Up @@ -178,13 +196,8 @@
<module name="JavadocMethod">
<property name="severity" value="error" />
<property name="scope" value="private" />
<property name="allowUndeclaredRTE" value="true" />
<property name="allowThrowsTagsForSubclasses" value="true" />
<property name="allowMissingParamTags" value="false" />
<property name="allowMissingThrowsTags" value="false" />
<property name="allowMissingJavadoc" value="false" />
<property name="allowMissingPropertyJavadoc" value="true" />
<property name="validateThrows" value="true" />
<property name="validateThrows" value="false" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit" />
<metadata name="net.sf.eclipsecs.core.comment" value="Checks the Javadoc of a method or constructor." />
</module>
Expand All @@ -196,17 +209,6 @@
<metadata name="net.sf.eclipsecs.core.comment" value="Checks that variables have Javadoc comments." />
</module>

<module name="LineLength">
<property name="severity" value="error" />
<property name="ignorePattern" value="^import.*$" />
<property name="max" value="120" />
<property name="tabWidth" value="4" />
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity"
value="inherit" />
<metadata name="net.sf.eclipsecs.core.comment"
value="Line length of 120 characters except for import lines." />
</module>

<module name="EqualsHashCode">
<property name="severity" value="error" />
<metadata name="net.sf.eclipsecs.core.comment"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public List<String> getNamespaces() {
return this.namespaces;
}

//CHECKSTYLE:OFF
// CHECKSTYLE:OFF
@Override
public TestLookupDimensionConfig withApiName(TestApiDimensionName apiName) {
return new TestLookupDimensionConfig(apiName, getPhysicalName(), getKeyValueStore(), getSearchProvider(), getFields(), getDefaultDimensionFields(), namespaces);
Expand Down Expand Up @@ -100,5 +100,5 @@ public TestLookupDimensionConfig withDefaultFields(LinkedHashSet<DimensionField>
public TestLookupDimensionConfig withNamespaces(List<String> namespaces) {
return new TestLookupDimensionConfig(getApiNameEnum(), getPhysicalName(), getKeyValueStore(), getSearchProvider(), getFields(), getDefaultDimensionFields(), namespaces);
}
//CHECKSTYLE:ON
// CHECKSTYLE:ON
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
public enum ConfigMessageFormat implements MessageFormatter {

//CHECKSTYLE:OFF
// CHECKSTYLE:OFF
MODULE_IO_EXCEPTION (
"IoException while loading modules: %s"
),
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<checkstyle.skip>false</checkstyle.skip>
<checkstyle.config.location>checkstyle-style.xml</checkstyle.config.location>
<checkstyle.suppressions.location>checkstyle-suppressions.xml</checkstyle.suppressions.location>
<checkstyle.version>8.18</checkstyle.version>
<checkstyle.version>8.29</checkstyle.version>
<checkstyle.resourceIncludes>**/*.properties*</checkstyle.resourceIncludes>

<dependency.locations.enabled>false</dependency.locations.enabled>
Expand All @@ -147,7 +147,7 @@
<maven-source-plugin-version>3.0.1</maven-source-plugin-version>
<maven-surefire-plugin-version>3.0.0-M3</maven-surefire-plugin-version>
<maven-site-plugin-version>3.7.1</maven-site-plugin-version>
<maven-checkstyle-plugin-version>3.0.0</maven-checkstyle-plugin-version>
<maven-checkstyle-plugin-version>3.1.0</maven-checkstyle-plugin-version>
<maven-project-info-reports-plugin-version>3.0.0</maven-project-info-reports-plugin-version>
<maven-surefire-report-plugin-version>${maven-surefire-plugin-version}</maven-surefire-report-plugin-version>

Expand Down

0 comments on commit 725751f

Please sign in to comment.