Add two pipeline checks

Add file check_code_before_sq_brackets.sh
Add file check_no_lineids.sh
This commit is contained in:
Federico Rojas
2023-02-03 15:25:56 +01:00
parent 7819f72260
commit 72fa809ac4
3 changed files with 15 additions and 0 deletions

View File

@@ -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

View 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
View File

@@ -0,0 +1,6 @@
#!/bin/sh
git grep '<LineIds' *.Tc*
if test $? -ne 1; then
echo >&2 "LineIds found"
exit 1
fi