mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
Fix bugs in mach test-tidy
(#31232)
* mach: test-tidy should return 1 for failure Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * fix lint issues Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * mach: tidy should allow spec links with trailing text Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
b2f73723f8
commit
04a9b8ca39
4 changed files with 4 additions and 6 deletions
|
@ -822,7 +822,7 @@ def check_spec(file_name, lines):
|
|||
macro_patt = re.compile(r"^\s*\S+!(.*)$")
|
||||
|
||||
# Pattern representing a line with comment containing a spec link
|
||||
link_patt = re.compile(r"^\s*///? (<https://.+>|https://.+)$")
|
||||
link_patt = re.compile(r"^\s*///? (<https://.+>.*|https://.+)$")
|
||||
|
||||
# Pattern representing a line with comment or attribute
|
||||
comment_patt = re.compile(r"^\s*(///?.+|#\[.+\])$")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue