Merge pull request #9550 from ClickHouse/check-style-check-xml

Validate XML in style check
This commit is contained in:
alexey-milovidov 2020-03-07 15:36:23 +03:00 committed by GitHub
commit 283387b4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,3 +48,6 @@ find $ROOT_PATH/{dbms,base} -name '*.h' -or -name '*.cpp' | xargs grep -l -P 'Er
# Three or more consecutive empty lines
find $ROOT_PATH/{dbms,base} -name '*.h' -or -name '*.cpp' | while read file; do awk '/^$/ { ++i; if (i > 2) { print "More than two consecutive empty lines in file '$file'" } } /./ { i = 0 }' $file; done
# Broken XML files (requires libxml2-utils)
find $ROOT_PATH/{dbms,base} -name '*.xml' | xargs xmllint --noout --nonet