A potentially useful pre-commit hook for Android developers using git.
The lintcheck pre-commit hook runs lint --exitcode . before allowing a commit to occur. If lint returns a non-zero exit code, it will fail the commit. Users can customize their hook using git config values for hooks.lintTargetDirectory to change the directory to check and hooks.lintArgs to add lint arguments they prefer to use, such as -Werror.