1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/bin/sh
- {
- if [ -n "$1" ]; then
- for A in "$@"; do printf "%s\n" "$A"; done
- elif git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
- git ls-files
- else
-
- find . -type f | sed 's@^\./@@'
- fi
- } | grep -E '(^CMake|/CMake|\.cmake$)' | grep -v -E '(\.h\.cmake|\.in)$' \
- | xargs \
- cmakelint \
- --spaces=2 --linelength=132 \
- --filter=-whitespace/indent,-convention/filename,-package/stdargs
|