Files
firefox/python/mozlint/test/linters/string.yml
T
Andrew Halberstadt ca50f5f66c Bug 1448417 - [mozlint] Remove ability to specify globs in an 'include' directive, r=egao
There is only a single linter (test-disable.yml) that uses a glob in any
include path, and that usage is easily replaced by using the 'extensions' key
instead.

Since globs in include directives aren't very useful, let's disallow them. This
will allow us to simplify the 'filterpaths' logic quite substantially and make
future refactorings in this area easier.

Differential Revision: https://phabricator.services.mozilla.com/D6798
2018-09-25 18:30:23 +00:00

10 lines
222 B
YAML

---
StringLinter:
description: >-
Make sure the string foobar never appears in browser js
files because it is bad
rule: no-foobar
extensions: ['.js', 'jsm']
type: string
payload: foobar