Skip to content

Commit

Permalink
use maintained cmake-lint fork for codeql workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Koeppe committed Feb 1, 2025
1 parent f03a117 commit f5bb9a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +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: |
git clone https://github.com/richq/cmake-lint.git
cd cmake-lint
python setup.py install --user
cd -
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 f5bb9a3

Please # to comment.