-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit configures in the Puppycrawl checkstyle with the Spring JavaFormat. To avoid the intrusive nature of such a change, the spring-grpc-core module is the only one to have the checkstyles applied. I will handle the other modules as time permits. Signed-off-by: Chris Bono <[email protected]>
- Loading branch information
Showing
31 changed files
with
574 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<code_scheme name="Spring gRPC" version="173"> | ||
<option name="AUTODETECT_INDENTS" value="false"/> | ||
<option name="OTHER_INDENT_OPTIONS"> | ||
<value> | ||
<option name="USE_TAB_CHARACTER" value="true"/> | ||
</value> | ||
</option> | ||
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="50"/> | ||
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="500"/> | ||
<option name="IMPORT_LAYOUT_TABLE"> | ||
<value> | ||
<package name="java" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="javax" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="org.springframework" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="" withSubpackages="true" static="true"/> | ||
</value> | ||
</option> | ||
<option name="RIGHT_MARGIN" value="90"/> | ||
<option name="ENABLE_JAVADOC_FORMATTING" value="false"/> | ||
<option name="JD_ALIGN_PARAM_COMMENTS" value="false"/> | ||
<option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false"/> | ||
<option name="JD_KEEP_EMPTY_LINES" value="false"/> | ||
<GroovyCodeStyleSettings> | ||
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="500"/> | ||
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="500"/> | ||
<option name="IMPORT_LAYOUT_TABLE"> | ||
<value> | ||
<emptyLine/> | ||
<package name="javax" withSubpackages="true" static="false"/> | ||
<package name="java" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="org.springframework" withSubpackages="true" | ||
static="false"/> | ||
<emptyLine/> | ||
<package name="" withSubpackages="true" static="true"/> | ||
</value> | ||
</option> | ||
</GroovyCodeStyleSettings> | ||
<JavaCodeStyleSettings> | ||
<option name="CLASS_NAMES_IN_JAVADOC" value="3"/> | ||
<option name="INSERT_INNER_CLASS_IMPORTS" value="true"/> | ||
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="50"/> | ||
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="500"/> | ||
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND"> | ||
<value/> | ||
</option> | ||
<option name="IMPORT_LAYOUT_TABLE"> | ||
<value> | ||
<package name="" withSubpackages="true" static="true"/> | ||
<emptyLine/> | ||
<package name="java" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="javax" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="org" withSubpackages="true" static="false"/> | ||
<emptyLine/> | ||
<package name="org.springframework" withSubpackages="true" static="false"/> | ||
</value> | ||
</option> | ||
<option name="ENABLE_JAVADOC_FORMATTING" value="false"/> | ||
<option name="JD_ALIGN_PARAM_COMMENTS" value="false"/> | ||
<option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false"/> | ||
<option name="JD_KEEP_INVALID_TAGS" value="false"/> | ||
<option name="JD_KEEP_EMPTY_LINES" value="false"/> | ||
</JavaCodeStyleSettings> | ||
<JetCodeStyleSettings> | ||
<option name="PACKAGES_TO_USE_STAR_IMPORTS"> | ||
<value> | ||
<package name="java.util" withSubpackages="false" static="false"/> | ||
<package name="kotlinx.android.synthetic" withSubpackages="false" | ||
static="false"/> | ||
</value> | ||
</option> | ||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="20"/> | ||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="20"/> | ||
</JetCodeStyleSettings> | ||
<XML> | ||
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true"/> | ||
</XML> | ||
<editorconfig> | ||
<option name="ENABLED" value="false"/> | ||
</editorconfig> | ||
<codeStyleSettings language="Groovy"> | ||
<indentOptions> | ||
<option name="USE_TAB_CHARACTER" value="true"/> | ||
</indentOptions> | ||
</codeStyleSettings> | ||
<codeStyleSettings language="JAVA"> | ||
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/> | ||
<option name="BLANK_LINES_AROUND_FIELD" value="1"/> | ||
<option name="BLANK_LINES_AROUND_FIELD_IN_INTERFACE" value="1"/> | ||
<option name="ELSE_ON_NEW_LINE" value="true"/> | ||
<option name="CATCH_ON_NEW_LINE" value="true"/> | ||
<option name="FINALLY_ON_NEW_LINE" value="true"/> | ||
<option name="ALIGN_MULTILINE_PARAMETERS" value="false"/> | ||
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true"/> | ||
<option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true"/> | ||
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true"/> | ||
<option name="KEEP_SIMPLE_CLASSES_IN_ONE_LINE" value="true"/> | ||
<option name="KEEP_MULTIPLE_EXPRESSIONS_IN_ONE_LINE" value="true"/> | ||
<indentOptions> | ||
<option name="USE_TAB_CHARACTER" value="true"/> | ||
</indentOptions> | ||
</codeStyleSettings> | ||
<codeStyleSettings language="JSON"> | ||
<indentOptions> | ||
<option name="TAB_SIZE" value="2"/> | ||
</indentOptions> | ||
</codeStyleSettings> | ||
<codeStyleSettings language="XML"> | ||
<indentOptions> | ||
<option name="USE_TAB_CHARACTER" value="true"/> | ||
</indentOptions> | ||
</codeStyleSettings> | ||
<codeStyleSettings language="kotlin"> | ||
<indentOptions> | ||
<option name="USE_TAB_CHARACTER" value="true"/> | ||
</indentOptions> | ||
</codeStyleSettings> | ||
</code_scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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/maven-v4_0_0.xsd"> | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.springframework.grpc</groupId> | ||
|
@@ -16,8 +16,10 @@ | |
|
||
<scm> | ||
<url>https://github.com/spring-projects-experimental/spring-grpc</url> | ||
<connection>git://github.com/spring-projects-experimental/spring-grpc.git</connection> | ||
<developerConnection>[email protected]:spring-projects-experimental/spring-grpc.git</developerConnection> | ||
<connection>git://github.com/spring-projects-experimental/spring-grpc.git | ||
</connection> | ||
<developerConnection>[email protected]:spring-projects-experimental/spring-grpc.git | ||
</developerConnection> | ||
</scm> | ||
|
||
<dependencies> | ||
|
@@ -70,7 +72,11 @@ | |
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>${junit.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.