1repos:
2    - repo: https://github.com/pre-commit/pre-commit-hooks
3      rev: v2.5.0
4      hooks:
5        - id: trailing-whitespace
6        - id: end-of-file-fixer
7        - id: check-merge-conflict
8        - id: mixed-line-ending
9        - id: check-byte-order-marker
10    - repo: local
11      hooks:
12        - id: clang-format
13          name: clang-format
14          entry: clang-format
15          language: system
16          files: \.(c|cc|cxx|cpp|h|hpp|hxx|js|proto)$
17          args: ["-i"]
18        - id: cpplint
19          name: cpplint
20          entry: cpplint
21          language: system
22          files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
23          args:
24            - --recursive
25