Skip to content

Commit 43c1ac8

Browse files
committed
#21 CMake format fix script
1 parent 943ee0a commit 43c1ac8

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

scripts/README.MD

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# Script description
2-
3-
## format_fix.sh
1+
# format_fix.sh
42

53
- It fixes the code formatting according to *.clang-format* format configuration in the root dir.
64

7-
## check_suspect_words.py
5+
# check_suspect_words.py
86

97
- Create marker file with suspect words
108
```bash
@@ -20,7 +18,7 @@ python check_suspect_words.py . --marker-file markers.txt --ext .py .cpp
2018
```bash
2119
python check_suspect_words.py ./src --marker-file markers.txt --ext .py .cpp
2220
```
23-
## check_boilerplates.py
21+
# check_boilerplates.py
2422

2523
It recursively scans the directory for source files (you can define which extensions to include). Then it compares the beginning of each file against the boilerplate template. Finally it print which files pass or fail.
2624

@@ -36,7 +34,7 @@ boilerplate.txt = your reference boilerplate (e.g., license header).
3634

3735
It will check the first N lines of each file (where N is the number of lines in the boilerplate).
3836

39-
## check_file_size.py
37+
# check_file_size.py
4038
It
4139
- Walks the directory recursively.
4240
- For each file → count code lines.
@@ -48,7 +46,7 @@ Collects:
4846

4947
At the end → prints statistics + exit non-zero if any failed.
5048

51-
### Usage
49+
## Usage
5250
python count_code_lines.py <dir> <max_lines> [comment_symbol] [ext1 ext2 ...]
5351

5452
Check all Python files under src/, max 500 lines allowed:

scripts/format_fix_cmake.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake-format -i CMakeLists.txt
2+
cmake-format -i src/CMakeLists.txt
3+
cmake-format -i test/CMakeLists.txt

0 commit comments

Comments
 (0)