зеркало из https://github.com/mozilla/gecko-dev.git
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 : a2e47f5c5517e999fe21bac4f86491611bd0cece
This commit is contained in:
Родитель
687c9e4240
Коммит
582030b224
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче