From af45630949c2091afd45d256c7f3ec6c526899a9 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 12 Jun 2015 15:22:02 +0200 Subject: [PATCH] Check for webidl2.js references. The canonical location of the WebIDL parser is /resources/WebIDLParser.js. --- lint/lint.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lint/lint.py b/lint/lint.py index 2d63f01d403881..76453f0cdfdf67 100644 --- a/lint/lint.py +++ b/lint/lint.py @@ -111,6 +111,10 @@ class W3CTestOrgRegexp(Regexp): pattern = "w3c\-test\.org" error = "W3C-TEST.ORG" +class Webidl2Regexp(Regexp): + pattern = "webidl2\.js" + error = "WEBIDL2.JS" + class PrintRegexp(Regexp): pattern = "print(?:\s|\s*\()" error = "PRINT STATEMENT" @@ -121,6 +125,7 @@ class PrintRegexp(Regexp): TabsRegexp, CRRegexp, W3CTestOrgRegexp, + Webidl2Regexp, PrintRegexp]] def check_regexp_line(path, f):