Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpryce committed Feb 29, 2016
0 parents commit fae9d7a
Show file tree
Hide file tree
Showing 72 changed files with 6,308 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .baseline/checkstyle/checkstyle-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0"?>

<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">

<!-- IMPORTANT ECLIPSE NOTE: If you change this file, you must restart Eclipse
for your changes to take effect in its Checkstyle integration. -->
<suppressions>
<!-- Suppress test classes -->
<suppress files="[/\\]src[/\\].*[Tt]est[/\\](java|groovy)[/\\]" checks="Javadoc*" />
<suppress files="[/\\]src[/\\].*[Tt]est[/\\](java|groovy)[/\\]" checks="VariableDeclarationUsageDistance" />

<!-- JavadocStyle enforces existence of package-info.java package-level Javadoc; we consider this a bug. -->
<suppress files="package-info.java" checks="JavadocStyle" />

<!-- non-code classes -->
<suppress files="\.(bdr|eot|gif|gzip|jar|json|otf|png|svg|ttf|woff|zip)$" checks="FileTabCharacter" />
<suppress files="\.(bdr|eot|gif|gzip|jar|json|otf|png|svg|ttf|woff|zip)$" checks="NewlineAtEndOfFile" />
</suppressions>
123 changes: 123 additions & 0 deletions .baseline/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!-- http://checkstyle.sourceforge.net/ -->
<module name="Checker">
<module name="TreeWalker">
<module name="AnnotationUseStyle"/>
<module name="ArrayTypeStyle"/>
<module name="AvoidNestedBlocks"/>
<module name="AvoidStarImport"/>
<module name="BooleanExpressionComplexity">
<property name="max" value="3"/>
<property name="tokens" value="BXOR,LAND,LOR"/>
</module>
<module name="CovariantEquals"/>
<module name="EmptyBlock">
<property name="option" value="text"/>
</module>
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="FileContentsHolder"/>
<module name="GenericWhitespace"/>
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true"/>
<property name="ignoreSetter" value="true"/>
</module>
<module name="HideUtilityClassConstructor"/>
<module name="IllegalInstantiation">
<property name="classes" value="java.lang.Boolean"/>
<property name="classes" value="java.lang.Integer"/>
<property name="classes" value="java.lang.Long"/>
<property name="classes" value="java.lang.Double"/>
<property name="classes" value="java.lang.Character"/>
<property name="classes" value="java.lang.Byte"/>
</module>
<module name="ImportOrder">
<property name="groups" value="*,javax,java"/>
<property name="ordered" value="true"/>
<property name="separated" value="false"/>
<property name="option" value="bottom"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>
<module name="InnerAssignment"/>
<module name="MethodLength">
<property name="tokens" value="METHOD_DEF"/>
<property name="max" value="300"/>
</module>
<module name="MissingDeprecated"/>
<module name="ModifiedControlVariable"/>
<module name="ModifierOrder"/>
<module name="MultipleVariableDeclarations"/>
<module name="NeedBraces"/>
<module name="NestedIfDepth"/>
<module name="NestedTryDepth"/>
<module name="NoClone"/>
<module name="OneStatementPerLine"/>
<module name="OuterTypeFilename"/>
<module name="PackageDeclaration"/>
<module name="ParameterAssignment"/>
<module name="RedundantImport"/>
<module name="RedundantModifier"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="StringLiteralEquality"/>
<module name="UnusedImports">
<property name="processJavadoc" value="true"/>
</module>
<module name="UpperEll"/>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="Use StandardCharsets"/>
<property name="id" value="Use StandardCharsets"/>
<property name="format" value="\bCharset.forName\(|\bCharsets\."/>
<property name="message" value="Use JDK StandardCharsets instead of alternatives"/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="Don't use default charset"/>
<property name="id" value="Use an explicit charset (e.g. StandardCharsets.UTF-8)"/>
<property name="format" value="\bCharset.defaultCharset\("/>
<property name="message" value="Use explicit charset (e.g. StandardCharsets.UTF-8) instead of default"/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="SLF4J no percentages"/>
<property name="id" value="Slf4JPercentageRegexp"/>
<property name="format" value="\.(debug|info|warn|error)\(&quot;[^&quot;%]*%[^&quot;%]*&quot;(,|\))"/>
<property name="message" value="Don't use printf-style formatting in SLF4J loggers"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="Preconditions use printf-style formatting"/>
<property name="id" value="PreconditionsPrintfRegexp"/>
<property name="format" value="\bPreconditions\.check\w+\(.*\{\}"/>
<property name="message" value="Use printf-style formatting in Preconditions"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="e.printStackTrace()"/>
<property name="id" value="PrintStackTraceRegexp"/>
<property name="format" value="\.printStackTrace\(\)"/>
<property name="message" value="printStackTrace is not generally allowed"/>
<property name="ignoreComments" value="true"/>
</module>
<module name="RegexpSinglelineJava">
<metadata name="net.sf.eclipsecs.core.comment" value="No log4j.Logger usage"/>
<property name="id" value="Log4JRegexp"/>
<property name="format" value="\sLogger\.getLogger\("/>
<property name="message" value="Use SLF4J instead: LoggerFactory.getLogger(...)"/>
<property name="ignoreComments" value="true"/>
</module>
</module>
<module name="FileLength">
<property name="max" value="1500"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="FileTabCharacter"/>
<module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="noinspection CheckStyle.*"/>
<property name="influenceFormat" value="1"/>
</module>
<module name="RegexpHeader">
<property name="header" value="^/\*$\n^ \* Copyright \d{4} Palantir Technologies, Inc\. All rights reserved\.$"/>
<property name="fileExtensions" value=".java,.ts"/>
</module>
</module>

25 changes: 25 additions & 0 deletions .baseline/copyright/palantir-copyright-external.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright ${today.year} Palantir Technologies, Inc. All rights reserved.

THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OWNED BY PALANTIR TECHNOLOGIES INC.
UNAUTHORIZED DISCLOSURE TO ANY THIRD PARTY IS STRICTLY PROHIBITED

For good and valuable consideration, the receipt and adequacy of which is acknowledged by Palantir and recipient
of this file ("Recipient"), the parties agree as follows:

This file is being provided subject to the non-disclosure terms by and between Palantir and the Recipient.

Palantir solely shall own and hereby retains all rights, title and interest in and to this software (including,
without limitation, all patent, copyright, trademark, trade secret and other intellectual property rights) and
all copies, modifications and derivative works thereof. Recipient shall and hereby does irrevocably transfer and
assign to Palantir all right, title and interest it may have in the foregoing to Palantir and Palantir hereby
accepts such transfer. In using this software, Recipient acknowledges that no ownership rights are being conveyed
to Recipient. This software shall only be used in conjunction with properly licensed Palantir products or
services.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Empty file.
23 changes: 23 additions & 0 deletions .baseline/eclipse/dynamic/dotfile.checkstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
<local-check-config name="Baseline" location="${configDir}/checkstyle/checkstyle.xml" type="external" description="">
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Baseline" local="true">
<file-match-pattern match-pattern="." include-pattern="false"/>
<file-match-pattern match-pattern=".*\\.java" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.cfg" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.coffee" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.erb" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.groovy" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.handlebars" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.json" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.less" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.pl" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.pp" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.sh" include-pattern="true"/>
<file-match-pattern match-pattern=".*\\.xml" include-pattern="true"/>
<file-match-pattern match-pattern="src/test/resources/.*" include-pattern="false"/>
</fileset>
</fileset-config>
Loading

0 comments on commit fae9d7a

Please sign in to comment.