Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eade900f authored by William Escande's avatar William Escande
Browse files

Put back checkstyle to include more than format

Bug: 343776166
Test: None
Flag: Exempt INFRA
Change-Id: I95aa237aa47222885da1fe07bab1a250ca3e05a1
parent faf3b0ae
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,14 @@ rustfmt = --config-path=rustfmt.toml


[Hook Scripts]
[Hook Scripts]
aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ${PREUPLOAD_FILES}
aosp_first = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} ${PREUPLOAD_FILES}
# google_java_format only fixes indentation. This has Android specific checks like "m" prefix.
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
                  --config_xml checkstyle.xml
                  -fw android/app/src/com/android/bluetooth/
                      android/app/lib/mapapi/com/android/bluetooth/mapapi/
                      android/app/tests/src/com/android/bluetooth/
                      framework/
                      service/
yapf_hook = ./system/tools/scripts/yapf_checker.py
yapf_hook = ./system/tools/scripts/yapf_checker.py


[Tool Paths]
[Tool Paths]

checkstyle.xml

0 → 100644
+19 −0
Original line number Original line Diff line number Diff line
<?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" [
  <!ENTITY defaultCopyrightCheck SYSTEM "../../../prebuilts/checkstyle/default-copyright-check.xml">
  <!ENTITY defaultJavadocChecks SYSTEM "../../../prebuilts/checkstyle/default-javadoc-checks.xml">
  <!ENTITY defaultTreewalkerChecks SYSTEM "../../../prebuilts/checkstyle/default-treewalker-checks.xml">
  <!ENTITY defaultModuleChecks SYSTEM "../../../prebuilts/checkstyle/default-module-checks.xml">
]>

<module name="Checker">
  &defaultModuleChecks;
  &defaultCopyrightCheck;
  <module name="TreeWalker">
    &defaultJavadocChecks;
    &defaultTreewalkerChecks;
  </module>
  <module name="SuppressionFilter">
    <property name="file" value="checkstyle_suppressions.xml" />
  </module>
</module>
+6 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
    <!-- Let google-java-format handle the ImportOrder. -->
    <suppress files=".*" checks="ImportOrder" />
</suppressions>