embulk-output-send_email 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0ad269786255162b0dde2853c30d0bd12d6817672b2cc5773b6efc72d536f98
4
- data.tar.gz: 38c326b157f949ac5f3659902ea84e24cb8ba1cc36b0e7488b95916d4d3aa8c8
3
+ metadata.gz: 118660efc733c52bfa77b33776ba57a70edb2232799d02cc594390ea8d771a24
4
+ data.tar.gz: 5a8204672003c5130606d455fa673f8a7022f02def287bb750f556697bbd1320
5
5
  SHA512:
6
- metadata.gz: bc7928125442792ef66f272c85c615df24ba64da2ab8ed9c92d132d2dceac77b51530f662fe67c1de6673a36976cd36e6730fbca2d1ee46b1fa670a38f51e4b2
7
- data.tar.gz: 4fb22fc2bbd4bfffd431efdc57e2a89834eb2248dd84ec61bf51b1f16055e823877487594774e0a0475cb58e83b48446bfb0122b8a726af9b5fe40e78a739a2c
6
+ metadata.gz: 1a1c91336cf0df5a30711accc4120981c9117d6d4f0c15008b60e0e53fe071e613b778a6954ec74fd9f9b8a6717de2fe50a73457ca5e48b6b98214501a03d2c6
7
+ data.tar.gz: 4fd499e5b9fccabe1ba8a2040c64bedc0cc35b96a03ea6f44908ce65d277a1d5daf7efe4be1a39c7b9feb7de2ed1bd4058ec3a35042198b1f9bba7629420ee85
data/.gitignore CHANGED
@@ -1,12 +1,12 @@
1
- *~
2
- /pkg/
3
- /tmp/
4
- *.gemspec
5
- .gradle/
6
- /classpath/
7
- build/
8
- .idea
9
- /.settings/
10
- /.metadata/
11
- .classpath
12
- .project
1
+ *~
2
+ /pkg/
3
+ /tmp/
4
+ *.gemspec
5
+ .gradle/
6
+ /classpath/
7
+ build/
8
+ .idea
9
+ /.settings/
10
+ /.metadata/
11
+ .classpath
12
+ .project
data/LICENSE CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2022 InfoObjects
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
1
+ Copyright (c) 2022 InfoObjects
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
22
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -13,17 +13,26 @@ An output plugin for Embulk to send email with data
13
13
 
14
14
  - **send_email**: Required attribute for this output plugin
15
15
  - **to**: To whom you want to send email mention the email ID(required)
16
+ - **cc**: Mail id of others to send carbon copy
16
17
  - **from**: From which email ID you want to send (required)
17
18
  - **password**: Password of your email ID from which you want to send (required)
18
19
  - **port**: Port of email (for gmail its `587`)(required)
20
+ - **username**: Username of authentic user (required)
19
21
  - **host**: Host of your email (For gmail `smtp.gmail.com`) (required)
20
- - **row**: How many row you want to send with email mention like 1,2,3(required)
21
- - **file_type**: Mention file type like (example: json,html) (required)
22
-
22
+ - **subject**: Subject for the mail body
23
+ - **row**: How many row you want to send with email mention like 1,2,3
24
+ - **format_type**: Mention file type like (example: json,html) (required)
25
+ - **protocol**: TLSv1.2 (required)
26
+ - **auth**: When authentication is required make it 'true' otherwise default it is 'false'
27
+ - **enable_starttls**: true/ false (required)
28
+ - **template**: If format_type is 'html', provide here the path of .html/ .txt
29
+ - **is_html**: If template is 'html' put it true, if it is 'txt' put it as false, by default it is false
30
+
31
+ ```NOTE: If format_type is html and path is given in field 'template', make sure - The templates should have '{{data}}' placeholder so that the data generated by send_email plugin will be put here```
32
+
23
33
  ## Example - columns
24
34
 
25
35
  Say input.csv is as follows:
26
-
27
36
 
28
37
  ```
29
38
  year country_code country_name literacy_rate
@@ -43,13 +52,22 @@ Say input.csv is as follows:
43
52
  ```yaml
44
53
  out:
45
54
  type: send_email
46
- to: abc@example.com
47
- from: abc@example.com
48
- password: XXXXXX
55
+ to:
56
+ - abc@gmail.com
57
+ - def@gmail.com
58
+ from: pqr@gmail.com
59
+ password: password
49
60
  port: 587
61
+ username: pqr@gmail.com
50
62
  host: smtp.gmail.com
63
+ subject: XYZ123
51
64
  row: 3
52
- filetype: html
65
+ format_type: html
66
+ protocol: TLSv1.2
67
+ auth: true
68
+ enable_starttls: true
69
+ template: C:\Users\Abhishek Gupta\Desktop\github\embulk-output-send_email\example\email.txt
70
+ is_html: false
53
71
  ```
54
72
 
55
73
 
data/build.gradle CHANGED
@@ -1,102 +1,103 @@
1
- plugins {
2
- id "com.jfrog.bintray" version "1.1"
3
- id "com.github.jruby-gradle.base" version "1.5.0"
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 = "0.1.3"
17
-
18
- sourceCompatibility = 1.8
19
- targetCompatibility = 1.8
20
-
21
- dependencies {
22
- compile "org.embulk:embulk-core:0.9.8"
23
- compile "javax.mail:mail:1.4.7"
24
- provided "org.embulk:embulk-core:0.9.8"
25
-
26
- // compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
27
- compile 'com.google.api-client:google-api-client-java6:1.26.0'
28
- compile 'com.google.apis:google-api-services-gmail:v1-rev83-1.23.0'
29
-
30
- testCompile "junit:junit:4.+"
31
- }
32
-
33
- task classpath(type: Copy, dependsOn: ["jar"]) {
34
- doFirst { file("classpath").deleteDir() }
35
- from (configurations.runtime - configurations.provided + files(jar.archivePath))
36
- into "classpath"
37
- }
38
- clean { delete "classpath" }
39
-
40
- checkstyle {
41
- configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
42
- toolVersion = '6.14.1'
43
- }
44
- checkstyleMain {
45
- configFile = file("${project.rootDir}/config/checkstyle/default.xml")
46
- ignoreFailures = true
47
- }
48
- checkstyleTest {
49
- configFile = file("${project.rootDir}/config/checkstyle/default.xml")
50
- ignoreFailures = true
51
- }
52
- task checkstyle(type: Checkstyle) {
53
- classpath = sourceSets.main.output + sourceSets.test.output
54
- source = sourceSets.main.allJava + sourceSets.test.allJava
55
- }
56
-
57
- task gem(type: JRubyExec, dependsOn: ["gemspec", "classpath"]) {
58
- jrubyArgs "-S"
59
- script "gem"
60
- scriptArgs "build", "${project.name}.gemspec"
61
- doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }
62
- }
63
-
64
- task gemPush(type: JRubyExec, dependsOn: ["gem"]) {
65
- jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "push"
66
- script "pkg/${project.name}-${project.version}.gem"
67
- }
68
-
69
- task "package"(dependsOn: ["gemspec", "classpath"]) {
70
- doLast {
71
- println "> Build succeeded."
72
- println "> You can run embulk with '-L ${file(".").absolutePath}' argument."
73
- }
74
- }
75
-
76
- task gemspec {
77
- ext.gemspecFile = file("${project.name}.gemspec")
78
- inputs.file "build.gradle"
79
- outputs.file gemspecFile
80
- doLast { gemspecFile.write($/
81
- Gem::Specification.new do |spec|
82
- spec.name = "${project.name}"
83
- spec.version = "${project.version}"
84
- spec.authors = ["Infoobjects Inc."]
85
- spec.summary = %[An output plugin for Embulk to send email with data]
86
- spec.description = %[Output plugin to Send Email.]
87
- spec.email = ["utkarsh@infoobjects.com"]
88
- spec.licenses = ["MIT"]
89
- # TODO set this: spec.homepage = "https://github.com/InfoObjects/embulk-output-send_email"
90
-
91
- spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
92
- spec.test_files = spec.files.grep(%r"^(test|spec)/")
93
- spec.require_paths = ["lib"]
94
-
95
- #spec.add_dependency 'YOUR_GEM_DEPENDENCY', ['~> YOUR_GEM_DEPENDENCY_VERSION']
96
- spec.add_development_dependency 'bundler', ['~> 1.0']
97
- spec.add_development_dependency 'rake', ['~> 12.0']
98
- end
99
- /$)
100
- }
101
- }
102
- clean { delete "${project.name}.gemspec" }
1
+ plugins {
2
+ id "com.jfrog.bintray" version "1.1"
3
+ id "com.github.jruby-gradle.base" version "1.5.0"
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 = "0.1.5"
17
+
18
+ sourceCompatibility = 1.8
19
+ targetCompatibility = 1.8
20
+
21
+ dependencies {
22
+ compile "org.embulk:embulk-core:0.9.8"
23
+ compile "javax.mail:mail:1.4.7"
24
+ compile 'org.jsoup:jsoup:1.10.3'
25
+ provided "org.embulk:embulk-core:0.9.8"
26
+
27
+ // compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
28
+ compile 'com.google.api-client:google-api-client-java6:1.26.0'
29
+ compile 'com.google.apis:google-api-services-gmail:v1-rev83-1.23.0'
30
+
31
+ testCompile "junit:junit:4.+"
32
+ }
33
+
34
+ task classpath(type: Copy, dependsOn: ["jar"]) {
35
+ doFirst { file("classpath").deleteDir() }
36
+ from (configurations.runtime - configurations.provided + files(jar.archivePath))
37
+ into "classpath"
38
+ }
39
+ clean { delete "classpath" }
40
+
41
+ checkstyle {
42
+ configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
43
+ toolVersion = '6.14.1'
44
+ }
45
+ checkstyleMain {
46
+ configFile = file("${project.rootDir}/config/checkstyle/default.xml")
47
+ ignoreFailures = true
48
+ }
49
+ checkstyleTest {
50
+ configFile = file("${project.rootDir}/config/checkstyle/default.xml")
51
+ ignoreFailures = true
52
+ }
53
+ task checkstyle(type: Checkstyle) {
54
+ classpath = sourceSets.main.output + sourceSets.test.output
55
+ source = sourceSets.main.allJava + sourceSets.test.allJava
56
+ }
57
+
58
+ task gem(type: JRubyExec, dependsOn: ["gemspec", "classpath"]) {
59
+ jrubyArgs "-S"
60
+ script "gem"
61
+ scriptArgs "build", "${project.name}.gemspec"
62
+ doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }
63
+ }
64
+
65
+ task gemPush(type: JRubyExec, dependsOn: ["gem"]) {
66
+ jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "push"
67
+ script "pkg/${project.name}-${project.version}.gem"
68
+ }
69
+
70
+ task "package"(dependsOn: ["gemspec", "classpath"]) {
71
+ doLast {
72
+ println "> Build succeeded."
73
+ println "> You can run embulk with '-L ${file(".").absolutePath}' argument."
74
+ }
75
+ }
76
+
77
+ task gemspec {
78
+ ext.gemspecFile = file("${project.name}.gemspec")
79
+ inputs.file "build.gradle"
80
+ outputs.file gemspecFile
81
+ doLast { gemspecFile.write($/
82
+ Gem::Specification.new do |spec|
83
+ spec.name = "${project.name}"
84
+ spec.version = "${project.version}"
85
+ spec.authors = ["Infoobjects Inc."]
86
+ spec.summary = %[An output plugin for Embulk to send email with data]
87
+ spec.description = %[Output plugin to Send Email.]
88
+ spec.email = ["utkarsh@infoobjects.com"]
89
+ spec.licenses = ["MIT"]
90
+ # TODO set this: spec.homepage = "https://github.com/InfoObjects/embulk-output-send_email"
91
+
92
+ spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
93
+ spec.test_files = spec.files.grep(%r"^(test|spec)/")
94
+ spec.require_paths = ["lib"]
95
+
96
+ #spec.add_dependency 'YOUR_GEM_DEPENDENCY', ['~> YOUR_GEM_DEPENDENCY_VERSION']
97
+ spec.add_development_dependency 'bundler', ['~> 1.0']
98
+ spec.add_development_dependency 'rake', ['~> 12.0']
99
+ end
100
+ /$)
101
+ }
102
+ }
103
+ clean { delete "${project.name}.gemspec" }
Binary file
@@ -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>