summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-01-10 17:22:45 -0500
committerRick Waldron <waldron.rick@gmail.com>2018-01-10 17:25:44 -0500
commit40cb228633ae276b4eb6133abef6dfe8e70c54bf (patch)
tree450f6f4449f51c9ce2ea596ef55f8cc7d8288296 /tools
parentb1aa569c84501f354003dc5ea071539bb2fa03e1 (diff)
downloadqtdeclarative-testsuites-40cb228633ae276b4eb6133abef6dfe8e70c54bf.tar.gz
lint: accept frontmatter without esid, es6id.
Diffstat (limited to 'tools')
-rw-r--r--tools/lint/lib/checks/esid.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/tools/lint/lib/checks/esid.py b/tools/lint/lib/checks/esid.py
index e2c85af3d..eb3cc8a08 100644
--- a/tools/lint/lib/checks/esid.py
+++ b/tools/lint/lib/checks/esid.py
@@ -14,6 +14,9 @@ class CheckEsid(Check):
if not meta:
return
+ if 'es6id' not in meta and 'esid' not in meta:
+ return
+
# es5ids are a mess
#if 'es5id' in meta:
# es5id = str(meta['es5id'])
@@ -21,11 +24,13 @@ class CheckEsid(Check):
# return 'The `es5id` tag has the wrong format: %s' % es5id
if 'es6id' in meta:
- es6id = str(meta['es6id'])
- if self.es6idRegex.match(es6id) == None:
- return 'The `es6id` tag has the wrong format: %s' % es6id
+ es6id = str(meta['es6id'])
+ if self.es6idRegex.match(es6id) == None:
+ return 'The `es6id` tag has the wrong format: %s' % es6id
if 'esid' in meta:
- esid = str(meta['esid'])
- if self.esidRegex.match(esid) == None:
- return 'The `esid` tag has the wrong format: %s' % esid
+ esid = str(meta['esid'])
+ if self.esidRegex.match(esid) == None:
+ return 'The `esid` tag has the wrong format: %s' % esid
+
+