Skip to content

Commit

Permalink
Add verbosity to CMake Lint step
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Koeppe committed Jan 31, 2025
1 parent 3e0af5a commit ba53b61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y bison check cmake debhelper flex groff libbsd-dev libcurl4-openssl-dev libmaxminddb-dev libgtk-3-dev libgtk2.0-dev libidn11-dev libltdl-dev libluajit-5.1-dev libncurses5-dev libnet1-dev libpcap-dev libpcre3-dev librtmp-dev libssl-dev
- name: CMake formatting check
- run: |
pip install cmakelint
./misc/cmakelint.sh
- name: Building software
- run: |
mkdir build
cd build
cmake -DENABLE_TESTS=Off $BUILD_ARGS ..
Expand Down
3 changes: 2 additions & 1 deletion misc/cmakelint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ FILTERS=\
+whitespace/newline,\
+whitespace/tabs

echo Running CMake Lint against CMake files
CMAKELINT="cmakelint --filter=$FILTERS --quiet --spaces=2"

FIND="$(find $ECROOT \
-name CMakeLists.txt -not -path "$ECROOT/build*/*" -or \
-name *.cmake -not -path "$ECROOT/build*/*")"

$CMAKELINT $FIND
$CMAKELINT $FIND

0 comments on commit ba53b61

Please # to comment.