string.lint 365 B

123456789101112131415
  1. # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
  2. LINTER = {
  3. 'name': "StringLinter",
  4. 'description': "Make sure the string 'foobar' never appears "
  5. "in browser js files because it is bad.",
  6. 'rule': 'no-foobar',
  7. 'include': [
  8. '**/*.js',
  9. '**/*.jsm',
  10. ],
  11. 'type': 'string',
  12. 'payload': 'foobar',
  13. }