fixing lints
This commit is contained in:
1
.github/linters/.markdown-lint.yml
vendored
1
.github/linters/.markdown-lint.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
# MD013/line-length - Line length
|
# MD013/line-length - Line length
|
||||||
MD013:
|
MD013:
|
||||||
# Number of characters, default is 80
|
# Number of characters, default is 80
|
||||||
|
|||||||
53
.github/linters/.yaml-lint.yml
vendored
Normal file
53
.github/linters/.yaml-lint.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
###########################################
|
||||||
|
# These are the rules used for #
|
||||||
|
# linting all the yaml files in the stack #
|
||||||
|
# NOTE: #
|
||||||
|
# You can disable line with: #
|
||||||
|
# # yamllint disable-line #
|
||||||
|
###########################################
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
level: warning
|
||||||
|
min-spaces-inside: 0
|
||||||
|
max-spaces-inside: 0
|
||||||
|
min-spaces-inside-empty: 1
|
||||||
|
max-spaces-inside-empty: 5
|
||||||
|
brackets:
|
||||||
|
level: warning
|
||||||
|
min-spaces-inside: 0
|
||||||
|
max-spaces-inside: 0
|
||||||
|
min-spaces-inside-empty: 1
|
||||||
|
max-spaces-inside-empty: 5
|
||||||
|
colons:
|
||||||
|
level: warning
|
||||||
|
max-spaces-before: 0
|
||||||
|
max-spaces-after: 1
|
||||||
|
commas:
|
||||||
|
level: warning
|
||||||
|
max-spaces-before: 0
|
||||||
|
min-spaces-after: 1
|
||||||
|
max-spaces-after: 1
|
||||||
|
comments: disable
|
||||||
|
comments-indentation: disable
|
||||||
|
document-end: disable
|
||||||
|
document-start: disable
|
||||||
|
empty-lines:
|
||||||
|
level: warning
|
||||||
|
max: 2
|
||||||
|
max-start: 0
|
||||||
|
max-end: 0
|
||||||
|
hyphens:
|
||||||
|
level: warning
|
||||||
|
max-spaces-after: 1
|
||||||
|
indentation:
|
||||||
|
level: warning
|
||||||
|
spaces: consistent
|
||||||
|
indent-sequences: true
|
||||||
|
check-multi-line-strings: false
|
||||||
|
key-duplicates: enable
|
||||||
|
line-length: disable
|
||||||
|
new-line-at-end-of-file: disable
|
||||||
|
new-lines:
|
||||||
|
type: unix
|
||||||
|
trailing-spaces: disable
|
||||||
@@ -16,7 +16,7 @@ The GitHub [Super-Linter](https://github.com/marketplace/actions/super-linter) p
|
|||||||
## How to reuse this example as a *Reusable* Workflow
|
## How to reuse this example as a *Reusable* Workflow
|
||||||
|
|
||||||
1. Fork this repository for you to customize your linters in a single location for your org/projects.
|
1. Fork this repository for you to customize your linters in a single location for your org/projects.
|
||||||
2. Add a new workflow to all your other repositories and paste in this YAML to call the central-repos reusable workflow.
|
2. Add a new workflow to all your other repositories and paste in this YAML to call the central-repos reusable workflow.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user