summaryrefslogtreecommitdiff
path: root/python/mozlint/test/linters/regex.lint
blob: 439cadf36600371befbfdfce08a5e62c99ae0acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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',
}