mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
Bug 1387862 - Lint python/mozlint yaml files. r=ahal
We should have CI Lint YAML files in the tree. MozReview-Commit-ID: IMOKGhxKFJW --HG-- extra : rebase_source : 0ef71f24141a531833d48f2a305183dd808f00f5
This commit is contained in:
parent
0985529c39
commit
906fda8397
@ -1,3 +1,4 @@
|
||||
---
|
||||
BadReturnCodeLinter:
|
||||
description: Returns an error code no matter what
|
||||
include:
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
ExplicitPathLinter:
|
||||
description: Only lint a specific file name
|
||||
rule: no-foobar
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
ExternalLinter:
|
||||
description: It's bad to have the string foobar in js files.
|
||||
include:
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
BadExcludeLinter:
|
||||
description: Has an invalid exclude directive.
|
||||
exclude: [0, 1] # should be a list of strings
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
BadExtensionLinter:
|
||||
description: Has an invalid file extension.
|
||||
type: string
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
BadIncludeLinter:
|
||||
description: Has an invalid include directive.
|
||||
include: should be a list
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
BadTypeLinter:
|
||||
description: Has an invalid type.
|
||||
type: invalid
|
||||
|
@ -1,2 +1,3 @@
|
||||
---
|
||||
MissingAttrsLinter:
|
||||
description: Missing type and payload
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
RaisesLinter:
|
||||
description: Raises an exception
|
||||
type: external
|
||||
|
@ -1,5 +1,8 @@
|
||||
---
|
||||
RegexLinter:
|
||||
description: Make sure the string foobar never appears in a js variable file because it is bad.
|
||||
description: >-
|
||||
Make sure the string foobar never appears in a js variable
|
||||
file because it is bad.
|
||||
rule: no-foobar
|
||||
include:
|
||||
- '**/*.js'
|
||||
|
@ -1,5 +1,8 @@
|
||||
---
|
||||
StringLinter:
|
||||
description: Make sure the string foobar never appears in browser js files because it is bad
|
||||
description: >-
|
||||
Make sure the string foobar never appears in browser js
|
||||
files because it is bad
|
||||
rule: no-foobar
|
||||
include:
|
||||
- '**/*.js'
|
||||
|
@ -1,3 +1,4 @@
|
||||
---
|
||||
StructuredLinter:
|
||||
description: "It's bad to have the string foobar in js files."
|
||||
include:
|
||||
|
@ -2,6 +2,7 @@ yamllint:
|
||||
description: YAML linter
|
||||
include:
|
||||
- .cron.yml
|
||||
- python/mozlint/
|
||||
- taskcluster
|
||||
extensions: ['yml', 'yaml']
|
||||
type: external
|
||||
|
Loading…
Reference in New Issue
Block a user