You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# So lines like: "/* */ /*" or "*/ a = 5; /*" will result in error
47
56
- name: Check for unsupported multiline comments
48
57
run: |
49
-
if git ls-files | grep -E '^src/.*\.cpp$|^src/.*\.[ch]$' | xargs grep -n '\*/.*/\*'; then echo -e "\033[0;31mUnsupported combination of multiline comments. New multiline comment should begin on new line."; (exit 1); else (exit 0); fi
50
-
if git ls-files | grep -E '\.lua$' | xargs grep -n -e '\]\].*--\[\['; then echo -e "\033[0;31mUnsupported combination of multiline comments. New multiline comment should begin on new line."; (exit 1); else (exit 0); fi
58
+
if git ls-files |\
59
+
grep -E '^src/.*\.cpp$|^src/.*\.[ch]$' |\
60
+
xargs grep -n '\*/.*/\*';\
61
+
then
62
+
echo -e "\033[0;31mUnsupported combination of multiline comments. New multiline comment should begin on new line.";\
63
+
(exit 1);\
64
+
else\
65
+
(exit 0);\
66
+
fi
67
+
if git ls-files |\
68
+
grep -E '\.lua$' |\
69
+
xargs grep -n -e '\]\].*--\[\[';\
70
+
then
71
+
echo -e "\033[0;31mUnsupported combination of multiline comments. New multiline comment should begin on new line.";\
72
+
(exit 1);\
73
+
else\
74
+
(exit 0);\
75
+
fi
51
76
# This prepare files for final check
52
77
# See python script ./util/ci/indent_tab_preprocess.py for details.
0 commit comments