Add two pipeline checks
Add file check_code_before_sq_brackets.sh Add file check_no_lineids.sh
This commit is contained in:
@@ -8,3 +8,6 @@ pipelines:
|
||||
- git submodule update --init
|
||||
- python twincat_version_manager.py
|
||||
- python check_fix_white_space.py
|
||||
- ./check_no_lineids.sh
|
||||
- ./check_code_before_sq_brackets.sh
|
||||
|
||||
|
||||
6
check_code_before_sq_brackets.sh
Normal file
6
check_code_before_sq_brackets.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
git grep '.\]\]>' *.Tc*
|
||||
if test $? -ne 1; then
|
||||
echo >&2 "code before double square brackets found"
|
||||
exit 1
|
||||
fi
|
||||
6
check_no_lineids.sh
Normal file
6
check_no_lineids.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
git grep '<LineIds' *.Tc*
|
||||
if test $? -ne 1; then
|
||||
echo >&2 "LineIds found"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user