diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-03-29 03:23:50 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2020-03-29 03:29:40 +0200 |
commit | f2369499b729a1c5ec249572cdbb2d5f4f3326aa (patch) | |
tree | d3704afefbd5478fcf22412ee8e5652c69ce2e17 /.pre-commit-config.yaml | |
parent | 998cd286d46cfc52b9d6bcd210cfb8327f84a8bc (diff) |
Added line-length.py to call clang-format for lines > 100 only
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf9b7c4108..8bf25a2368 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -111,3 +111,14 @@ repos: - commit - push - manual +- repo: local + hooks: + - id: line-length + name: line-length + description: Check for lines longer 100 and brakes them before 80. + entry: ./scripts/line-length.py + stages: + - commit + - push + language: python + files: \.(c|cpp|h)$ |