-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e06a50c
Showing
28 changed files
with
1,175 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.gradle/ | ||
.idea/ | ||
build/ | ||
classes/ | ||
out/ | ||
*.iml | ||
.asscache |
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 @@ | ||
# Modum.io TokenApp Backend | ||
|
||
## Description | ||
TODO | ||
|
||
## Development | ||
TODO | ||
|
||
## Deployment | ||
TODO |
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,21 @@ | ||
plugins { | ||
id 'base' | ||
id 'idea' | ||
} | ||
|
||
allprojects { | ||
group 'io.modum.tokenapp' | ||
version '0.0.1-SNAPSHOT' | ||
} | ||
|
||
subprojects { | ||
// apply from: "${rootProject.projectDir}/gradle/validation.gradle" | ||
// compileJava { | ||
// options.encoding = 'UTF-8' | ||
// options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation' << '-Werror' | ||
// } | ||
// compileTestJava { | ||
// options.encoding = 'UTF-8' | ||
// options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation' << '-Werror' | ||
// } | ||
} |
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,24 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
|
||
dependencies { | ||
compile 'org.mongodb:mongodb-driver:3.4.2' | ||
compile 'com.rabbitmq:amqp-client:4.1.0' | ||
compile 'com.amazonaws:aws-java-sdk:1.11.160' | ||
compile 'org.apache.commons:commons-lang3:3.6' | ||
|
||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.mockito:mockito-core:1.10.19' | ||
testCompile 'org.hamcrest:hamcrest-core:1.3' | ||
testCompile 'org.hamcrest:hamcrest-library:1.3' | ||
|
||
} |
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,98 @@ | ||
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | ||
<!--NOTE: all rules should be also added to checkstyleTest.xml--> | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<!-- Blocks --> | ||
<module name="EmptyBlock"> | ||
<property name="option" value="stmt"/> | ||
<property name="tokens" | ||
value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT"/> | ||
</module> | ||
<module name="EmptyCatchBlock"> | ||
<property name="exceptionVariableName" value="expected|ignore"/> | ||
</module> | ||
<module name="AvoidNestedBlocks"/> | ||
|
||
<!-- Braces --> | ||
<module name="LeftCurly"/> | ||
<module name="RightCurly"/> | ||
<module name="NeedBraces"/> | ||
|
||
<!-- Whitespace --> | ||
<module name="GenericWhitespace"/> | ||
<module name="EmptyForInitializerPad"/> | ||
<module name="EmptyForIteratorPad"/> | ||
<module name="MethodParamPad"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="OperatorWrap"/> | ||
<module name="ParenPad"/> | ||
<module name="TypecastParenPad"/> | ||
<module name="WhitespaceAfter"> | ||
<property name="tokens" value="COMMA, SEMI"/> | ||
</module> | ||
<!--<module name="WhitespaceAround">--> | ||
<!-- everything except { and } --> | ||
<!--<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>--> | ||
<!--</module>--> | ||
|
||
<!-- Coding --> | ||
<module name="CovariantEquals"/> | ||
<module name="DefaultComesLast"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsHashCode"/> | ||
<module name="ExplicitInitialization"/> | ||
<!--<module name="MultipleVariableDeclarations"/>--> | ||
<module name="NoClone"/> | ||
<module name="NoFinalizer"/> | ||
<!--<module name="RedundantThrows">--> | ||
<!--<property name="allowUnchecked" value="true"/>--> | ||
<!--</module>--> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="SimplifyBooleanReturn"/> | ||
<module name="StringLiteralEquality"/> | ||
<module name="UnnecessaryParentheses"/> | ||
|
||
<!-- Design --> | ||
<module name="InterfaceIsType"/> | ||
|
||
<!-- Imports --> | ||
<module name="RedundantImport"/> | ||
<module name="UnusedImports"/> | ||
|
||
<!-- Naming --> | ||
<module name="ConstantName"/> | ||
<module name="LocalFinalVariableName"/> | ||
<module name="LocalVariableName"/> | ||
<module name="MemberName"> | ||
<property name="format" value="^[a-z_][a-zA-Z0-9_]*$"/> | ||
</module> | ||
<module name="MethodName"> | ||
<property name="format" value="^[a-z_][a-zA-Z0-9_]*$"/> | ||
</module> | ||
<module name="MethodTypeParameterName"/> | ||
<module name="PackageName"> | ||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> | ||
</module> | ||
<module name="ParameterName"/> | ||
<module name="StaticVariableName"/> | ||
<module name="TypeName"/> | ||
<module name="ClassTypeParameterName"> | ||
<property name="format" value="^[A-Z]+$"/> | ||
</module> | ||
<module name="InterfaceTypeParameterName"> | ||
<property name="format" value="^[A-Z]+$"/> | ||
</module> | ||
<module name="MethodTypeParameterName"> | ||
<property name="format" value="^[A-Z]+$"/> | ||
</module> | ||
|
||
<!-- to enable SuppressionCommentFilter --> | ||
<module name="FileContentsHolder"/> | ||
</module> | ||
<module name="FileTabCharacter"/> | ||
|
||
<!-- allows suppressing using the //CHECKSTYLE:ON //CHECKSTYLE:OFF --> | ||
<module name="SuppressionCommentFilter"/> | ||
</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,97 @@ | ||
<!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="TreeWalker"> | ||
<!-- Blocks --> | ||
<module name="EmptyBlock"> | ||
<property name="option" value="stmt"/> | ||
<property name="tokens" | ||
value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT"/> | ||
</module> | ||
<module name="EmptyCatchBlock"> | ||
<property name="exceptionVariableName" value="expected|ignore"/> | ||
</module> | ||
<module name="AvoidNestedBlocks"/> | ||
|
||
<!-- Braces --> | ||
<module name="LeftCurly"/> | ||
<module name="RightCurly"/> | ||
<module name="NeedBraces"/> | ||
|
||
<!-- Whitespace --> | ||
<module name="GenericWhitespace"/> | ||
<module name="EmptyForInitializerPad"/> | ||
<module name="EmptyForIteratorPad"/> | ||
<module name="MethodParamPad"/> | ||
<module name="NoWhitespaceBefore"/> | ||
<module name="NoWhitespaceAfter"/> | ||
<module name="OperatorWrap"/> | ||
<module name="ParenPad"/> | ||
<module name="TypecastParenPad"/> | ||
<module name="WhitespaceAfter"> | ||
<property name="tokens" value="COMMA, SEMI"/> | ||
</module> | ||
<!--<module name="WhitespaceAround">--> | ||
<!-- everything except { and } --> | ||
<!--<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>--> | ||
<!--</module>--> | ||
|
||
<!-- Coding --> | ||
<module name="CovariantEquals"/> | ||
<module name="DefaultComesLast"/> | ||
<module name="EmptyStatement"/> | ||
<module name="EqualsHashCode"/> | ||
<module name="ExplicitInitialization"/> | ||
<!--<module name="MultipleVariableDeclarations"/>--> | ||
<module name="NoClone"/> | ||
<module name="NoFinalizer"/> | ||
<!--<module name="RedundantThrows">--> | ||
<!--<property name="allowUnchecked" value="true"/>--> | ||
<!--</module>--> | ||
<module name="SimplifyBooleanExpression"/> | ||
<module name="SimplifyBooleanReturn"/> | ||
<module name="StringLiteralEquality"/> | ||
<module name="UnnecessaryParentheses"/> | ||
|
||
<!-- Design --> | ||
<module name="InterfaceIsType"/> | ||
|
||
<!-- Imports --> | ||
<module name="RedundantImport"/> | ||
<module name="UnusedImports"/> | ||
|
||
<!-- Naming --> | ||
<module name="ConstantName"/> | ||
<module name="LocalFinalVariableName"/> | ||
<module name="LocalVariableName"/> | ||
<module name="MemberName"> | ||
<property name="format" value="^[a-z_][a-zA-Z0-9_]*$"/> | ||
</module> | ||
<module name="MethodName"> | ||
<property name="format" value="^[a-z_][a-zA-Z0-9_]*$"/> | ||
</module> | ||
<module name="MethodTypeParameterName"/> | ||
<module name="PackageName"> | ||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> | ||
</module> | ||
<module name="ParameterName"/> | ||
<module name="StaticVariableName"/> | ||
<module name="TypeName"/> | ||
<module name="ClassTypeParameterName"> | ||
<property name="format" value="^[A-Z]+$"/> | ||
</module> | ||
<module name="InterfaceTypeParameterName"> | ||
<property name="format" value="^[A-Z]+$"/> | ||
</module> | ||
<module name="MethodTypeParameterName"> | ||
<property name="format" value="^[A-Z]+$"/> | ||
</module> | ||
|
||
<!-- to enable SuppressionCommentFilter --> | ||
<module name="FileContentsHolder"/> | ||
</module> | ||
<module name="FileTabCharacter"/> | ||
|
||
<!-- allows suppressing using the //CHECKSTYLE:ON //CHECKSTYLE:OFF --> | ||
<module name="SuppressionCommentFilter"/> | ||
</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,60 @@ | ||
<FindBugsFilter> | ||
<!--NOTE: all matchers should be also added to excludeTest.xml--> | ||
<Match> | ||
<Or> | ||
<Bug code="CD"/> | ||
<Bug code="PRMC"/> | ||
<Bug code="IMC"/> | ||
<Bug code="OPM"/> | ||
<Bug code="UrF"/> | ||
<Bug code="UwF"/> | ||
<Bug code="MRC"/> | ||
<Bug code="UP"/> | ||
<Bug code="UTAO"/> | ||
<Bug code="EXS"/> | ||
<Bug code="NAB"/> | ||
<Bug code="JPAI"/> | ||
<Bug code="USBR"/> | ||
<Bug code="CFS"/> | ||
<Bug code="CLI"/> | ||
<Bug code="SIC"/> | ||
<Bug code="UCPM"/> | ||
<Bug code="NP"/> | ||
<Bug code="WEM"/> | ||
<Bug code="RV"/> | ||
<Bug code="HES"/> | ||
<Bug code="DLC"/> | ||
<Bug code="ISB"/> | ||
<Bug code="LO"/> | ||
<Bug code="Dm"/> | ||
<Bug code="SECCRLFLOG"/> | ||
<Bug code="SECSC"/> | ||
<Bug code="RR"/> | ||
<Bug code="TR"/> | ||
<Bug code="SCII"/> | ||
<Bug code="SECWTM"/> | ||
<Bug code="SECPTI"/> | ||
<Bug code="SECSSQ"/> | ||
<Bug code="SECCU"/> | ||
<Bug code="SECHOC"/> | ||
<Bug code="SECHRS"/> | ||
<Bug code="SECIC"/> | ||
<Bug code="SECSSN"/> | ||
<Bug code="BL"/> | ||
<Bug code="SECSH"/> | ||
<Bug code="DMC"/> | ||
<Bug code="ITC"/> | ||
<Bug code="CC"/> | ||
<Bug code="EI"/> | ||
<Bug code="EI2"/> | ||
<Bug code="PZLA"/> | ||
<Bug code="TBP"/> | ||
<Bug code="SECSHR"/> | ||
<Bug code="SECSHUA"/> | ||
<Bug code="SECXSS2"/> | ||
<Bug code="USFW"/> | ||
<Bug code="OCP"/> | ||
<Bug code="SECSPRCSRFPD"/> | ||
</Or> | ||
</Match> | ||
</FindBugsFilter> |
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,60 @@ | ||
<FindBugsFilter> | ||
<Match> | ||
<Or> | ||
<Bug code="CD"/> | ||
<Bug code="PRMC"/> | ||
<Bug code="IMC"/> | ||
<Bug code="OPM"/> | ||
<Bug code="UrF"/> | ||
<Bug code="UwF"/> | ||
<Bug code="MRC"/> | ||
<Bug code="UP"/> | ||
<Bug code="UTAO"/> | ||
<Bug code="EXS"/> | ||
<Bug code="NAB"/> | ||
<Bug code="JPAI"/> | ||
<Bug code="USBR"/> | ||
<Bug code="CFS"/> | ||
<Bug code="CLI"/> | ||
<Bug code="SIC"/> | ||
<Bug code="UCPM"/> | ||
<Bug code="NP"/> | ||
<Bug code="WEM"/> | ||
<Bug code="RV"/> | ||
<Bug code="HES"/> | ||
<Bug code="DLC"/> | ||
<Bug code="ISB"/> | ||
<Bug code="LO"/> | ||
<Bug code="Dm"/> | ||
<Bug code="SECCRLFLOG"/> | ||
<Bug code="SECSC"/> | ||
<Bug code="RR"/> | ||
<Bug code="TR"/> | ||
<Bug code="SCII"/> | ||
<Bug code="SECWTM"/> | ||
<Bug code="SECPTI"/> | ||
<Bug code="SECSSQ"/> | ||
<Bug code="SECCU"/> | ||
<Bug code="SECHOC"/> | ||
<Bug code="SECHRS"/> | ||
<Bug code="SECIC"/> | ||
<Bug code="SECSSN"/> | ||
<Bug code="BL"/> | ||
<Bug code="SECSH"/> | ||
<Bug code="DMC"/> | ||
<Bug code="ITC"/> | ||
<Bug code="CC"/> | ||
<Bug code="EI"/> | ||
<Bug code="EI2"/> | ||
<Bug code="PZLA"/> | ||
<Bug code="TBP"/> | ||
<Bug code="SECSHR"/> | ||
<Bug code="SECSHUA"/> | ||
<Bug code="SECXSS2"/> | ||
<Bug code="USFW"/> | ||
<Bug code="OCP"/> | ||
<Bug code="SECSPRCSRFPD"/> | ||
<Bug code="OI"/> | ||
</Or> | ||
</Match> | ||
</FindBugsFilter> |
Oops, something went wrong.