Add the following additional checks:
- executables have shebang lines
- no merge conflict strings
- End of files contain empty new line
and update files that currently are missing end of file empty lines.
Change-Id: I77b1c9629e69753856afa0f15ae0f244be5a2428
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v1.3.0
+ rev: v1.4.0
hooks:
+ - id: check-executables-have-shebangs
+ - id: check-merge-conflict
+ - id: end-of-file-fixer
- id: trailing-whitespace
- curl -Lo .git/hooks/commit-msg http://USERNAME@gerrit.linuxfoundation.org/infra/tools/hooks/commit-msg
\ No newline at end of file
+ curl -Lo .git/hooks/commit-msg http://USERNAME@gerrit.linuxfoundation.org/infra/tools/hooks/commit-msg
gpg2 --send-keys $KEY_ID
# in the above example, the $KEY_ID would be F566C9B1
# you should see output like this:
-# gpg: sending key F566C9B1 to hkp server keys.gnupg.net
\ No newline at end of file
+# gpg: sending key F566C9B1 to hkp server keys.gnupg.net
{% endif %}
</div>
</center>
-