mirror of https://github.com/apache/jclouds.git
100 lines
4.8 KiB
XML
100 lines
4.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
-->
|
|
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
|
|
|
<module name="Checker">
|
|
<property name="severity" value="warning"/>
|
|
<module name="NewlineAtEndOfFile"/>
|
|
<module name="TreeWalker">
|
|
<module name="AvoidStarImport"/>
|
|
<module name="EmptyStatement"/>
|
|
<!--
|
|
jclouds prefers 120 character line lengths but has many files with
|
|
longer lines
|
|
<module name="LineLength">
|
|
<property name="ignorePattern" value="^import\s.*;$"/>
|
|
<property name="max" value="120"/>
|
|
</module>
|
|
-->
|
|
<module name="ModifierOrder"/>
|
|
<module name="MultipleVariableDeclarations"/>
|
|
<module name="RedundantImport"/>
|
|
<module name="RedundantModifier">
|
|
<!-- VARIABLE_DEF disabled -->
|
|
<property name="tokens" value="METHOD_DEF, ANNOTATION_FIELD_DEF, INTERFACE_DEF"/>
|
|
</module>
|
|
<module name="SimplifyBooleanExpression"/>
|
|
<module name="UnnecessaryParentheses"/>
|
|
<module name="UnusedImports"/>
|
|
<module name="WhitespaceAfter">
|
|
<property name="tokens" value="COMMA"/>
|
|
</module>
|
|
<module name="WhitespaceAround">
|
|
<property name="ignoreEnhancedForColon" value="false" />
|
|
<!-- TODO: enable LCURLY, RCURLY, SLIST -->
|
|
<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, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND" />
|
|
</module>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="@author"/>
|
|
<property name="message" value="Do not use Javadoc @author annotation"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new ArrayList<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Lists"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new HashMap<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Maps"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new HashSet<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Sets"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new LinkedHashMap<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Maps"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new LinkedHashSet<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Sets"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new LinkedList<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Lists"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new TreeMap<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Maps"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new TreeSet<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.collect.Sets"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="=\s*new AtomicReference<[^>]"/>
|
|
<property name="message" value="Prefer com.google.common.util.concurrent.Atomics"/>
|
|
</module>
|
|
<module name="RegexpMultiline">
|
|
<property name="format" value="new StringBuffer"/>
|
|
<property name="message" value="Prefer java.lang.StringBuilder"/>
|
|
</module>
|
|
</module>
|