-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from TAK-Product-Center/upstream/4.8-RELEASE-63
TAK Server 4.8-RELEASE-63
- Loading branch information
Showing
358 changed files
with
11,292 additions
and
6,958 deletions.
There are no files selected for viewing
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,35 @@ | ||
{ | ||
"allowedLicenses": [ | ||
{"moduleLicense": "Apache License, Version 2.0"}, | ||
{"moduleLicense": "Apache License"}, | ||
{"moduleLicense": "Apache Software License, version 1.1"}, | ||
{"moduleLicense": "The MIT License"}, | ||
{"moduleLicense": "The 3-Clause BSD License"}, | ||
{"moduleLicense": "The 2-Clause BSD License"}, | ||
|
||
{"moduleLicense": "BSD"}, | ||
{"moduleLicense": "New BSD License"}, | ||
{"moduleLicense": "BSD New license"}, | ||
{"moduleLicense": "The New BSD License"}, | ||
{"moduleLicense": "The BSD License"}, | ||
{"moduleLicense": "Revised BSD"}, | ||
{"moduleLicense": "BSD-style"}, | ||
|
||
{"moduleLicense": "Public Domain"}, | ||
{"moduleLicense": "PUBLIC DOMAIN"}, | ||
{"moduleLicense": "Common Public License Version 1.0"}, | ||
|
||
{"moduleLicense": "CDDL + GPLv2 with classpath exception"}, | ||
{"moduleLicense": "LGPL, version 2.1"}, | ||
{"moduleLicense": "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0"}, | ||
{"moduleLicense": "GPL2 w/ CPE"}, | ||
{"moduleLicense": "CDDL 1.1"}, | ||
{"moduleLicense": "LGPL"}, | ||
{"moduleLicense": "Google Cloud Software License"}, | ||
{"moduleLicense": "GNU Lesser General Public License"}, | ||
{"moduleLicense": "CDDL+GPL License"}, | ||
{"moduleLicense": "ASL"}, | ||
{"moduleLicense": "COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1"}, | ||
{"moduleLicense": null} | ||
] | ||
} |
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,110 @@ | ||
<?xml version="1.0"?> | ||
|
||
<ruleset name="Custom Rules" | ||
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> | ||
<description> | ||
My custom rules | ||
</description> | ||
<rule ref="category/java/bestpractices.xml"> | ||
<exclude name="UnusedPrivateMethod"/> | ||
</rule> | ||
<rule ref="category/java/design.xml"> | ||
<exclude name="LoosePackageCoupling"/> | ||
<exclude name="ExcessiveImports"/> | ||
<exclude name="TooManyFields"/> | ||
<exclude name="TooManyMethods"/> | ||
<exclude name="LawOfDemeter"/> | ||
<exclude name="NcssCount"/> | ||
<exclude name="CyclomaticComplexity"/> | ||
<exclude name="NPathComplexity"/> | ||
</rule> | ||
<rule ref="category/java/errorprone.xml"> | ||
<exclude name="SimpleDateFormatNeedsLocale"/> | ||
<exclude name="MissingSerialVersionUID"/> | ||
<exclude name="BeanMembersShouldSerialize"/> | ||
<exclude name="UseLocaleWithCaseConversions"/> | ||
<exclude name="UseLocaleWithCaseConversions"/> | ||
|
||
</rule> | ||
<rule ref="category/java/performance.xml"/> | ||
<rule ref="category/java/security.xml"/> | ||
|
||
<!-- The next three rules replace the functionality of the naming/VariableNamingConventions rule. We want to | ||
allow "logger" as a special case of static final. The other two rules are re-implementations of | ||
functionality from the builtin rule in XPath since we disabled it, but we want them to be run. --> | ||
|
||
<rule name="StaticFieldsUpperCaseExceptLogger" | ||
language="java" | ||
message="Variables that are final and static should be in all caps." | ||
class="net.sourceforge.pmd.lang.rule.XPathRule"> | ||
<description> | ||
Static final fields should have names in all upper case | ||
</description> | ||
<properties> | ||
<property name="xpath"> | ||
<value> | ||
<![CDATA[ | ||
//FieldDeclaration[@Static='true' and @Final='true']/VariableDeclarator/VariableDeclaratorId[upper-case(@Name) != @Name and @Name != 'logger'] | ||
]]> | ||
</value> | ||
</property> | ||
</properties> | ||
<example> | ||
<![CDATA[ | ||
private static final String lower = "foo"; // don't do this! | ||
]]> | ||
</example> | ||
</rule> | ||
|
||
<rule name="VariableNamesStartWithLowerCaseLetter" | ||
language="java" | ||
message="Variables should start with a lowercase character" | ||
class="net.sourceforge.pmd.lang.rule.XPathRule"> | ||
<description> | ||
Normal variables should start with lower case letters | ||
</description> | ||
<properties> | ||
<property name="xpath"> | ||
<value> | ||
<![CDATA[ | ||
//VariableDeclaratorId[lower-case(substring(@Name,1,1))!=substring(@Name,1,1)]/../..[@Static='false' and @Final='false'] | ||
]]> | ||
</value> | ||
</property> | ||
</properties> | ||
<example> | ||
<![CDATA[ | ||
public void foo() { | ||
int XYZ; // Don't do this | ||
} | ||
]]> | ||
</example> | ||
</rule> | ||
|
||
<rule name="VariableNamesShouldNotContainUnderscore" | ||
language="java" | ||
message="Variables that are not final should not contain underscores" | ||
class="net.sourceforge.pmd.lang.rule.XPathRule"> | ||
<description> | ||
Non-final variables should not have underscores in the name | ||
</description> | ||
<properties> | ||
<property name="xpath"> | ||
<value> | ||
<![CDATA[ | ||
//VariableDeclaratorId[contains(@Name,'_')]/../..[@Final='false'] | ||
]]> | ||
</value> | ||
</property> | ||
</properties> | ||
<example> | ||
<![CDATA[ | ||
public void foo() { | ||
int a_value; // Don't do this | ||
} | ||
]]> | ||
</example> | ||
</rule> | ||
</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 was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.