contrib/check-code.py
branchstable
changeset 50725 7e5be4a7cda7
parent 49570 3a2b6158374a
child 50726 65f949da8469
--- a/contrib/check-code.py	Mon Jun 26 11:15:30 2023 +0100
+++ b/contrib/check-code.py	Mon Jun 26 14:34:58 2023 +0200
@@ -146,10 +146,7 @@
             r'\[[^\]]+==',
             '[ foo == bar ] is a bashism, use [ foo = bar ] instead',
         ),
-        (
-            r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
-            "use egrep for extended grep syntax",
-        ),
+        (r'(^|\|\s*)egrep', "use grep -E for extended grep syntax"),
         (r'(^|\|\s*)e?grep .*\\S', "don't use \\S in regular expression"),
         (r'(?<!!)/bin/', "don't use explicit paths for tools"),
         (r'#!.*/bash', "don't use bash in shebang, use sh"),