summaryrefslogtreecommitdiff
path: root/python/mozlint/test/linters/regex.lint
diff options
context:
space:
mode:
Diffstat (limited to 'python/mozlint/test/linters/regex.lint')
-rw-r--r--python/mozlint/test/linters/regex.lint15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/mozlint/test/linters/regex.lint b/python/mozlint/test/linters/regex.lint
new file mode 100644
index 0000000000..439cadf366
--- /dev/null
+++ b/python/mozlint/test/linters/regex.lint
@@ -0,0 +1,15 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+
+LINTER = {
+ 'name': "RegexLinter",
+ 'description': "Make sure the string 'foobar' never appears "
+ "in a js variable file because it is bad.",
+ 'rule': 'no-foobar',
+ 'include': [
+ '**/*.js',
+ '**/*.jsm',
+ ],
+ 'type': 'regex',
+ 'payload': 'foobar',
+}