lint: Exempt "opts." from addClass checks.

If we use something like "opts.highlight_class", it's probably
in a generic widget.
This commit is contained in:
Steve Howell
2018-04-21 14:41:07 +00:00
committed by Tim Abbott
parent ebe6144326
commit 9ece6d2be4

View File

@@ -93,6 +93,8 @@ def find(fns):
continue
elif 'stream_dark' in line:
continue
elif 'opts.' in line:
continue
elif fn == 'signup.js' and 'class_to_add' in line:
html_classes = ['error', 'success']
elif fn == 'ui_report.js' and 'status_classes' in line: