Skip to content

Commit

Permalink
Set line width 100 and tab size 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Dec 10, 2024
1 parent 1a1e077 commit 2ff7a05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: clang-format
run: |
pip install cmakelang
cmake-lint $(find . -name CMakeLists.txt) --disabled {C0103,C0113}
cmake-lint $(find . -name CMakeLists.txt) \
--disabled {C0103,C0113} --line-width 100 --tab-size 4
# NOTE: We ignore C0103, which would enforce that variables are all-caps
# NOTE: We ignore C0113, which would enforce that comments are used
2 changes: 1 addition & 1 deletion .pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ done

# Apply cmake-lint for linting
for FILE in $(git diff --cached --name-only | grep -i 'CMakeLists.txt'); do
cmake-lint ${FILE} --disabled {C0103,C0113} --line-width 100
cmake-lint ${FILE} --disabled {C0103,C0113} --line-width 100 --tab-size 4
done

# Abort commit if formatting was applied
Expand Down

0 comments on commit 2ff7a05

Please sign in to comment.