2016-10-09 02:33:12 +03:00
|
|
|
<?xml version="1.0"?>
|
2024-03-29 18:56:51 +03:00
|
|
|
<!--
|
|
|
|
~ Nextcloud - Android Client
|
|
|
|
~
|
|
|
|
~ SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
~ SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
-->
|
2016-10-09 02:33:12 +03:00
|
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Android"
|
|
|
|
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
|
|
|
|
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"
|
|
|
|
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">
|
|
|
|
<description>
|
|
|
|
The ruleset file checks code using rules defined below, new rules can always be added.The
|
|
|
|
pmd.html file contains the report which includes perceived coding issues
|
|
|
|
</description>
|
|
|
|
<exclude-pattern>.*/R.java</exclude-pattern>
|
|
|
|
<exclude-pattern>.*/gen/.*</exclude-pattern>
|
2016-10-14 13:09:13 +03:00
|
|
|
<exclude-pattern>.*/third_parties/.*</exclude-pattern>
|
2016-10-09 02:33:12 +03:00
|
|
|
|
|
|
|
<rule ref="rulesets/java/logging-java.xml" />
|
|
|
|
<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>
|
2019-04-11 16:22:55 +03:00
|
|
|
<rule ref="rulesets/java/naming.xml/MethodNamingConventions">
|
|
|
|
<properties>
|
|
|
|
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[matches(@Image, '.*Test$')]" />
|
|
|
|
</properties>
|
|
|
|
</rule>
|
|
|
|
</ruleset>
|