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

Commit 53ef795e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add api lint to upload checks"

parents 72467361 53b2a73c
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -7,3 +7,4 @@ checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPL
                      services/print/
                      services/print/
                      services/usb/
                      services/usb/


api_lint_hook = ${REPO_ROOT}/frameworks/base/tools/apilint/apilint_sha.sh ${PREUPLOAD_COMMIT}
+6 −4
Original line number Original line Diff line number Diff line
@@ -1371,7 +1371,9 @@ if __name__ == "__main__":
            print
            print
        """
        """


    if len(cur_fail) != 0:
        print "%s API style issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
        print "%s API style issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
        for f in sorted(cur_fail):
        for f in sorted(cur_fail):
            print cur_fail[f]
            print cur_fail[f]
            print
            print
        sys.exit(77)
+4 −0
Original line number Original line Diff line number Diff line
#!/bin/bash
if git show --name-only --pretty=format: $1 | grep api/ > /dev/null; then
    python tools/apilint/apilint.py <(git show $1:api/current.txt) <(git show $1^:api/current.txt)
fi