This repository was archived by the owner on Apr 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: opfpush-providers/adm/build.gradle opfpush-providers/gcm/build.gradle opfpush-providers/nokia/build.gradle opfpush/build.gradle samples/opfpush-sample/build.gradle
- Loading branch information
Showing
38 changed files
with
526 additions
and
226 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,116 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
|
||
<ruleset name="ruleset" xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
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>POM rule set file</description> | ||
|
||
<rule ref="rulesets/java/android.xml"/> | ||
|
||
<rule ref="rulesets/java/basic.xml"/> | ||
|
||
<rule ref="rulesets/java/braces.xml"/> | ||
|
||
<rule ref="rulesets/java/clone.xml"/> | ||
|
||
<rule ref="rulesets/java/codesize.xml"/> | ||
<rule ref="rulesets/java/codesize.xml/CyclomaticComplexity"> | ||
<properties> | ||
<property name="reportLevel" value="20"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/java/codesize.xml/TooManyMethods"> | ||
<properties> | ||
<property name="maxmethods" value="25"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/comments.xml"> | ||
<exclude name="CommentRequired"/> | ||
<exclude name="CommentSize"/> | ||
</rule> | ||
<!--<rule ref="rulesets/java/comments.xml/CommentSize">--> | ||
<!--<properties>--> | ||
<!--<property name="violationSuppressRegex" value="/\*\n[\s*]*Copyright(?s).*" />--> | ||
<!--</properties>--> | ||
<!--</rule>--> | ||
|
||
<rule ref="rulesets/java/controversial.xml"> | ||
<!-- while ((x = update()) != null) { process(x); } --> | ||
<exclude name="AssignmentInOperand"/> | ||
<exclude name="AtLeastOneConstructor"/> | ||
<exclude name="AvoidFinalLocalVariable"/> | ||
<exclude name="AvoidLiteralsInIfCondition"/> | ||
<exclude name="AvoidPrefixingMethodParameters"/> | ||
<exclude name="AvoidUsingVolatile"/> | ||
<exclude name="DataflowAnomalyAnalysis"/> | ||
<exclude name="DefaultPackage"/> | ||
<exclude name="NullAssignment"/> | ||
<exclude name="OnlyOneReturn"/> | ||
<exclude name="UseConcurrentHashMap"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/coupling.xml"> | ||
<exclude name="ExcessiveImports"/> | ||
<exclude name="LawOfDemeter"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/design.xml"> | ||
<exclude name="AvoidReassigningParameters"/> | ||
<!-- if (x != y) { short code block } else { long code block } --> | ||
<exclude name="ConfusingTernary"/> | ||
<exclude name="FieldDeclarationsShouldBeAtStartOfClass"/> | ||
<exclude name="SwitchStmtsShouldHaveDefault"/> | ||
<!-- Android listeners contain a lot of such switch statements --> | ||
<exclude name="TooFewBranchesForASwitchStatement"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/empty.xml"/> | ||
|
||
<rule ref="rulesets/java/finalizers.xml"/> | ||
|
||
<rule ref="rulesets/java/imports.xml"> | ||
<exclude name="TooManyStaticImports"/> | ||
</rule> | ||
|
||
<!--<rule ref="rulesets/java/junit.xml"/>--> | ||
|
||
<rule ref="rulesets/java/logging-jakarta-commons.xml"> | ||
<exclude name="GuardLogStatement"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/logging-java.xml"> | ||
<exclude name="GuardLogStatementJavaUtil"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/migrating.xml"/> | ||
|
||
<rule ref="rulesets/java/naming.xml"> | ||
<exclude name="AbstractNaming"/> | ||
<exclude name="AvoidFieldNameMatchingMethodName"/> | ||
<exclude name="LongVariable"/> | ||
<exclude name="ShortClassName"/> | ||
<exclude name="ShortVariable"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/optimizations.xml"> | ||
<exclude name="AvoidInstantiatingObjectsInLoops"/> | ||
<exclude name="LocalVariableCouldBeFinal"/> | ||
<exclude name="MethodArgumentCouldBeFinal"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/strictexception.xml"/> | ||
|
||
<rule ref="rulesets/java/strings.xml"/> | ||
|
||
<rule ref="rulesets/java/typeresolution.xml"> | ||
<exclude name="LooseCoupling"/> | ||
</rule> | ||
|
||
<rule ref="rulesets/java/unnecessary.xml"/> | ||
|
||
<rule ref="rulesets/java/unusedcode.xml"/> | ||
|
||
</ruleset> |
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
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
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
Oops, something went wrong.