mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-02 17:29:22 +02:00
![pre-commit-ci[bot]](/assets/img/avatar_default.png)
updates: - [github.com/pre-commit/mirrors-clang-format: v20.1.8 → v21.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v20.1.8...v21.1.0)
17 lines
775 B
YAML
17 lines
775 B
YAML
# This pre-commit configuration file configures clang-format to run upon running the command line command 'git commit'.
|
|
# The pre-commit git hook is installed using the command line command 'pre-commit install'.
|
|
|
|
exclude: '^Software/src/lib/' # don't run hooks on external libraries
|
|
|
|
# This continuous integration section is optional, and enables autoupdating the pre-commit configuration, ensuring that
|
|
# the hook versions are kept up to date.
|
|
ci:
|
|
autoupdate_schedule: monthly
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v21.1.0
|
|
hooks:
|
|
- id: clang-format
|
|
args: [-Werror] # change formatting warnings to errors, hook includes -i (Inplace edit) by default
|
|
types_or: [c++, c] # override default file types to only C and CPP files
|