-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* misc: add linter * misc: add linter
- Loading branch information
Showing
46 changed files
with
1,031 additions
and
816 deletions.
There are no files selected for viewing
115 changes: 115 additions & 0 deletions
115
aws-lambda-java-runtime-interface-client/build-tools/checkstyle.xml
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,115 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.2//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | ||
|
||
<module name="Checker"> | ||
<module name="NewlineAtEndOfFile" /> | ||
<module name="OrderedProperties" /> | ||
<module name="FileTabCharacter" /> | ||
<module name="Header"> | ||
<property name="header" | ||
value="/*\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: Apache-2.0\n*/\n"/> | ||
</module> | ||
<module name="FileTabCharacter"/> | ||
<module name="TreeWalker"> | ||
<module name="UnusedImports"/> | ||
<module name="NeedBraces"/> | ||
<module name="EqualsHashCode"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsAvoidNull"/> | ||
<module name="MissingSwitchDefault"/> | ||
<module name="MultipleVariableDeclarations"/> | ||
<module name="OneStatementPerLine"/> | ||
<module name="RedundantImport"/> | ||
<module name="AvoidStarImport"/> | ||
<module name="DefaultComesLast"/> | ||
<module name="SuppressWarningsHolder" /> | ||
<module name="EmptyForInitializerPad" /> | ||
<module name="GenericWhitespace" /> | ||
<module name="MethodParamPad" /> | ||
<module name="NoLineWrap" /> | ||
<module name="NoWhitespaceAfter" /> | ||
<module name="NoWhitespaceBefore" /> | ||
<module name="NoWhitespaceBeforeCaseDefaultColon" /> | ||
<module name="OperatorWrap" /> | ||
<module name="ParenPad" /> | ||
<module name="SeparatorWrap" /> | ||
<module name="SingleSpaceSeparator" /> | ||
<module name="TypecastParenPad" /> | ||
<module name="WhitespaceAfter" /> | ||
<module name="WhitespaceAround" /> | ||
<module name="AvoidNestedBlocks" /> | ||
<module name="EmptyBlock" /> | ||
<module name="EmptyCatchBlock" /> | ||
<module name="LeftCurly" /> | ||
<module name="NeedBraces" /> | ||
<module name="RightCurly" /> | ||
<module name="InnerTypeLast" /> | ||
<module name="MutableException" /> | ||
<module name="OneTopLevelClass" /> | ||
<module name="ThrowsCount" /> | ||
|
||
<module name="AvoidNoArgumentSuperConstructorCall" /> | ||
<module name="CovariantEquals" /> | ||
<module name="DeclarationOrder" /> | ||
<module name="DefaultComesLast" /> | ||
<module name="EmptyStatement" /> | ||
<module name="EqualsAvoidNull" /> | ||
<module name="EqualsHashCode" /> | ||
<module name="FallThrough" /> | ||
<module name="IllegalInstantiation" /> | ||
<module name="IllegalToken" /> | ||
<module name="IllegalTokenText" /> | ||
<module name="IllegalType" /> | ||
<module name="InnerAssignment" /> | ||
<module name="MatchXpath" /> | ||
<module name="MissingSwitchDefault" /> | ||
<module name="ModifiedControlVariable" /> | ||
<module name="MultipleVariableDeclarations" /> | ||
<module name="NestedForDepth" /> | ||
<module name="NestedTryDepth" /> | ||
<module name="NoArrayTrailingComma" /> | ||
<module name="NoClone" /> | ||
<module name="NoEnumTrailingComma" /> | ||
<module name="NoFinalizer" /> | ||
<module name="OneStatementPerLine" /> | ||
<module name="OverloadMethodsDeclarationOrder" /> | ||
<module name="PackageDeclaration" /> | ||
<module name="ParameterAssignment" /> | ||
<module name="RequireThis" /> | ||
<module name="SimplifyBooleanExpression" /> | ||
<module name="SimplifyBooleanReturn" /> | ||
<module name="StringLiteralEquality" /> | ||
<module name="SuperClone" /> | ||
<module name="SuperFinalize" /> | ||
<module name="UnnecessarySemicolonAfterOuterTypeDeclaration" /> | ||
<module name="UnnecessarySemicolonAfterTypeMemberDeclaration" /> | ||
<module name="UnnecessarySemicolonInEnumeration" /> | ||
<module name="UnnecessarySemicolonInTryWithResources" /> | ||
<module name="VariableDeclarationUsageDistance" /> | ||
|
||
<module name="ImportOrder" /> | ||
<module name="RedundantImport" /> | ||
<module name="UnusedImports" /> | ||
|
||
<module name="ArrayTypeStyle" /> | ||
<module name="AvoidEscapedUnicodeCharacters" /> | ||
<module name="CommentsIndentation" /> | ||
<module name="DescendantToken" /> | ||
<module name="Indentation" /> | ||
<module name="NoCodeInFile" /> | ||
<module name="OuterTypeFilename" /> | ||
<module name="TodoComment" /> | ||
<module name="TrailingComment" /> | ||
<module name="UpperEll" /> | ||
|
||
<module name="LambdaBodyLength" /> | ||
<module name="MethodCount" /> | ||
<module name="MethodLength" /> | ||
<module name="OuterTypeNumber" /> | ||
<module name="RecordComponentNumber" /> | ||
</module> | ||
|
||
<module name="SuppressWarningsFilter" /> | ||
</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
6 changes: 3 additions & 3 deletions
6
...nterface-client/src/main/java/com/amazonaws/services/lambda/crac/CheckpointException.java
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,12 +1,12 @@ | ||
/* | ||
* Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
*/ | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.amazonaws.services.lambda.crac; | ||
|
||
public class CheckpointException extends Exception { | ||
private static final long serialVersionUID = -4956873658083157585L; | ||
public CheckpointException() { | ||
super(); | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
...va-runtime-interface-client/src/main/java/com/amazonaws/services/lambda/crac/Context.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
|
||
class DNSManager { | ||
static native void clearCache(); | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
...a-runtime-interface-client/src/main/java/com/amazonaws/services/lambda/crac/Resource.java
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
6 changes: 3 additions & 3 deletions
6
...e-interface-client/src/main/java/com/amazonaws/services/lambda/crac/RestoreException.java
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,13 +1,13 @@ | ||
/* | ||
* Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
*/ | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.amazonaws.services.lambda.crac; | ||
|
||
public class RestoreException extends Exception { | ||
private static final long serialVersionUID = -823900409868237860L; | ||
|
||
public RestoreException() { | ||
super(); | ||
} | ||
} |
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
5 changes: 4 additions & 1 deletion
5
...lient/src/main/java/com/amazonaws/services/lambda/runtime/api/client/ClasspathLoader.java
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.