Skip to content

Commit

Permalink
Merge pull request #12 from w3c/webidl
Browse files Browse the repository at this point in the history
Check for webidl2.js references.
  • Loading branch information
jgraham committed Jun 15, 2015
2 parents 0186b88 + af45630 commit 9fc4323
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lint/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -121,6 +125,7 @@ class PrintRegexp(Regexp):
TabsRegexp,
CRRegexp,
W3CTestOrgRegexp,
Webidl2Regexp,
PrintRegexp]]

def check_regexp_line(path, f):
Expand Down

0 comments on commit 9fc4323

Please sign in to comment.