Skip to content

Commit

Permalink
fixed cmake format and lint hook bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vamsikalagaturu committed Nov 25, 2024
1 parent d83da13 commit a9239bf
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,20 @@ repos:
- -extra-arg=../../install/include # Replace 'install/include' with your actual system include path

- id: cmake-format
name: cmake-format
entry: cmake-format
language: python
types: [cmake]
args: [--line-width, '100', '--tab-size', '4', '--in-place']
name: CMake Format
entry: bash -c 'find . \( -name 'CMakeLists.txt' \) -exec cmake-format --line-width 100 --tab-size
4 -i {} \;'
language: system
types: [text]
pass_filenames: false

- id: cmake-lint
name: cmake-lint
entry: cmake-lint
language: python
types: [cmake]
args: ['--disabled-codes', 'C0113 C0301']
entry: bash -c 'find . -name CMakeLists.txt -exec cmake-lint {} --disabled-codes C0113 C0301 C0307
\;'
language: system
types: [text]
pass_filenames: false

- repo: https://github.com/google/yamlfmt
rev: v0.10.0
Expand Down

0 comments on commit a9239bf

Please sign in to comment.