-
Notifications
You must be signed in to change notification settings - Fork 15
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 4f45d1b
Showing
79 changed files
with
7,387 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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> | ||
<local-check-config name="Google Coding Standards" location="google_checks.xml" type="project" description="Google coding standards"> | ||
<additional-data name="protect-config-file" value="false"/> | ||
</local-check-config> | ||
<fileset name="all" enabled="true" check-config-name="Google Coding Standards" local="true"> | ||
<file-match-pattern match-pattern="." include-pattern="true"/> | ||
</fileset> | ||
</fileset-config> |
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,90 @@ | ||
archaius-core/MySiteConfiguration/ | ||
|
||
# Compiled source # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
|
||
# Packages # | ||
############ | ||
# it's better to unpack these files and commit the raw source | ||
# git has its own built in compression methods | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases # | ||
###################### | ||
*.log | ||
|
||
# OS generated files # | ||
###################### | ||
.DS_Store* | ||
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
|
||
# Editor Files # | ||
################ | ||
*~ | ||
*.swp | ||
|
||
# Gradle Files # | ||
################ | ||
.gradle | ||
|
||
# Build output directies | ||
/target | ||
*/target | ||
/build | ||
*/build | ||
|
||
# uncommitted resources | ||
# temporarily commit recog until plugin resource assembly is fixed | ||
# /src/main/resources/recog | ||
|
||
# IntelliJ specific files/directories | ||
out | ||
.idea | ||
*.ipr | ||
*.iws | ||
*.iml | ||
atlassian-ide-plugin.xml | ||
|
||
# Eclipse specific files/directories | ||
.classpath | ||
.project | ||
.settings | ||
.metadata | ||
*/bin | ||
|
||
# NetBeans specific files/directories | ||
.nbattrs | ||
|
||
# JavaScript | ||
/node_modules | ||
/bower_components | ||
|
||
# Maven | ||
/.repostory/ | ||
|
||
|
||
# PD Build Tools # | ||
################## | ||
.bundle | ||
.vagrant | ||
.builderator | ||
Berksfile | ||
Berksfile.lock | ||
Vagrantfile | ||
VERSION | ||
.recog |
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,38 @@ | ||
## Docker Image Analyzer | ||
|
||
Extracts, parses, and analyzes [Docker](https://www.docker.com) images into Java objects with JSON mappings. | ||
|
||
## Getting Started | ||
|
||
Add the dependency to your pom file: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.rapid7.docker</groupId> | ||
<artifactId>docker-image-analyzer</artifactId> | ||
<version>0.1.0</version> | ||
</dependency> | ||
``` | ||
|
||
_TODO: Usage example(s)_ | ||
|
||
## Development | ||
|
||
Fork the repository and create a development branch in your fork. _Working from the master branch in your fork is not recommended._ | ||
|
||
1. Open your favorite IDE or text editor | ||
2. Make some changes | ||
3. Add some tests if needed | ||
4. Run the tests | ||
5. Push your changes | ||
6. Open a pull request | ||
|
||
You can use `mvn clean install` to clean compile, run checkstyle, and run all tests. | ||
|
||
#### Code Style | ||
|
||
docker-image-analyzer uses a variation of the Google Java code style, enforced with Checkstyle. Please make sure your changes adhere to this style before submitting a pull request. | ||
|
||
## Testing | ||
|
||
Run `mvn test` or `mvn clean install`. |
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,160 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | ||
<!-- | ||
Google coding standards adapted from https://github.com/checkstyle/checkstyle with several minor deviations: | ||
1. Single-line curly braces are optional | ||
2. Import statements do not have grouping | ||
3. Line length restrictions removed | ||
--> | ||
<module name="Checker"> | ||
<property name="severity" value="warning"/> | ||
<property name="charset" value="UTF-8"/> | ||
<property name="fileExtensions" value="java, properties, xml"/> | ||
<module name="TreeWalker"> | ||
<module name="OuterTypeFilename"/> | ||
<module name="IllegalTokenText"> | ||
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/> | ||
<property name="format" value="\\u00(08|09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/> | ||
<property name="message" value="Avoid using corresponding octal or Unicode escape."/> | ||
</module> | ||
<module name="AvoidEscapedUnicodeCharacters"> | ||
<property name="allowEscapesForControlCharacters" value="true"/> | ||
<property name="allowByTailComment" value="true"/> | ||
<property name="allowNonPrintableEscapes" value="true"/> | ||
</module> | ||
<module name="AvoidStarImport"/> | ||
<module name="OneTopLevelClass"/> | ||
<module name="NoLineWrap"/> | ||
<module name="EmptyBlock"> | ||
<property name="option" value="TEXT"/> | ||
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> | ||
</module> | ||
<module name="LeftCurly"/> | ||
<module name="RightCurly"> | ||
<property name="option" value="alone"/> | ||
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/> | ||
</module> | ||
<module name="WhitespaceAround"> | ||
<property name="allowEmptyConstructors" value="true"/> | ||
<property name="allowEmptyMethods" value="true"/> | ||
<property name="allowEmptyTypes" value="true"/> | ||
<property name="allowEmptyLoops" value="true"/> | ||
<message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/> | ||
<message key="ws.notFollowed" value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/> | ||
</module> | ||
<module name="OneStatementPerLine"/> | ||
<module name="MultipleVariableDeclarations"/> | ||
<module name="ArrayTypeStyle"/> | ||
<module name="MissingSwitchDefault"/> | ||
<module name="FallThrough"/> | ||
<module name="UpperEll"/> | ||
<module name="ModifierOrder"/> | ||
<module name="SeparatorWrap"> | ||
<property name="option" value="nl"/> | ||
<property name="tokens" value="DOT"/> | ||
</module> | ||
<module name="SeparatorWrap"> | ||
<property name="option" value="EOL"/> | ||
<property name="tokens" value="COMMA"/> | ||
</module> | ||
<module name="PackageName"> | ||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/> | ||
<message key="name.invalidPattern" value="Package name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="MemberName"> | ||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/> | ||
<message key="name.invalidPattern" value="Member name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="ParameterName"> | ||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/> | ||
<message key="name.invalidPattern" value="Parameter name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="CatchParameterName"> | ||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/> | ||
<message key="name.invalidPattern" value="Catch parameter name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="LocalVariableName"> | ||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/> | ||
<property name="allowOneCharVarInForLoop" value="true"/> | ||
<property name="tokens" value="VARIABLE_DEF"/> | ||
<message key="name.invalidPattern" value="Local variable name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="ClassTypeParameterName"> | ||
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> | ||
<message key="name.invalidPattern" value="Class type name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="MethodTypeParameterName"> | ||
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> | ||
<message key="name.invalidPattern" value="Method type name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="InterfaceTypeParameterName"> | ||
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/> | ||
<message key="name.invalidPattern" value="Interface type name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="NoFinalizer"/> | ||
<module name="GenericWhitespace"> | ||
<message key="ws.notPreceded" value="GenericWhitespace ''{0}'' is not preceded with whitespace."/> | ||
<message key="ws.followed" value="GenericWhitespace ''{0}'' is followed by whitespace."/> | ||
<message key="ws.preceded" value="GenericWhitespace ''{0}'' is preceded with whitespace."/> | ||
<message key="ws.illegalFollow" value="GenericWhitespace ''{0}'' should followed by whitespace."/> | ||
</module> | ||
<module name="Indentation"> | ||
<property name="basicOffset" value="2"/> | ||
<property name="caseIndent" value="2"/> | ||
<property name="arrayInitIndent" value="2"/> | ||
</module> | ||
<module name="AbbreviationAsWordInName"> | ||
<property name="allowedAbbreviationLength" value="1"/> | ||
<property name="ignoreFinal" value="false"/> | ||
</module> | ||
<module name="ImportOrder"> | ||
<property name="option" value="bottom"/> | ||
<property name="groups" value="com.*,gnu.*,java.*,javax.*,org.*"/> | ||
</module> | ||
<module name="MethodParamPad"/> | ||
<module name="OperatorWrap"> | ||
<property name="option" value="NL"/> | ||
<property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/> | ||
</module> | ||
<module name="AnnotationLocation"> | ||
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/> | ||
</module> | ||
<module name="AnnotationLocation"> | ||
<property name="tokens" value="VARIABLE_DEF"/> | ||
<property name="allowSamelineMultipleAnnotations" value="true"/> | ||
</module> | ||
<module name="NonEmptyAtclauseDescription"/> | ||
<module name="JavadocTagContinuationIndentation"/> | ||
<module name="SummaryJavadoc"> | ||
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/> | ||
</module> | ||
<module name="JavadocParagraph"/> | ||
<module name="AtclauseOrder"> | ||
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/> | ||
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/> | ||
</module> | ||
<module name="JavadocMethod"> | ||
<property name="severity" value="ignore"/> | ||
<property name="minLineCount" value="2"/> | ||
<property name="allowedAnnotations" value="Override, Test"/> | ||
<property name="scope" value="public"/> | ||
<property name="allowThrowsTagsForSubclasses" value="true"/> | ||
<property name="allowMissingParamTags" value="true"/> | ||
<property name="allowMissingThrowsTags" value="true"/> | ||
<property name="allowMissingReturnTag" value="true"/> | ||
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
</module> | ||
<module name="MethodName"> | ||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/> | ||
<message key="name.invalidPattern" value="Method name ''{0}'' must match pattern ''{1}''."/> | ||
</module> | ||
<module name="EmptyCatchBlock"> | ||
<property name="exceptionVariableName" value="expected"/> | ||
</module> | ||
<module name="CommentsIndentation"/> | ||
</module> | ||
<module name="FileTabCharacter"> | ||
<property name="eachLine" value="true"/> | ||
</module> | ||
</module> |
Oops, something went wrong.