Skip to content
Snippets Groups Projects
Commit 4c023a3d authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[git-whitespace-hook] Reject CMake files which include tabs.

parent 620fcc7d
No related branches found
No related tags found
No related merge requests found
......@@ -23,12 +23,12 @@ else
fi
# By default, we disallow trailing whitespace for the following files, but the check for C/C++ sources
# By default, we disallow trailing whitespace for the following files, but the check for C/C++ and CMake sources
# happens in the tab-in-indent check to avoid confusing users with duplicate error messages
TRAILING_WHITESPACE_DEFAULT='.*(Makefile.am|configure.ac|dune.module|README|README.SVN|COPYING|INSTALL|TODO|\.cmake|CMakeLists.txt|\.pc\.in)$'
TRAILING_WHITESPACE_DEFAULT='.*(Makefile.am|configure.ac|dune.module|README|README.SVN|COPYING|INSTALL|TODO|\.pc\.in)$'
# By default, we disallow tabs in indents and trailing whitespace in C/C++ source files
TAB_IN_INDENT_DEFAULT='\.(cpp|hpp|cc|hh|c|h)$'
# By default, we disallow tabs in indents and trailing whitespace in C/C++ and CMake source files
TAB_IN_INDENT_DEFAULT='.*(\.cpp|\.hpp|\.cc|\.hh|\.c|\.h|\.cmake|CMakeLists.txt)$'
# Get user preferences
TRAILING_WHITESPACE_FILES=$(git config hooks.whitespace.trailing)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment