embulk-output-s3 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +13 -13
- data/LICENSE.txt +0 -0
- data/README.md +60 -60
- data/build.gradle +77 -77
- data/config/checkstyle/checkstyle.xml +128 -128
- data/config/checkstyle/default.xml +108 -108
- data/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/gradle/wrapper/gradle-wrapper.properties +6 -6
- data/gradlew +0 -0
- data/lib/embulk/output/s3.rb +0 -0
- data/settings.gradle +1 -1
- data/src/main/java/org/embulk/output/S3FileOutputPlugin.java +298 -301
- data/src/test/java/org/embulk/output/TestS3FileOutputPlugin.java +0 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f60fa827c7b7dabc3d3e80a7408b00169ee4547
|
4
|
+
data.tar.gz: 028916eda060b243fa22bce5608e48049fb2edb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d1883290af301a74de2944ab006cdb75c6381007b2825b06693d9c8f0152e062044e37f97aea6a0553b8eba69785c518352fb13ba48fd76a894e7471eb7fa63
|
7
|
+
data.tar.gz: 2ff3773d9dff06db9e1f06da57279737373cfe2bc442e365d046705d79c12f63eec7c2501a998d0b5a3ebf7caa9adee3c4eb683604b9964bd851075666735629
|
data/.gitignore
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
*~
|
2
|
-
/pkg/
|
3
|
-
/tmp/
|
4
|
-
.gradle/
|
5
|
-
/classpath/
|
6
|
-
build/
|
7
|
-
.idea
|
8
|
-
.settings/
|
9
|
-
bin/
|
10
|
-
.classpath
|
11
|
-
.project
|
12
|
-
*.gemspec
|
13
|
-
*.iml
|
1
|
+
*~
|
2
|
+
/pkg/
|
3
|
+
/tmp/
|
4
|
+
.gradle/
|
5
|
+
/classpath/
|
6
|
+
build/
|
7
|
+
.idea
|
8
|
+
.settings/
|
9
|
+
bin/
|
10
|
+
.classpath
|
11
|
+
.project
|
12
|
+
*.gemspec
|
13
|
+
*.iml
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,60 +1,60 @@
|
|
1
|
-
# S3 file output plugin for Embulk
|
2
|
-
|
3
|
-
## Developers
|
4
|
-
|
5
|
-
* Manabu Takayama <learn.libra@gmail.com>
|
6
|
-
* toyama hiroshi <toyama0919@gmail.com>
|
7
|
-
* Civitaspo <civitaspo@gmail.com>
|
8
|
-
|
9
|
-
## Overview
|
10
|
-
|
11
|
-
* **Plugin type**: file output
|
12
|
-
* **Load all or nothing**: no
|
13
|
-
* **Resume supported**: yes
|
14
|
-
* **Cleanup supported**: yes
|
15
|
-
|
16
|
-
## Configuration
|
17
|
-
|
18
|
-
- **path_prefix**: prefix of target keys (string, required)
|
19
|
-
- **file_ext**: suffix of target keys (string, required)
|
20
|
-
- **sequence_format**: format for sequence part of target keys (string, default: '.%03d.%02d')
|
21
|
-
- **bucket**: S3 bucket name (string, required)
|
22
|
-
- **endpoint**: S3 endpoint login user name (string, optional)
|
23
|
-
- **access_key_id**: AWS access key id. This parameter is required when your agent is not running on EC2 instance with an IAM Role. (string, defualt: null)
|
24
|
-
- **secret_access_key**: AWS secret key. This parameter is required when your agent is not running on EC2 instance with an IAM Role. (string, defualt: null)
|
25
|
-
- **tmp_path_prefix**: prefix of temporary files (string, default: 'embulk-output-s3-')
|
26
|
-
- **canned_acl**: canned access control list for created objects ([enum](#cannedaccesscontrollist), default: null)
|
27
|
-
|
28
|
-
### CannedAccessControlList
|
29
|
-
you can choose one of the below list.
|
30
|
-
|
31
|
-
- AuthenticatedRead
|
32
|
-
- AwsExecRead
|
33
|
-
- BucketOwnerFullControl
|
34
|
-
- BucketOwnerRead
|
35
|
-
- LogDeliveryWrite
|
36
|
-
- Private
|
37
|
-
- PublicRead
|
38
|
-
- PublicReadWrite
|
39
|
-
|
40
|
-
cf. http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/CannedAccessControlList.html
|
41
|
-
|
42
|
-
## Example
|
43
|
-
|
44
|
-
```yaml
|
45
|
-
path_prefix: logs/out
|
46
|
-
file_ext: .csv
|
47
|
-
bucket: my-s3-bucket
|
48
|
-
endpoint: s3-us-west-1.amazonaws.com
|
49
|
-
access_key_id: ABCXYZ123ABCXYZ123
|
50
|
-
secret_access_key: AbCxYz123aBcXyZ123
|
51
|
-
formatter:
|
52
|
-
type: csv
|
53
|
-
```
|
54
|
-
|
55
|
-
|
56
|
-
## Build
|
57
|
-
|
58
|
-
```
|
59
|
-
$ ./gradlew gem
|
60
|
-
```
|
1
|
+
# S3 file output plugin for Embulk
|
2
|
+
|
3
|
+
## Developers
|
4
|
+
|
5
|
+
* Manabu Takayama <learn.libra@gmail.com>
|
6
|
+
* toyama hiroshi <toyama0919@gmail.com>
|
7
|
+
* Civitaspo <civitaspo@gmail.com>
|
8
|
+
|
9
|
+
## Overview
|
10
|
+
|
11
|
+
* **Plugin type**: file output
|
12
|
+
* **Load all or nothing**: no
|
13
|
+
* **Resume supported**: yes
|
14
|
+
* **Cleanup supported**: yes
|
15
|
+
|
16
|
+
## Configuration
|
17
|
+
|
18
|
+
- **path_prefix**: prefix of target keys (string, required)
|
19
|
+
- **file_ext**: suffix of target keys (string, required)
|
20
|
+
- **sequence_format**: format for sequence part of target keys (string, default: '.%03d.%02d')
|
21
|
+
- **bucket**: S3 bucket name (string, required)
|
22
|
+
- **endpoint**: S3 endpoint login user name (string, optional)
|
23
|
+
- **access_key_id**: AWS access key id. This parameter is required when your agent is not running on EC2 instance with an IAM Role. (string, defualt: null)
|
24
|
+
- **secret_access_key**: AWS secret key. This parameter is required when your agent is not running on EC2 instance with an IAM Role. (string, defualt: null)
|
25
|
+
- **tmp_path_prefix**: prefix of temporary files (string, default: 'embulk-output-s3-')
|
26
|
+
- **canned_acl**: canned access control list for created objects ([enum](#cannedaccesscontrollist), default: null)
|
27
|
+
|
28
|
+
### CannedAccessControlList
|
29
|
+
you can choose one of the below list.
|
30
|
+
|
31
|
+
- AuthenticatedRead
|
32
|
+
- AwsExecRead
|
33
|
+
- BucketOwnerFullControl
|
34
|
+
- BucketOwnerRead
|
35
|
+
- LogDeliveryWrite
|
36
|
+
- Private
|
37
|
+
- PublicRead
|
38
|
+
- PublicReadWrite
|
39
|
+
|
40
|
+
cf. http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/CannedAccessControlList.html
|
41
|
+
|
42
|
+
## Example
|
43
|
+
|
44
|
+
```yaml
|
45
|
+
path_prefix: logs/out
|
46
|
+
file_ext: .csv
|
47
|
+
bucket: my-s3-bucket
|
48
|
+
endpoint: s3-us-west-1.amazonaws.com
|
49
|
+
access_key_id: ABCXYZ123ABCXYZ123
|
50
|
+
secret_access_key: AbCxYz123aBcXyZ123
|
51
|
+
formatter:
|
52
|
+
type: csv
|
53
|
+
```
|
54
|
+
|
55
|
+
|
56
|
+
## Build
|
57
|
+
|
58
|
+
```
|
59
|
+
$ ./gradlew gem
|
60
|
+
```
|
data/build.gradle
CHANGED
@@ -1,77 +1,77 @@
|
|
1
|
-
plugins {
|
2
|
-
id "com.jfrog.bintray" version "1.1"
|
3
|
-
id "com.github.jruby-gradle.base" version "0.1.5"
|
4
|
-
id "java"
|
5
|
-
id "checkstyle"
|
6
|
-
}
|
7
|
-
import com.github.jrubygradle.JRubyExec
|
8
|
-
repositories {
|
9
|
-
mavenCentral()
|
10
|
-
jcenter()
|
11
|
-
}
|
12
|
-
configurations {
|
13
|
-
provided
|
14
|
-
}
|
15
|
-
|
16
|
-
version = "1.
|
17
|
-
|
18
|
-
sourceCompatibility = 1.7
|
19
|
-
targetCompatibility = 1.7
|
20
|
-
|
21
|
-
dependencies {
|
22
|
-
compile "org.embulk:embulk-core:0.8.1"
|
23
|
-
provided "org.embulk:embulk-core:0.8.1"
|
24
|
-
compile "com.amazonaws:aws-java-sdk-s3:1.10.26"
|
25
|
-
testCompile "junit:junit:4.+"
|
26
|
-
}
|
27
|
-
|
28
|
-
task classpath(type: Copy, dependsOn: ["jar"]) {
|
29
|
-
doFirst { file("classpath").deleteDir() }
|
30
|
-
from (configurations.runtime - configurations.provided + files(jar.archivePath))
|
31
|
-
into "classpath"
|
32
|
-
}
|
33
|
-
clean { delete 'classpath' }
|
34
|
-
|
35
|
-
checkstyle {
|
36
|
-
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
|
37
|
-
toolVersion = '6.14.1'
|
38
|
-
}
|
39
|
-
checkstyleMain {
|
40
|
-
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
41
|
-
ignoreFailures = true
|
42
|
-
}
|
43
|
-
checkstyleTest {
|
44
|
-
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
45
|
-
ignoreFailures = true
|
46
|
-
}
|
47
|
-
task checkstyle(type: Checkstyle) {
|
48
|
-
classpath = sourceSets.main.output + sourceSets.test.output
|
49
|
-
source = sourceSets.main.allJava + sourceSets.test.allJava
|
50
|
-
}
|
51
|
-
|
52
|
-
task gem(type: JRubyExec, dependsOn: ["build", "gemspec", "classpath"]) {
|
53
|
-
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "build"
|
54
|
-
script "build/gemspec"
|
55
|
-
doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }
|
56
|
-
}
|
57
|
-
|
58
|
-
task gemspec << { file("build/gemspec").write($/
|
59
|
-
Gem::Specification.new do |spec|
|
60
|
-
spec.name = "${project.name}"
|
61
|
-
spec.version = "${project.version}"
|
62
|
-
spec.authors = ["Manabu Takayama"]
|
63
|
-
spec.summary = %[S3 file output plugin for Embulk]
|
64
|
-
spec.description = %[Stores files on S3.]
|
65
|
-
spec.email = ["learn.libra@gmail.com"]
|
66
|
-
spec.licenses = ["MIT"]
|
67
|
-
spec.homepage = "https://github.com/llibra/embulk-output-s3"
|
68
|
-
|
69
|
-
spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
|
70
|
-
spec.test_files = spec.files.grep(%r"^(test|spec)/")
|
71
|
-
spec.require_paths = ["lib"]
|
72
|
-
|
73
|
-
spec.add_development_dependency 'bundler', ['~> 1.0']
|
74
|
-
spec.add_development_dependency 'rake', ['>= 10.0']
|
75
|
-
end
|
76
|
-
/$)
|
77
|
-
}
|
1
|
+
plugins {
|
2
|
+
id "com.jfrog.bintray" version "1.1"
|
3
|
+
id "com.github.jruby-gradle.base" version "0.1.5"
|
4
|
+
id "java"
|
5
|
+
id "checkstyle"
|
6
|
+
}
|
7
|
+
import com.github.jrubygradle.JRubyExec
|
8
|
+
repositories {
|
9
|
+
mavenCentral()
|
10
|
+
jcenter()
|
11
|
+
}
|
12
|
+
configurations {
|
13
|
+
provided
|
14
|
+
}
|
15
|
+
|
16
|
+
version = "1.3.0"
|
17
|
+
|
18
|
+
sourceCompatibility = 1.7
|
19
|
+
targetCompatibility = 1.7
|
20
|
+
|
21
|
+
dependencies {
|
22
|
+
compile "org.embulk:embulk-core:0.8.1"
|
23
|
+
provided "org.embulk:embulk-core:0.8.1"
|
24
|
+
compile "com.amazonaws:aws-java-sdk-s3:1.10.26"
|
25
|
+
testCompile "junit:junit:4.+"
|
26
|
+
}
|
27
|
+
|
28
|
+
task classpath(type: Copy, dependsOn: ["jar"]) {
|
29
|
+
doFirst { file("classpath").deleteDir() }
|
30
|
+
from (configurations.runtime - configurations.provided + files(jar.archivePath))
|
31
|
+
into "classpath"
|
32
|
+
}
|
33
|
+
clean { delete 'classpath' }
|
34
|
+
|
35
|
+
checkstyle {
|
36
|
+
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
|
37
|
+
toolVersion = '6.14.1'
|
38
|
+
}
|
39
|
+
checkstyleMain {
|
40
|
+
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
41
|
+
ignoreFailures = true
|
42
|
+
}
|
43
|
+
checkstyleTest {
|
44
|
+
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
|
45
|
+
ignoreFailures = true
|
46
|
+
}
|
47
|
+
task checkstyle(type: Checkstyle) {
|
48
|
+
classpath = sourceSets.main.output + sourceSets.test.output
|
49
|
+
source = sourceSets.main.allJava + sourceSets.test.allJava
|
50
|
+
}
|
51
|
+
|
52
|
+
task gem(type: JRubyExec, dependsOn: ["build", "gemspec", "classpath"]) {
|
53
|
+
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "build"
|
54
|
+
script "build/gemspec"
|
55
|
+
doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }
|
56
|
+
}
|
57
|
+
|
58
|
+
task gemspec << { file("build/gemspec").write($/
|
59
|
+
Gem::Specification.new do |spec|
|
60
|
+
spec.name = "${project.name}"
|
61
|
+
spec.version = "${project.version}"
|
62
|
+
spec.authors = ["Manabu Takayama"]
|
63
|
+
spec.summary = %[S3 file output plugin for Embulk]
|
64
|
+
spec.description = %[Stores files on S3.]
|
65
|
+
spec.email = ["learn.libra@gmail.com"]
|
66
|
+
spec.licenses = ["MIT"]
|
67
|
+
spec.homepage = "https://github.com/llibra/embulk-output-s3"
|
68
|
+
|
69
|
+
spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
|
70
|
+
spec.test_files = spec.files.grep(%r"^(test|spec)/")
|
71
|
+
spec.require_paths = ["lib"]
|
72
|
+
|
73
|
+
spec.add_development_dependency 'bundler', ['~> 1.0']
|
74
|
+
spec.add_development_dependency 'rake', ['>= 10.0']
|
75
|
+
end
|
76
|
+
/$)
|
77
|
+
}
|
@@ -1,128 +1,128 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE module PUBLIC
|
3
|
-
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
-
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
-
<module name="Checker">
|
6
|
-
<!-- https://github.com/facebook/presto/blob/master/src/checkstyle/checks.xml -->
|
7
|
-
<module name="FileTabCharacter"/>
|
8
|
-
<module name="NewlineAtEndOfFile">
|
9
|
-
<property name="lineSeparator" value="lf"/>
|
10
|
-
</module>
|
11
|
-
<module name="RegexpMultiline">
|
12
|
-
<property name="format" value="\r"/>
|
13
|
-
<property name="message" value="Line contains carriage return"/>
|
14
|
-
</module>
|
15
|
-
<module name="RegexpMultiline">
|
16
|
-
<property name="format" value=" \n"/>
|
17
|
-
<property name="message" value="Line has trailing whitespace"/>
|
18
|
-
</module>
|
19
|
-
<module name="RegexpMultiline">
|
20
|
-
<property name="format" value="\{\n\n"/>
|
21
|
-
<property name="message" value="Blank line after opening brace"/>
|
22
|
-
</module>
|
23
|
-
<module name="RegexpMultiline">
|
24
|
-
<property name="format" value="\n\n\s*\}"/>
|
25
|
-
<property name="message" value="Blank line before closing brace"/>
|
26
|
-
</module>
|
27
|
-
<module name="RegexpMultiline">
|
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"/>
|
38
|
-
</module>
|
39
|
-
|
40
|
-
<module name="TreeWalker">
|
41
|
-
<module name="EmptyBlock">
|
42
|
-
<property name="option" value="text"/>
|
43
|
-
<property name="tokens" value="
|
44
|
-
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF,
|
45
|
-
LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
|
46
|
-
</module>
|
47
|
-
<module name="EmptyStatement"/>
|
48
|
-
<module name="EmptyForInitializerPad"/>
|
49
|
-
<module name="EmptyForIteratorPad">
|
50
|
-
<property name="option" value="space"/>
|
51
|
-
</module>
|
52
|
-
<module name="MethodParamPad">
|
53
|
-
<property name="allowLineBreaks" value="true"/>
|
54
|
-
<property name="option" value="nospace"/>
|
55
|
-
</module>
|
56
|
-
<module name="ParenPad"/>
|
57
|
-
<module name="TypecastParenPad"/>
|
58
|
-
<module name="NeedBraces"/>
|
59
|
-
<module name="LeftCurly">
|
60
|
-
<property name="option" value="nl"/>
|
61
|
-
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
62
|
-
</module>
|
63
|
-
<module name="LeftCurly">
|
64
|
-
<property name="option" value="eol"/>
|
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"/>
|
68
|
-
</module>
|
69
|
-
<module name="RightCurly">
|
70
|
-
<property name="option" value="alone"/>
|
71
|
-
</module>
|
72
|
-
<module name="GenericWhitespace"/>
|
73
|
-
<module name="WhitespaceAfter"/>
|
74
|
-
<module name="NoWhitespaceBefore"/>
|
75
|
-
|
76
|
-
<module name="UpperEll"/>
|
77
|
-
<module name="DefaultComesLast"/>
|
78
|
-
<module name="ArrayTypeStyle"/>
|
79
|
-
<module name="MultipleVariableDeclarations"/>
|
80
|
-
<module name="ModifierOrder"/>
|
81
|
-
<module name="OneStatementPerLine"/>
|
82
|
-
<module name="StringLiteralEquality"/>
|
83
|
-
<module name="MutableException"/>
|
84
|
-
<module name="EqualsHashCode"/>
|
85
|
-
<module name="InnerAssignment"/>
|
86
|
-
<module name="InterfaceIsType"/>
|
87
|
-
<module name="HideUtilityClassConstructor"/>
|
88
|
-
|
89
|
-
<module name="MemberName"/>
|
90
|
-
<module name="LocalVariableName"/>
|
91
|
-
<module name="LocalFinalVariableName"/>
|
92
|
-
<module name="TypeName"/>
|
93
|
-
<module name="PackageName"/>
|
94
|
-
<module name="ParameterName"/>
|
95
|
-
<module name="StaticVariableName"/>
|
96
|
-
<module name="ClassTypeParameterName">
|
97
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
98
|
-
</module>
|
99
|
-
<module name="MethodTypeParameterName">
|
100
|
-
<property name="format" value="^[A-Z][0-9]?$"/>
|
101
|
-
</module>
|
102
|
-
|
103
|
-
<module name="AvoidStarImport"/>
|
104
|
-
<module name="RedundantImport"/>
|
105
|
-
<module name="UnusedImports"/>
|
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"/>
|
111
|
-
</module>
|
112
|
-
|
113
|
-
<module name="WhitespaceAround">
|
114
|
-
<property name="allowEmptyConstructors" value="true"/>
|
115
|
-
<property name="allowEmptyMethods" value="true"/>
|
116
|
-
<property name="ignoreEnhancedForColon" value="false"/>
|
117
|
-
<property name="tokens" value="
|
118
|
-
ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
|
119
|
-
BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE,
|
120
|
-
LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
|
121
|
-
LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
|
122
|
-
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE,
|
123
|
-
LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL,
|
124
|
-
PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN,
|
125
|
-
STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
|
126
|
-
</module>
|
127
|
-
</module>
|
128
|
-
</module>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE module PUBLIC
|
3
|
+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
4
|
+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
5
|
+
<module name="Checker">
|
6
|
+
<!-- https://github.com/facebook/presto/blob/master/src/checkstyle/checks.xml -->
|
7
|
+
<module name="FileTabCharacter"/>
|
8
|
+
<module name="NewlineAtEndOfFile">
|
9
|
+
<property name="lineSeparator" value="lf"/>
|
10
|
+
</module>
|
11
|
+
<module name="RegexpMultiline">
|
12
|
+
<property name="format" value="\r"/>
|
13
|
+
<property name="message" value="Line contains carriage return"/>
|
14
|
+
</module>
|
15
|
+
<module name="RegexpMultiline">
|
16
|
+
<property name="format" value=" \n"/>
|
17
|
+
<property name="message" value="Line has trailing whitespace"/>
|
18
|
+
</module>
|
19
|
+
<module name="RegexpMultiline">
|
20
|
+
<property name="format" value="\{\n\n"/>
|
21
|
+
<property name="message" value="Blank line after opening brace"/>
|
22
|
+
</module>
|
23
|
+
<module name="RegexpMultiline">
|
24
|
+
<property name="format" value="\n\n\s*\}"/>
|
25
|
+
<property name="message" value="Blank line before closing brace"/>
|
26
|
+
</module>
|
27
|
+
<module name="RegexpMultiline">
|
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"/>
|
38
|
+
</module>
|
39
|
+
|
40
|
+
<module name="TreeWalker">
|
41
|
+
<module name="EmptyBlock">
|
42
|
+
<property name="option" value="text"/>
|
43
|
+
<property name="tokens" value="
|
44
|
+
LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF,
|
45
|
+
LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, INSTANCE_INIT, STATIC_INIT"/>
|
46
|
+
</module>
|
47
|
+
<module name="EmptyStatement"/>
|
48
|
+
<module name="EmptyForInitializerPad"/>
|
49
|
+
<module name="EmptyForIteratorPad">
|
50
|
+
<property name="option" value="space"/>
|
51
|
+
</module>
|
52
|
+
<module name="MethodParamPad">
|
53
|
+
<property name="allowLineBreaks" value="true"/>
|
54
|
+
<property name="option" value="nospace"/>
|
55
|
+
</module>
|
56
|
+
<module name="ParenPad"/>
|
57
|
+
<module name="TypecastParenPad"/>
|
58
|
+
<module name="NeedBraces"/>
|
59
|
+
<module name="LeftCurly">
|
60
|
+
<property name="option" value="nl"/>
|
61
|
+
<property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, METHOD_DEF"/>
|
62
|
+
</module>
|
63
|
+
<module name="LeftCurly">
|
64
|
+
<property name="option" value="eol"/>
|
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"/>
|
68
|
+
</module>
|
69
|
+
<module name="RightCurly">
|
70
|
+
<property name="option" value="alone"/>
|
71
|
+
</module>
|
72
|
+
<module name="GenericWhitespace"/>
|
73
|
+
<module name="WhitespaceAfter"/>
|
74
|
+
<module name="NoWhitespaceBefore"/>
|
75
|
+
|
76
|
+
<module name="UpperEll"/>
|
77
|
+
<module name="DefaultComesLast"/>
|
78
|
+
<module name="ArrayTypeStyle"/>
|
79
|
+
<module name="MultipleVariableDeclarations"/>
|
80
|
+
<module name="ModifierOrder"/>
|
81
|
+
<module name="OneStatementPerLine"/>
|
82
|
+
<module name="StringLiteralEquality"/>
|
83
|
+
<module name="MutableException"/>
|
84
|
+
<module name="EqualsHashCode"/>
|
85
|
+
<module name="InnerAssignment"/>
|
86
|
+
<module name="InterfaceIsType"/>
|
87
|
+
<module name="HideUtilityClassConstructor"/>
|
88
|
+
|
89
|
+
<module name="MemberName"/>
|
90
|
+
<module name="LocalVariableName"/>
|
91
|
+
<module name="LocalFinalVariableName"/>
|
92
|
+
<module name="TypeName"/>
|
93
|
+
<module name="PackageName"/>
|
94
|
+
<module name="ParameterName"/>
|
95
|
+
<module name="StaticVariableName"/>
|
96
|
+
<module name="ClassTypeParameterName">
|
97
|
+
<property name="format" value="^[A-Z][0-9]?$"/>
|
98
|
+
</module>
|
99
|
+
<module name="MethodTypeParameterName">
|
100
|
+
<property name="format" value="^[A-Z][0-9]?$"/>
|
101
|
+
</module>
|
102
|
+
|
103
|
+
<module name="AvoidStarImport"/>
|
104
|
+
<module name="RedundantImport"/>
|
105
|
+
<module name="UnusedImports"/>
|
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"/>
|
111
|
+
</module>
|
112
|
+
|
113
|
+
<module name="WhitespaceAround">
|
114
|
+
<property name="allowEmptyConstructors" value="true"/>
|
115
|
+
<property name="allowEmptyMethods" value="true"/>
|
116
|
+
<property name="ignoreEnhancedForColon" value="false"/>
|
117
|
+
<property name="tokens" value="
|
118
|
+
ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN,
|
119
|
+
BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE,
|
120
|
+
LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE,
|
121
|
+
LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN,
|
122
|
+
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE,
|
123
|
+
LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL,
|
124
|
+
PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN,
|
125
|
+
STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
|
126
|
+
</module>
|
127
|
+
</module>
|
128
|
+
</module>
|