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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- This is a checkstyle configuration file. For descriptions of | |
what the following rules do, please see the checkstyle configuration | |
page at http://checkstyle.sourceforge.net/config.html --> | |
<module name="Checker"> |
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
<?xml version="1.0"?> | |
<!DOCTYPE suppressions PUBLIC | |
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | |
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | |
<suppressions> | |
<suppress files="R.java" checks="[a-zA-Z0-9]*"/> | |
<suppress files="BuildConfig.java" checks="[a-zA-Z0-9]*"/> | |
<!-- <suppress files="Test" checks="[a-zA-Z0-9]*"/> --> |
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
apply plugin: 'checkstyle' | |
// Add checkstyle to the check task. | |
check.dependsOn 'checkstyle' | |
task checkstyle(type: Checkstyle) { | |
configFile file("../config/quality/checkstyle/checkstyle.xml") | |
configProperties.checkstyleSuppressionsPath = file("../config/quality/checkstyle/suppressions.xml").absolutePath | |
source 'src' | |
include '**/*.java' |
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
apply plugin: 'pmd' | |
// Add pmd | |
check.dependsOn 'pmd' | |
task pmd(type: Pmd) { | |
ignoreFailures = false | |
ruleSetFiles = files("../config/quality/pmd/pmd-ruleset.xml") | |
source 'src' |
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
<?xml version="1.0"?> | |
<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> |
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
apply plugin: 'findbugs' | |
dependencies { | |
findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.4.2' | |
} | |
// Add findbugs to the check task. | |
check.dependsOn 'findbugs' | |
task findbugs(type: FindBugs, dependsOn: assembleDebug ) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<FindBugsFilter> | |
<!-- http://stackoverflow.com/questions/7568579/eclipsefindbugs-exclude-filter-files-doesnt-work --> | |
<Match> | |
<Class name="~.*\.R\$.*"/> | |
</Match> | |
<Match> | |
<Class name="~.*\.Manifest\$.*"/> | |
</Match> |