mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-29 12:05:53 +01:00
770fa952d0
Also needs java8, hopefully only for compilation though (we need java7 for KitKat) This also fixes lots of exceptions in the pmd report.
50 lines
2.0 KiB
XML
50 lines
2.0 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
~ Copyright 2015 Vincent Brison.
|
|
~
|
|
~ Licensed 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.
|
|
-->
|
|
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Android Application Rules"
|
|
xmlns="http://pmd.sf.net/ruleset/1.0.0"
|
|
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
|
|
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd">
|
|
|
|
<description>Custom ruleset for Android application</description>
|
|
|
|
<exclude-pattern>.*/R.java</exclude-pattern>
|
|
<exclude-pattern>.*/gen/.*</exclude-pattern>
|
|
|
|
<rule ref="rulesets/java/android.xml">
|
|
</rule>
|
|
<rule ref="rulesets/java/clone.xml" />
|
|
<rule ref="rulesets/java/finalizers.xml" />
|
|
<rule ref="rulesets/java/imports.xml">
|
|
<!-- Espresso is designed this way !-->
|
|
<exclude name="TooManyStaticImports" />
|
|
</rule>
|
|
<rule ref="rulesets/java/logging-java.xml">
|
|
<!-- disabled because of lots of NullPointerExceptions -->
|
|
<exclude name="InvalidSlf4jMessageFormat"/>
|
|
</rule>
|
|
<rule ref="rulesets/java/braces.xml" />
|
|
<rule ref="rulesets/java/strings.xml" />
|
|
<rule ref="rulesets/java/basic.xml" />
|
|
<rule ref="rulesets/java/naming.xml">
|
|
<exclude name="AbstractNaming" />
|
|
<exclude name="LongVariable" />
|
|
<exclude name="ShortMethodName" />
|
|
<exclude name="ShortVariable" />
|
|
<exclude name="VariableNamingConventions" />
|
|
</rule>
|
|
</ruleset> |