-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(core): Migrate to Java codebase
- Loading branch information
Showing
40 changed files
with
1,868 additions
and
1,439 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
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,123 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
|
||
<module name="Checker"> | ||
<property name="fileExtensions" value="java" /> | ||
<property name="severity" value="error" /> | ||
|
||
<!-- Filters --> | ||
<module name="SuppressWithPlainTextCommentFilter" /> | ||
<module name="SuppressionFilter"> | ||
<property name="file" value="${config_loc}/suppressions.xml" default="config/checkstyle/suppressions.xml" /> | ||
<property name="optional" value="false" /> | ||
</module> | ||
|
||
<!-- Miscellaneous --> | ||
<module name="NewlineAtEndOfFile" /> | ||
|
||
<!-- Regexp --> | ||
<module name="RegexpSingleline"> | ||
<property name="format" value="(?!\*)[^$]\s+$" /> | ||
<property name="minimum" value="0" /> | ||
<property name="maximum" value="0" /> | ||
<property name="message" value="Line has trailing spaces." /> | ||
</module> | ||
|
||
<!-- Size Violations --> | ||
<module name="FileLength"> | ||
<property name="max" value="2000" /> | ||
</module> | ||
<module name="LineLength"> | ||
<property name="max" value="120" /> | ||
<property name="ignorePattern" value="^package.*|^import.*" /> | ||
</module> | ||
|
||
<!-- Whitespace --> | ||
<module name="FileTabCharacter" /> | ||
|
||
<module name="TreeWalker"> | ||
<property name="tabWidth" value="2" /> | ||
|
||
<!-- Block Checks --> | ||
<module name="LeftCurly" /> | ||
<module name="NeedBraces" /> | ||
<module name="RightCurly" /> | ||
|
||
<!-- Class Design --> | ||
<module name="InnerTypeLast" /> | ||
<module name="InterfaceIsType" /> | ||
<module name="OneTopLevelClass" /> | ||
<module name="VisibilityModifier" /> | ||
|
||
<!-- Coding --> | ||
<module name="EqualsHashCode" /> | ||
<module name="InnerAssignment" /> | ||
<module name="OneStatementPerLine" /> | ||
<module name="UnnecessaryParentheses" /> | ||
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration" /> | ||
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration" /> | ||
<module name="UnnecessarySemicolonInEnumeration" /> | ||
<module name="UnnecessarySemicolonInTryWithResources" /> | ||
|
||
<!-- Javadoc Comments --> | ||
<module name="InvalidJavadocPosition" /> | ||
|
||
<!-- Imports --> | ||
<module name="AvoidStarImport" /> | ||
<module name="ImportOrder"> | ||
<property name="groups" value="/^java\./,javax,org,com" /> | ||
<property name="ordered" value="true" /> | ||
<property name="separated" value="true" /> | ||
<property name="sortStaticImportsAlphabetically" value="true" /> | ||
<property name="option" value="top" /> | ||
</module> | ||
<module name="RedundantImport" /> | ||
<module name="UnusedImports" /> | ||
|
||
<!-- Miscellaneous --> | ||
<module name="FinalParameters" /> | ||
<module name="NoCodeInFile" /> | ||
<module name="UpperEll" /> | ||
|
||
<!-- Modifiers --> | ||
<module name="ModifierOrder" /> | ||
<module name="RedundantModifier" /> | ||
|
||
<!-- Naming Conventions --> | ||
<module name="ClassTypeParameterName" /> | ||
<module name="ConstantName" /> | ||
<module name="IllegalIdentifierName" /> | ||
<module name="InterfaceTypeParameterName" /> | ||
<module name="LambdaParameterName" /> | ||
<module name="LocalFinalVariableName" /> | ||
<module name="LocalVariableName" /> | ||
<module name="MemberName" /> | ||
<module name="MethodName" /> | ||
<module name="MethodTypeParameterName" /> | ||
<module name="PackageName"> | ||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$" /> | ||
</module> | ||
<module name="ParameterName" /> | ||
<module name="PatternVariableName" /> | ||
<module name="RecordComponentName" /> | ||
<module name="RecordTypeParameterName" /> | ||
<module name="StaticVariableName" /> | ||
<module name="TypeName" /> | ||
|
||
<!-- Whitespace --> | ||
<module name="EmptyLineSeparator"> | ||
<property name="allowMultipleEmptyLines" value="false" /> | ||
</module> | ||
<module name="GenericWhitespace" /> | ||
<module name="MethodParamPad" /> | ||
<module name="NoLineWrap" /> | ||
<module name="NoWhitespaceAfter" /> | ||
<module name="NoWhitespaceBefore" /> | ||
<module name="NoWhitespaceBeforeCaseDefaultColon" /> | ||
<module name="ParenPad" /> | ||
<module name="SingleSpaceSeparator" /> | ||
<module name="TypecastParenPad" /> | ||
<module name="WhitespaceAfter" /> | ||
<module name="WhitespaceAround" /> | ||
</module> | ||
</module> |
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,10 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.3//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd"> | ||
|
||
<suppressions> | ||
<!-- Tests --> | ||
<suppress | ||
checks="InnerTypeLast|MethodName|TypeName" | ||
files=".*[\\/]src[\\/]test|testkit[\\/]" | ||
/> | ||
</suppressions> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.