Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
2282fcac
Unverified
Commit
2282fcac
authored
Oct 15, 2022
by
skylines
Committed by
GitHub
Oct 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add spotless plugin (#1105)
Co-authored-by:
rookiegao
<
rookiegao712@gmail
>
parent
02e300f0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
149 additions
and
20 deletions
+149
-20
DlinkMysqlCatalog.java
.../main/java/com/dlink/flink/catalog/DlinkMysqlCatalog.java
+0
-0
pom.xml
dlink-catalog/pom.xml
+6
-9
pom.xml
pom.xml
+67
-11
eclipse.importorder
style/eclipse.importorder
+24
-0
spotless_dlink_formatter.xml
style/spotless_dlink_formatter.xml
+52
-0
No files found.
dlink-catalog/dlink-catalog-mysql/dlink-catalog-mysql-1.14/src/main/java/com/dlink/flink/catalog/DlinkMysqlCatalog.java
View file @
2282fcac
This diff is collapsed.
Click to expand it.
dlink-catalog/pom.xml
View file @
2282fcac
...
@@ -15,21 +15,19 @@
...
@@ -15,21 +15,19 @@
~ See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and
~ limitations under the License.
~ limitations under the License.
-->
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<parent>
<artifactId>
dlink
</artifactId>
<groupId>
com.dlink
</groupId>
<groupId>
com.dlink
</groupId>
<artifactId>
dlink
</artifactId>
<version>
0.6.8-SNAPSHOT
</version>
<version>
0.6.8-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<packaging>
pom
</packaging>
<artifactId>
dlink-catalog
</artifactId>
<artifactId>
dlink-catalog
</artifactId>
<packaging>
pom
</packaging>
<modules>
<modules>
<module>
dlink-catalog-mysql
</module>
<module>
dlink-catalog-mysql
</module>
</modules>
</modules>
</project>
</project>
\ No newline at end of file
pom.xml
View file @
2282fcac
...
@@ -15,9 +15,7 @@
...
@@ -15,9 +15,7 @@
~ See the License for the specific language governing permissions and
~ See the License for the specific language governing permissions and
~ limitations under the License.
~ limitations under the License.
-->
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -88,6 +86,7 @@
...
@@ -88,6 +86,7 @@
<poi.version>
4.1.2
</poi.version>
<poi.version>
4.1.2
</poi.version>
<commons-email>
1.5
</commons-email>
<commons-email>
1.5
</commons-email>
<knife4j.version>
3.0.3
</knife4j.version>
<knife4j.version>
3.0.3
</knife4j.version>
<spotless.version>
2.23.0
</spotless.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
@@ -480,13 +479,6 @@
...
@@ -480,13 +479,6 @@
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
<version>
${maven-checkstyle-plugin.version}
</version>
<version>
${maven-checkstyle-plugin.version}
</version>
<dependencies>
<dependency>
<groupId>
com.puppycrawl.tools
</groupId>
<artifactId>
checkstyle
</artifactId>
<version>
8.45
</version>
</dependency>
</dependencies>
<configuration>
<configuration>
<consoleOutput>
true
</consoleOutput>
<consoleOutput>
true
</consoleOutput>
<encoding>
UTF-8
</encoding>
<encoding>
UTF-8
</encoding>
...
@@ -498,12 +490,19 @@
...
@@ -498,12 +490,19 @@
</sourceDirectories>
</sourceDirectories>
<excludes>
**\/generated-sources\/
</excludes>
<excludes>
**\/generated-sources\/
</excludes>
</configuration>
</configuration>
<dependencies>
<dependency>
<groupId>
com.puppycrawl.tools
</groupId>
<artifactId>
checkstyle
</artifactId>
<version>
8.45
</version>
</dependency>
</dependencies>
<executions>
<executions>
<execution>
<execution>
<phase>
compile
</phase>
<goals>
<goals>
<goal>
check
</goal>
<goal>
check
</goal>
</goals>
</goals>
<phase>
compile
</phase>
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
...
@@ -523,6 +522,63 @@
...
@@ -523,6 +522,63 @@
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
<artifactId>
maven-checkstyle-plugin
</artifactId>
</plugin>
</plugin>
<plugin>
<groupId>
com.diffplug.spotless
</groupId>
<artifactId>
spotless-maven-plugin
</artifactId>
<version>
${spotless.version}
</version>
<configuration>
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
<ratchetFrom>
HEAD
</ratchetFrom>
<java>
<eclipse>
<file>
style/spotless_dlink_formatter.xml
</file>
</eclipse>
<removeUnusedImports
/>
<importOrder>
<file>
style/eclipse.importorder
</file>
</importOrder>
<replaceRegex>
<name>
Remove wildcard imports
</name>
<searchRegex>
import\s+[^\*\s]+\*;(\r\n|\r|\n)
</searchRegex>
<replacement>
$1
</replacement>
</replaceRegex>
</java>
<pom>
<sortPom>
<encoding>
UTF-8
</encoding>
<nrOfIndentSpace>
4
</nrOfIndentSpace>
<keepBlankLines>
true
</keepBlankLines>
<indentBlankLines>
false
</indentBlankLines>
<indentSchemaLocation>
true
</indentSchemaLocation>
<spaceBeforeCloseEmptyElement>
true
</spaceBeforeCloseEmptyElement>
<sortModules>
false
</sortModules>
<sortExecutions>
false
</sortExecutions>
<predefinedSortOrder>
custom_1
</predefinedSortOrder>
<expandEmptyElements>
false
</expandEmptyElements>
<sortProperties>
false
</sortProperties>
</sortPom>
<replace>
<name>
Leading blank line
</name>
<search>
project
</search>
<replacement>
project
</replacement>
</replace>
</pom>
<markdown>
<includes>
<include>
**/*.md
</include>
</includes>
<flexmark
/>
</markdown>
</configuration>
<executions>
<execution>
<goals>
<goal>
check
</goal>
</goals>
<phase>
compile
</phase>
</execution>
</executions>
</plugin>
</plugins>
</plugins>
</build>
</build>
</project>
</project>
style/eclipse.importorder
0 → 100644
View file @
2282fcac
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#Organize Import Order
0=com.dlink
1=org.apache
2=java
3=javax
4=org
5=com
\ No newline at end of file
style/spotless_dlink_formatter.xml
0 → 100644
View file @
2282fcac
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<profiles
version=
"22"
>
<profile
kind=
"CodeFormatterProfile"
name=
"'DLink DataLinkDC Current'"
version=
"13"
>
<setting
id=
"org.eclipse.jdt.core.compiler.source"
value=
"1.8"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.compliance"
value=
"1.8"
/>
<setting
id=
"org.eclipse.jdt.core.compiler.codegen.targetPlatform"
value=
"1.8"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indent_empty_lines"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.tabulation.size"
value=
"4"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.lineSplit"
value=
"120"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.line_length"
value=
"120"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.tabulation.char"
value=
"space"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.indentation.size"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.comment.format_javadoc_comments"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.join_wrapped_lines"
value=
"false"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional"
value=
"insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_enum_constants"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case"
value=
"do not insert"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_conditional_expression"
value=
"80"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_assignment"
value=
"16"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.blank_lines_after_package"
value=
"1"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer"
value=
"2"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_resources_in_try"
value=
"160"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration"
value=
"10"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration"
value=
"106"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration"
value=
"106"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration"
value=
"106"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call.count_dependent"
value=
"16|5|80"
/>
<setting
id=
"org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing"
value=
"insert"
/>
</profile>
</profiles>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment