3 # Run cmakelint on all cmake files in IDF_PATH (except third party)
5 # cmakelint: https://github.com/richq/cmake-lint
7 # NOTE: This script makes use of features in (currently unreleased)
8 # cmakelint >1.4. Install directly from github as follows:
10 # pip install https://github.com/richq/cmake-lint/archive/058c6c0ed2536.zip
13 if [ -z "${IDF_PATH}" ]; then
14 echo "IDF_PATH variable needs to be set"
18 # Only list the "main" IDF repo, don't check any files in submodules (which may contain
19 # third party CMakeLists.txt)
20 git ls-tree --full-tree --name-only -r HEAD | grep -v "/third_party/" | grep "CMakeLists.txt\|\.cmake$" \
21 | xargs cmakelint --linelength=120 --spaces=4