embulk-input-td 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/CHANGELOG.md +5 -0
- data/build.gradle +34 -10
- data/config/checkstyle/README.md +6 -0
- data/config/checkstyle/checkstyle-suppressions.xml +8 -0
- data/config/checkstyle/checkstyle.xml +195 -104
- data/config/checkstyle/google_checks.xml +218 -0
- data/embulk-input-td.gemspec +1 -1
- data/src/main/java/org/embulk/input/td/TdInputPlugin.java +301 -239
- data/src/main/java/org/embulk/input/td/writer/AbstractValueWriter.java +5 -8
- data/src/main/java/org/embulk/input/td/writer/BooleanValueWriter.java +4 -6
- data/src/main/java/org/embulk/input/td/writer/DoubleValueWriter.java +4 -6
- data/src/main/java/org/embulk/input/td/writer/JsonValueWriter.java +4 -6
- data/src/main/java/org/embulk/input/td/writer/LongValueWriter.java +4 -6
- data/src/main/java/org/embulk/input/td/writer/StringValueWriter.java +4 -6
- data/src/main/java/org/embulk/input/td/writer/ValueWriter.java +2 -2
- data/src/test/java/org/embulk/input/td/TestTdInputPlugin.java +1 -2
- metadata +7 -4
- data/config/checkstyle/default.xml +0 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb722151998f977c1757796f15f476faa6002cc0
|
4
|
+
data.tar.gz: 5831f548a5fb461a6eae974d9f1447355b805bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8149f315dbbf759a645f80d99a49ccabf658ec2bf5742c57d6642cf4967c156820ae44edf1543106bf014bdd3993525409c47ba9691a4bffd6c2727efa7002a0
|
7
|
+
data.tar.gz: 5a31354a97d8b51e05f7508b3680a95e4d1dbae1270777ae39da1eaedf5649a6c973784fa885ddf8b7c04154bfc0b12d3f51a2c71ca17a1ea7aa96d86996ec20
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 0.2.1 - 2017-12-11
|
2
|
+
|
3
|
+
* [new feature] Support Presto's MAP conversion with JSON type [#18]
|
4
|
+
* [new feature] Support Presto's ARRAY conversion with JSON type [#17]
|
5
|
+
|
1
6
|
## 0.2.0 - 2017-08-24
|
2
7
|
|
3
8
|
* [maintenance] Modify README.md to show version of Embulk that the plugin supports [#5]
|
data/build.gradle
CHANGED
@@ -3,6 +3,9 @@ plugins {
|
|
3
3
|
id "com.github.jruby-gradle.base" version "0.1.5"
|
4
4
|
id "java"
|
5
5
|
id "checkstyle"
|
6
|
+
id "findbugs"
|
7
|
+
id "jacoco"
|
8
|
+
id "pmd"
|
6
9
|
}
|
7
10
|
import com.github.jrubygradle.JRubyExec
|
8
11
|
repositories {
|
@@ -13,7 +16,7 @@ configurations {
|
|
13
16
|
provided
|
14
17
|
}
|
15
18
|
|
16
|
-
version = "0.2.
|
19
|
+
version = "0.2.1"
|
17
20
|
|
18
21
|
sourceCompatibility = 1.7
|
19
22
|
targetCompatibility = 1.7
|
@@ -35,22 +38,43 @@ task classpath(type: Copy, dependsOn: ["jar"]) {
|
|
35
38
|
}
|
36
39
|
clean { delete "classpath" }
|
37
40
|
|
41
|
+
def checkstyleConfigDir = new File(rootDir, "/config/checkstyle")
|
38
42
|
checkstyle {
|
39
|
-
configFile =
|
40
|
-
|
41
|
-
|
42
|
-
checkstyleMain {
|
43
|
-
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
44
|
-
ignoreFailures = true
|
45
|
-
}
|
46
|
-
checkstyleTest {
|
47
|
-
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
43
|
+
configFile = new File(checkstyleConfigDir, "checkstyle.xml")
|
44
|
+
configProperties.checkstyleConfigDir = checkstyleConfigDir
|
45
|
+
toolVersion = '7.6.1'
|
48
46
|
ignoreFailures = true
|
49
47
|
}
|
50
48
|
task checkstyle(type: Checkstyle) {
|
51
49
|
classpath = sourceSets.main.output + sourceSets.test.output
|
52
50
|
source = sourceSets.main.allJava + sourceSets.test.allJava
|
53
51
|
}
|
52
|
+
check.dependsOn('checkstyle')
|
53
|
+
|
54
|
+
tasks.withType(FindBugs) {
|
55
|
+
reports {
|
56
|
+
xml.enabled = false
|
57
|
+
html.enabled = true
|
58
|
+
}
|
59
|
+
}
|
60
|
+
findbugs {
|
61
|
+
toolVersion = "3.0.1"
|
62
|
+
effort = 'max'
|
63
|
+
reportLevel = 'high'
|
64
|
+
ignoreFailures = false
|
65
|
+
}
|
66
|
+
|
67
|
+
// PMD
|
68
|
+
pmd {
|
69
|
+
ignoreFailures = false
|
70
|
+
}
|
71
|
+
|
72
|
+
jacocoTestReport {
|
73
|
+
reports {
|
74
|
+
xml.enabled = true // coveralls plugin depends on xml format report
|
75
|
+
html.enabled = true
|
76
|
+
}
|
77
|
+
}
|
54
78
|
|
55
79
|
task gem(type: JRubyExec, dependsOn: ["gemspec", "classpath"]) {
|
56
80
|
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "build"
|
@@ -0,0 +1,6 @@
|
|
1
|
+
* google_check.xml: Downloaded from: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
|
2
|
+
* Commit: 67bd379bd8bba435ffb6cbab544c49b2d97944c0
|
3
|
+
* checkstyle.xml: Customized from google_check.xml.
|
4
|
+
* To enable suppressions through checkstyle-suppressions.xml.
|
5
|
+
* To accept package names with underscores.
|
6
|
+
* To indent with 4-column spaces.
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE suppressions PUBLIC
|
3
|
+
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
|
4
|
+
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
|
5
|
+
<suppressions>
|
6
|
+
<suppress checks=".*" files="src/java/main/.*" />
|
7
|
+
<suppress checks=".*" files="src/java/test/.*" />
|
8
|
+
</suppressions>
|
@@ -1,128 +1,219 @@
|
|
1
|
-
<?xml version="1.0"
|
1
|
+
<?xml version="1.0"?>
|
2
2
|
<!DOCTYPE module PUBLIC
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<property name="format" value="\n\n\n"/>
|
29
|
-
<property name="message" value="Multiple consecutive blank lines"/>
|
30
|
-
</module>
|
31
|
-
<module name="RegexpMultiline">
|
32
|
-
<property name="format" value="\n\n\Z"/>
|
33
|
-
<property name="message" value="Blank line before end of file"/>
|
34
|
-
</module>
|
35
|
-
<module name="RegexpMultiline">
|
36
|
-
<property name="format" value="Preconditions\.checkNotNull"/>
|
37
|
-
<property name="message" value="Use of checkNotNull"/>
|
3
|
+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
+
|
6
|
+
<!--
|
7
|
+
Checkstyle configuration that checks the Google coding conventions from Google Java Style
|
8
|
+
that can be found at https://google.github.io/styleguide/javaguide.html.
|
9
|
+
|
10
|
+
Checkstyle is very configurable. Be sure to read the documentation at
|
11
|
+
http://checkstyle.sf.net (or in your downloaded distribution).
|
12
|
+
|
13
|
+
To completely disable a check, just comment it out or delete it from the file.
|
14
|
+
|
15
|
+
Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
|
16
|
+
-->
|
17
|
+
|
18
|
+
<module name = "Checker">
|
19
|
+
<property name="charset" value="UTF-8"/>
|
20
|
+
|
21
|
+
<property name="severity" value="warning"/>
|
22
|
+
|
23
|
+
<property name="fileExtensions" value="java, properties, xml"/>
|
24
|
+
|
25
|
+
<module name="SuppressionFilter">
|
26
|
+
<property name="file" value="${checkstyleConfigDir}/checkstyle-suppressions.xml"/>
|
27
|
+
<property name="optional" value="false"/>
|
38
28
|
</module>
|
39
29
|
|
30
|
+
<!-- Checks for whitespace -->
|
31
|
+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
|
32
|
+
<module name="FileTabCharacter">
|
33
|
+
<property name="eachLine" value="true"/>
|
34
|
+
</module>
|
35
|
+
|
40
36
|
<module name="TreeWalker">
|
41
|
-
<module name="
|
42
|
-
|
43
|
-
<property name="tokens" value="
|
44
|
-
|
45
|
-
|
37
|
+
<module name="OuterTypeFilename"/>
|
38
|
+
<module name="IllegalTokenText">
|
39
|
+
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
|
40
|
+
<property name="format" value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
|
41
|
+
<property name="message" value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
|
46
42
|
</module>
|
47
|
-
<module name="
|
48
|
-
|
49
|
-
|
50
|
-
<property name="
|
43
|
+
<module name="AvoidEscapedUnicodeCharacters">
|
44
|
+
<property name="allowEscapesForControlCharacters" value="true"/>
|
45
|
+
<property name="allowByTailComment" value="true"/>
|
46
|
+
<property name="allowNonPrintableEscapes" value="true"/>
|
51
47
|
</module>
|
52
|
-
<module name="
|
53
|
-
<property name="
|
54
|
-
<property name="
|
48
|
+
<module name="LineLength">
|
49
|
+
<property name="max" value="100"/>
|
50
|
+
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
51
|
+
</module>
|
52
|
+
<module name="AvoidStarImport"/>
|
53
|
+
<module name="OneTopLevelClass"/>
|
54
|
+
<module name="NoLineWrap"/>
|
55
|
+
<module name="EmptyBlock">
|
56
|
+
<property name="option" value="TEXT"/>
|
57
|
+
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
|
55
58
|
</module>
|
56
|
-
<module name="ParenPad"/>
|
57
|
-
<module name="TypecastParenPad"/>
|
58
59
|
<module name="NeedBraces"/>
|
59
60
|
<module name="LeftCurly">
|
60
|
-
<property name="
|
61
|
-
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
61
|
+
<property name="maxLineLength" value="100"/>
|
62
62
|
</module>
|
63
|
-
<module name="
|
64
|
-
<property name="
|
65
|
-
<property name="tokens" value="
|
66
|
-
LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR,
|
67
|
-
LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE"/>
|
63
|
+
<module name="RightCurly">
|
64
|
+
<property name="id" value="RightCurlySame"/>
|
65
|
+
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
|
68
66
|
</module>
|
69
67
|
<module name="RightCurly">
|
68
|
+
<property name="id" value="RightCurlyAlone"/>
|
70
69
|
<property name="option" value="alone"/>
|
70
|
+
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
|
71
71
|
</module>
|
72
|
-
<module name="
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
72
|
+
<module name="WhitespaceAround">
|
73
|
+
<property name="allowEmptyConstructors" value="true"/>
|
74
|
+
<property name="allowEmptyMethods" value="true"/>
|
75
|
+
<property name="allowEmptyTypes" value="true"/>
|
76
|
+
<property name="allowEmptyLoops" value="true"/>
|
77
|
+
<message key="ws.notFollowed"
|
78
|
+
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
|
79
|
+
<message key="ws.notPreceded"
|
80
|
+
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
|
81
|
+
</module>
|
82
|
+
<module name="OneStatementPerLine"/>
|
79
83
|
<module name="MultipleVariableDeclarations"/>
|
84
|
+
<module name="ArrayTypeStyle"/>
|
85
|
+
<module name="MissingSwitchDefault"/>
|
86
|
+
<module name="FallThrough"/>
|
87
|
+
<module name="UpperEll"/>
|
80
88
|
<module name="ModifierOrder"/>
|
81
|
-
<module name="
|
82
|
-
|
83
|
-
|
84
|
-
<module name="
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<module name="
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
<module name="
|
95
|
-
|
89
|
+
<module name="EmptyLineSeparator">
|
90
|
+
<property name="allowNoEmptyLineBetweenFields" value="true"/>
|
91
|
+
</module>
|
92
|
+
<module name="SeparatorWrap">
|
93
|
+
<property name="id" value="SeparatorWrapDot"/>
|
94
|
+
<property name="tokens" value="DOT"/>
|
95
|
+
<property name="option" value="nl"/>
|
96
|
+
</module>
|
97
|
+
<module name="SeparatorWrap">
|
98
|
+
<property name="id" value="SeparatorWrapComma"/>
|
99
|
+
<property name="tokens" value="COMMA"/>
|
100
|
+
<property name="option" value="EOL"/>
|
101
|
+
</module>
|
102
|
+
<module name="TypeName">
|
103
|
+
<message key="name.invalidPattern"
|
104
|
+
value="Type name ''{0}'' must match pattern ''{1}''."/>
|
105
|
+
</module>
|
106
|
+
<module name="MemberName">
|
107
|
+
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
|
108
|
+
<message key="name.invalidPattern"
|
109
|
+
value="Member name ''{0}'' must match pattern ''{1}''."/>
|
110
|
+
</module>
|
111
|
+
<module name="ParameterName">
|
112
|
+
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
113
|
+
<message key="name.invalidPattern"
|
114
|
+
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
|
115
|
+
</module>
|
116
|
+
<module name="CatchParameterName">
|
117
|
+
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
118
|
+
<message key="name.invalidPattern"
|
119
|
+
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
|
120
|
+
</module>
|
121
|
+
<module name="LocalVariableName">
|
122
|
+
<property name="tokens" value="VARIABLE_DEF"/>
|
123
|
+
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
124
|
+
<message key="name.invalidPattern"
|
125
|
+
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
|
126
|
+
</module>
|
96
127
|
<module name="ClassTypeParameterName">
|
97
|
-
<property name="format" value="^[A-Z][0-9]
|
128
|
+
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
129
|
+
<message key="name.invalidPattern"
|
130
|
+
value="Class type name ''{0}'' must match pattern ''{1}''."/>
|
98
131
|
</module>
|
99
132
|
<module name="MethodTypeParameterName">
|
100
|
-
<property name="format" value="^[A-Z][0-9]
|
133
|
+
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
134
|
+
<message key="name.invalidPattern"
|
135
|
+
value="Method type name ''{0}'' must match pattern ''{1}''."/>
|
101
136
|
</module>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
<module name="ImportOrder">
|
107
|
-
<property name="groups" value="*,javax,java"/>
|
108
|
-
<property name="separated" value="true"/>
|
109
|
-
<property name="option" value="bottom"/>
|
110
|
-
<property name="sortStaticImportsAlphabetically" value="true"/>
|
137
|
+
<module name="InterfaceTypeParameterName">
|
138
|
+
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
139
|
+
<message key="name.invalidPattern"
|
140
|
+
value="Interface type name ''{0}'' must match pattern ''{1}''."/>
|
111
141
|
</module>
|
112
|
-
|
113
|
-
<module name="
|
114
|
-
<
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
142
|
+
<module name="NoFinalizer"/>
|
143
|
+
<module name="GenericWhitespace">
|
144
|
+
<message key="ws.followed"
|
145
|
+
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
|
146
|
+
<message key="ws.preceded"
|
147
|
+
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
|
148
|
+
<message key="ws.illegalFollow"
|
149
|
+
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
|
150
|
+
<message key="ws.notPreceded"
|
151
|
+
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
|
152
|
+
</module>
|
153
|
+
<module name="Indentation">
|
154
|
+
<property name="basicOffset" value="4"/>
|
155
|
+
<property name="braceAdjustment" value="0"/>
|
156
|
+
<property name="caseIndent" value="4"/>
|
157
|
+
<property name="throwsIndent" value="8"/>
|
158
|
+
<property name="lineWrappingIndentation" value="8"/>
|
159
|
+
<property name="arrayInitIndent" value="4"/>
|
160
|
+
</module>
|
161
|
+
<module name="AbbreviationAsWordInName">
|
162
|
+
<property name="ignoreFinal" value="false"/>
|
163
|
+
<property name="allowedAbbreviationLength" value="1"/>
|
164
|
+
</module>
|
165
|
+
<module name="OverloadMethodsDeclarationOrder"/>
|
166
|
+
<module name="VariableDeclarationUsageDistance"/>
|
167
|
+
<module name="CustomImportOrder">
|
168
|
+
<property name="sortImportsInGroupAlphabetically" value="true"/>
|
169
|
+
<property name="separateLineBetweenGroups" value="true"/>
|
170
|
+
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
|
171
|
+
</module>
|
172
|
+
<module name="MethodParamPad"/>
|
173
|
+
<module name="ParenPad"/>
|
174
|
+
<module name="OperatorWrap">
|
175
|
+
<property name="option" value="NL"/>
|
176
|
+
<property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
|
177
|
+
</module>
|
178
|
+
<module name="AnnotationLocation">
|
179
|
+
<property name="id" value="AnnotationLocationMostCases"/>
|
180
|
+
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
|
181
|
+
</module>
|
182
|
+
<module name="AnnotationLocation">
|
183
|
+
<property name="id" value="AnnotationLocationVariables"/>
|
184
|
+
<property name="tokens" value="VARIABLE_DEF"/>
|
185
|
+
<property name="allowSamelineMultipleAnnotations" value="true"/>
|
186
|
+
</module>
|
187
|
+
<module name="NonEmptyAtclauseDescription"/>
|
188
|
+
<module name="JavadocTagContinuationIndentation"/>
|
189
|
+
<module name="SummaryJavadoc">
|
190
|
+
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
|
191
|
+
</module>
|
192
|
+
<module name="JavadocParagraph"/>
|
193
|
+
<module name="AtclauseOrder">
|
194
|
+
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
|
195
|
+
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
|
196
|
+
</module>
|
197
|
+
<module name="JavadocMethod">
|
198
|
+
<property name="scope" value="public"/>
|
199
|
+
<property name="allowMissingParamTags" value="true"/>
|
200
|
+
<property name="allowMissingThrowsTags" value="true"/>
|
201
|
+
<property name="allowMissingReturnTag" value="true"/>
|
202
|
+
<property name="minLineCount" value="2"/>
|
203
|
+
<property name="allowedAnnotations" value="Override, Test"/>
|
204
|
+
<property name="allowThrowsTagsForSubclasses" value="true"/>
|
205
|
+
</module>
|
206
|
+
<module name="MethodName">
|
207
|
+
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
|
208
|
+
<message key="name.invalidPattern"
|
209
|
+
value="Method name ''{0}'' must match pattern ''{1}''."/>
|
210
|
+
</module>
|
211
|
+
<module name="SingleLineJavadoc">
|
212
|
+
<property name="ignoreInlineTags" value="false"/>
|
213
|
+
</module>
|
214
|
+
<module name="EmptyCatchBlock">
|
215
|
+
<property name="exceptionVariableName" value="expected"/>
|
126
216
|
</module>
|
217
|
+
<module name="CommentsIndentation"/>
|
127
218
|
</module>
|
128
219
|
</module>
|
@@ -0,0 +1,218 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE module PUBLIC
|
3
|
+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
+
|
6
|
+
<!--
|
7
|
+
Checkstyle configuration that checks the Google coding conventions from Google Java Style
|
8
|
+
that can be found at https://google.github.io/styleguide/javaguide.html.
|
9
|
+
|
10
|
+
Checkstyle is very configurable. Be sure to read the documentation at
|
11
|
+
http://checkstyle.sf.net (or in your downloaded distribution).
|
12
|
+
|
13
|
+
To completely disable a check, just comment it out or delete it from the file.
|
14
|
+
|
15
|
+
Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
|
16
|
+
-->
|
17
|
+
|
18
|
+
<module name = "Checker">
|
19
|
+
<property name="charset" value="UTF-8"/>
|
20
|
+
|
21
|
+
<property name="severity" value="warning"/>
|
22
|
+
|
23
|
+
<property name="fileExtensions" value="java, properties, xml"/>
|
24
|
+
<!-- Checks for whitespace -->
|
25
|
+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
|
26
|
+
<module name="FileTabCharacter">
|
27
|
+
<property name="eachLine" value="true"/>
|
28
|
+
</module>
|
29
|
+
|
30
|
+
<module name="TreeWalker">
|
31
|
+
<module name="OuterTypeFilename"/>
|
32
|
+
<module name="IllegalTokenText">
|
33
|
+
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
|
34
|
+
<property name="format" value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
|
35
|
+
<property name="message" value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
|
36
|
+
</module>
|
37
|
+
<module name="AvoidEscapedUnicodeCharacters">
|
38
|
+
<property name="allowEscapesForControlCharacters" value="true"/>
|
39
|
+
<property name="allowByTailComment" value="true"/>
|
40
|
+
<property name="allowNonPrintableEscapes" value="true"/>
|
41
|
+
</module>
|
42
|
+
<module name="LineLength">
|
43
|
+
<property name="max" value="100"/>
|
44
|
+
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
45
|
+
</module>
|
46
|
+
<module name="AvoidStarImport"/>
|
47
|
+
<module name="OneTopLevelClass"/>
|
48
|
+
<module name="NoLineWrap"/>
|
49
|
+
<module name="EmptyBlock">
|
50
|
+
<property name="option" value="TEXT"/>
|
51
|
+
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
|
52
|
+
</module>
|
53
|
+
<module name="NeedBraces"/>
|
54
|
+
<module name="LeftCurly">
|
55
|
+
<property name="maxLineLength" value="100"/>
|
56
|
+
</module>
|
57
|
+
<module name="RightCurly">
|
58
|
+
<property name="id" value="RightCurlySame"/>
|
59
|
+
<property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_DO"/>
|
60
|
+
</module>
|
61
|
+
<module name="RightCurly">
|
62
|
+
<property name="id" value="RightCurlyAlone"/>
|
63
|
+
<property name="option" value="alone"/>
|
64
|
+
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
|
65
|
+
</module>
|
66
|
+
<module name="WhitespaceAround">
|
67
|
+
<property name="allowEmptyConstructors" value="true"/>
|
68
|
+
<property name="allowEmptyMethods" value="true"/>
|
69
|
+
<property name="allowEmptyTypes" value="true"/>
|
70
|
+
<property name="allowEmptyLoops" value="true"/>
|
71
|
+
<message key="ws.notFollowed"
|
72
|
+
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
|
73
|
+
<message key="ws.notPreceded"
|
74
|
+
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
|
75
|
+
</module>
|
76
|
+
<module name="OneStatementPerLine"/>
|
77
|
+
<module name="MultipleVariableDeclarations"/>
|
78
|
+
<module name="ArrayTypeStyle"/>
|
79
|
+
<module name="MissingSwitchDefault"/>
|
80
|
+
<module name="FallThrough"/>
|
81
|
+
<module name="UpperEll"/>
|
82
|
+
<module name="ModifierOrder"/>
|
83
|
+
<module name="EmptyLineSeparator">
|
84
|
+
<property name="allowNoEmptyLineBetweenFields" value="true"/>
|
85
|
+
</module>
|
86
|
+
<module name="SeparatorWrap">
|
87
|
+
<property name="id" value="SeparatorWrapDot"/>
|
88
|
+
<property name="tokens" value="DOT"/>
|
89
|
+
<property name="option" value="nl"/>
|
90
|
+
</module>
|
91
|
+
<module name="SeparatorWrap">
|
92
|
+
<property name="id" value="SeparatorWrapComma"/>
|
93
|
+
<property name="tokens" value="COMMA"/>
|
94
|
+
<property name="option" value="EOL"/>
|
95
|
+
</module>
|
96
|
+
<module name="PackageName">
|
97
|
+
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
|
98
|
+
<message key="name.invalidPattern"
|
99
|
+
value="Package name ''{0}'' must match pattern ''{1}''."/>
|
100
|
+
</module>
|
101
|
+
<module name="TypeName">
|
102
|
+
<message key="name.invalidPattern"
|
103
|
+
value="Type name ''{0}'' must match pattern ''{1}''."/>
|
104
|
+
</module>
|
105
|
+
<module name="MemberName">
|
106
|
+
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
|
107
|
+
<message key="name.invalidPattern"
|
108
|
+
value="Member name ''{0}'' must match pattern ''{1}''."/>
|
109
|
+
</module>
|
110
|
+
<module name="ParameterName">
|
111
|
+
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
112
|
+
<message key="name.invalidPattern"
|
113
|
+
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
|
114
|
+
</module>
|
115
|
+
<module name="CatchParameterName">
|
116
|
+
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
117
|
+
<message key="name.invalidPattern"
|
118
|
+
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
|
119
|
+
</module>
|
120
|
+
<module name="LocalVariableName">
|
121
|
+
<property name="tokens" value="VARIABLE_DEF"/>
|
122
|
+
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
123
|
+
<message key="name.invalidPattern"
|
124
|
+
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
|
125
|
+
</module>
|
126
|
+
<module name="ClassTypeParameterName">
|
127
|
+
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
128
|
+
<message key="name.invalidPattern"
|
129
|
+
value="Class type name ''{0}'' must match pattern ''{1}''."/>
|
130
|
+
</module>
|
131
|
+
<module name="MethodTypeParameterName">
|
132
|
+
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
133
|
+
<message key="name.invalidPattern"
|
134
|
+
value="Method type name ''{0}'' must match pattern ''{1}''."/>
|
135
|
+
</module>
|
136
|
+
<module name="InterfaceTypeParameterName">
|
137
|
+
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
138
|
+
<message key="name.invalidPattern"
|
139
|
+
value="Interface type name ''{0}'' must match pattern ''{1}''."/>
|
140
|
+
</module>
|
141
|
+
<module name="NoFinalizer"/>
|
142
|
+
<module name="GenericWhitespace">
|
143
|
+
<message key="ws.followed"
|
144
|
+
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
|
145
|
+
<message key="ws.preceded"
|
146
|
+
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
|
147
|
+
<message key="ws.illegalFollow"
|
148
|
+
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
|
149
|
+
<message key="ws.notPreceded"
|
150
|
+
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
|
151
|
+
</module>
|
152
|
+
<module name="Indentation">
|
153
|
+
<property name="basicOffset" value="2"/>
|
154
|
+
<property name="braceAdjustment" value="0"/>
|
155
|
+
<property name="caseIndent" value="2"/>
|
156
|
+
<property name="throwsIndent" value="4"/>
|
157
|
+
<property name="lineWrappingIndentation" value="4"/>
|
158
|
+
<property name="arrayInitIndent" value="2"/>
|
159
|
+
</module>
|
160
|
+
<module name="AbbreviationAsWordInName">
|
161
|
+
<property name="ignoreFinal" value="false"/>
|
162
|
+
<property name="allowedAbbreviationLength" value="1"/>
|
163
|
+
</module>
|
164
|
+
<module name="OverloadMethodsDeclarationOrder"/>
|
165
|
+
<module name="VariableDeclarationUsageDistance"/>
|
166
|
+
<module name="CustomImportOrder">
|
167
|
+
<property name="sortImportsInGroupAlphabetically" value="true"/>
|
168
|
+
<property name="separateLineBetweenGroups" value="true"/>
|
169
|
+
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
|
170
|
+
</module>
|
171
|
+
<module name="MethodParamPad"/>
|
172
|
+
<module name="ParenPad"/>
|
173
|
+
<module name="OperatorWrap">
|
174
|
+
<property name="option" value="NL"/>
|
175
|
+
<property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
|
176
|
+
</module>
|
177
|
+
<module name="AnnotationLocation">
|
178
|
+
<property name="id" value="AnnotationLocationMostCases"/>
|
179
|
+
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
|
180
|
+
</module>
|
181
|
+
<module name="AnnotationLocation">
|
182
|
+
<property name="id" value="AnnotationLocationVariables"/>
|
183
|
+
<property name="tokens" value="VARIABLE_DEF"/>
|
184
|
+
<property name="allowSamelineMultipleAnnotations" value="true"/>
|
185
|
+
</module>
|
186
|
+
<module name="NonEmptyAtclauseDescription"/>
|
187
|
+
<module name="JavadocTagContinuationIndentation"/>
|
188
|
+
<module name="SummaryJavadoc">
|
189
|
+
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
|
190
|
+
</module>
|
191
|
+
<module name="JavadocParagraph"/>
|
192
|
+
<module name="AtclauseOrder">
|
193
|
+
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
|
194
|
+
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
|
195
|
+
</module>
|
196
|
+
<module name="JavadocMethod">
|
197
|
+
<property name="scope" value="public"/>
|
198
|
+
<property name="allowMissingParamTags" value="true"/>
|
199
|
+
<property name="allowMissingThrowsTags" value="true"/>
|
200
|
+
<property name="allowMissingReturnTag" value="true"/>
|
201
|
+
<property name="minLineCount" value="2"/>
|
202
|
+
<property name="allowedAnnotations" value="Override, Test"/>
|
203
|
+
<property name="allowThrowsTagsForSubclasses" value="true"/>
|
204
|
+
</module>
|
205
|
+
<module name="MethodName">
|
206
|
+
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
|
207
|
+
<message key="name.invalidPattern"
|
208
|
+
value="Method name ''{0}'' must match pattern ''{1}''."/>
|
209
|
+
</module>
|
210
|
+
<module name="SingleLineJavadoc">
|
211
|
+
<property name="ignoreInlineTags" value="false"/>
|
212
|
+
</module>
|
213
|
+
<module name="EmptyCatchBlock">
|
214
|
+
<property name="exceptionVariableName" value="expected"/>
|
215
|
+
</module>
|
216
|
+
<module name="CommentsIndentation"/>
|
217
|
+
</module>
|
218
|
+
</module>
|