Skip to content

Commit f2ae38b

Browse files
committed
Checkstyle with checkstyle 9.3
1 parent 13982ce commit f2ae38b

File tree

6 files changed

+770
-0
lines changed

6 files changed

+770
-0
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id "maven-publish"
44
id "signing"
55
id "org.embulk.embulk-plugins" version "0.7.0"
6+
id "checkstyle"
67
}
78
repositories {
89
mavenCentral()
@@ -174,3 +175,13 @@ test {
174175
outputs.upToDateWhen { false }
175176
}
176177
}
178+
179+
checkstyle {
180+
toolVersion = libs.versions.checkstyle.get()
181+
configFile = file("${rootProject.projectDir}/config/checkstyle/checkstyle.xml")
182+
configProperties = [
183+
"org.checkstyle.google.suppressionfilter.config": file("${rootProject.projectDir}/config/checkstyle/checkstyle-suppressions.xml"),
184+
]
185+
ignoreFailures = false
186+
maxWarnings = 0
187+
}

config/checkstyle/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Checkstyle for the Embulk project
2+
==================================
3+
4+
* google_check.xml: Downloaded from: https://github.com/checkstyle/checkstyle/blob/checkstyle-9.3/src/main/resources/google_checks.xml
5+
* Commit: 5c1903792f8432243cc8ae5cd79a03a004d3c09c
6+
* checkstyle.xml: Customized from google_check.xml.
7+
* To enable suppressions through checkstyle-suppressions.xml.
8+
* To enable suppressions with @SuppressWarnings.
9+
* To indent with 4-column spaces.
10+
* To limit columns to 180 characters.
11+
* To reject unused imports.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
3+
<!DOCTYPE suppressions PUBLIC
4+
"-//Puppy Crawl//DTD Suppressions 1.2//EN"
5+
"http://checkstyle.sourceforge.net/dtds/suppressions_1_2.dtd">
6+
7+
<suppressions>
8+
<suppress checks="JavadocMethod" files=".*"/>
9+
<suppress checks="JavadocParagraph" files=".*"/>
10+
<suppress checks="JavadocTagContinuationIndentation" files=".*"/>
11+
<suppress checks="MissingJavadocType" files=".*"/>
12+
<suppress checks="SingleLineJavadoc" files=".*"/>
13+
<suppress checks="SummaryJavadoc" files=".*"/>
14+
</suppressions>

0 commit comments

Comments
 (0)