Check for executable bit on non-executable files

This commit is contained in:
Alexey Milovidov 2020-10-11 19:26:11 +03:00
parent 78c42d5dcd
commit c23c7e3bba

View File

@ -91,3 +91,6 @@ git status -uno | grep ya.make && echo "ya.make files should be generated with u
# Check that every header file has #pragma once in first line
find $ROOT_PATH/{src,programs,utils} -name '*.h' | while read file; do [[ $(head -n1 $file) != '#pragma once' ]] && echo "File $file must have '#pragma once' in first line"; done
# Check for executable bit on non-executable files
find $ROOT_PATH/{src,base,programs,utils,tests,docs,website,cmake} '(' -name '*.cpp' -or -name '*.h' -or -name '*.sql' -or -name '*.xml' -or -name '*.reference' -or -name '*.txt' -or -name '*.md' ')' -and -executable | grep -q '.' && echo "These files should not be executable."