mirror of
https://github.com/nofusscomputing/kubernetes.git
synced 2025-08-02 04:22:42 +00:00
26
.github/workflows/ci.yaml
vendored
Normal file
26
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: Pull Requests
|
||||||
|
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install yamllint
|
||||||
|
run: pip install yamllint
|
||||||
|
|
||||||
|
- name: Lint YAML files
|
||||||
|
run: yamllint ${PWD}/
|
||||||
|
|
||||||
|
|
||||||
|
pull-request:
|
||||||
|
name: pull-request
|
||||||
|
uses: nofusscomputing/action_pull_requests/.github/workflows/pull-requests.yaml@development
|
26
.github/workflows/pull_request.yaml
vendored
Normal file
26
.github/workflows/pull_request.yaml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: Pull Requests
|
||||||
|
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install yamllint
|
||||||
|
run: pip install yamllint
|
||||||
|
|
||||||
|
- name: Lint YAML files
|
||||||
|
run: yamllint ${PWD}/
|
||||||
|
|
||||||
|
|
||||||
|
pull-request:
|
||||||
|
name: pull-request
|
||||||
|
uses: nofusscomputing/action_pull_requests/.github/workflows/pull-requests.yaml@development
|
35
.vscode/settings.json
vendored
Normal file
35
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"linter.linters": {
|
||||||
|
"yamllint": {
|
||||||
|
"capabilities": [
|
||||||
|
"ignore-line"
|
||||||
|
],
|
||||||
|
"command": [
|
||||||
|
"yamllint",
|
||||||
|
"--format",
|
||||||
|
"parsable",
|
||||||
|
[
|
||||||
|
"$config",
|
||||||
|
"--config-file",
|
||||||
|
"$config"
|
||||||
|
],
|
||||||
|
"-"
|
||||||
|
],
|
||||||
|
"configFiles": [
|
||||||
|
".yamllint.yml",
|
||||||
|
".yamllint.yaml",
|
||||||
|
".yamllint"
|
||||||
|
],
|
||||||
|
"enabled": true,
|
||||||
|
"languages": [
|
||||||
|
"yaml"
|
||||||
|
],
|
||||||
|
"name": "yamllint",
|
||||||
|
"url": "https://github.com/adrienverge/yamllint"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"editor.detectIndentation": false,
|
||||||
|
"editor.indentSize": "tabSize",
|
||||||
|
"editor.tabSize": 2,
|
||||||
|
"files.eol": "\n"
|
||||||
|
}
|
76
.yamllint
Normal file
76
.yamllint
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# extends: default
|
||||||
|
|
||||||
|
|
||||||
|
ignore:
|
||||||
|
- '.github/'
|
||||||
|
- '**/crd/**'
|
||||||
|
- '*PrometheusRule*'
|
||||||
|
- '**/source/**'
|
||||||
|
|
||||||
|
rules:
|
||||||
|
braces:
|
||||||
|
level: error
|
||||||
|
max-spaces-inside: 1
|
||||||
|
min-spaces-inside: 1
|
||||||
|
min-spaces-inside-empty: 0
|
||||||
|
max-spaces-inside-empty: 0
|
||||||
|
|
||||||
|
brackets:
|
||||||
|
level: error
|
||||||
|
max-spaces-inside: 1
|
||||||
|
min-spaces-inside: 1
|
||||||
|
min-spaces-inside-empty: 0
|
||||||
|
max-spaces-inside-empty: 0
|
||||||
|
|
||||||
|
colons:
|
||||||
|
level: warning
|
||||||
|
max-spaces-after: 1
|
||||||
|
|
||||||
|
commas:
|
||||||
|
level: warning
|
||||||
|
|
||||||
|
comments:
|
||||||
|
level: error
|
||||||
|
require-starting-space: true
|
||||||
|
ignore-shebangs: true
|
||||||
|
min-spaces-from-content: 4
|
||||||
|
|
||||||
|
comments-indentation:
|
||||||
|
level: error
|
||||||
|
|
||||||
|
document-end:
|
||||||
|
level: error
|
||||||
|
present: false
|
||||||
|
|
||||||
|
document-start:
|
||||||
|
level: error
|
||||||
|
present: true
|
||||||
|
|
||||||
|
empty-lines:
|
||||||
|
level: error
|
||||||
|
max: 3
|
||||||
|
max-start: 0
|
||||||
|
max-end: 0
|
||||||
|
|
||||||
|
hyphens:
|
||||||
|
level: error
|
||||||
|
max-spaces-after: 1
|
||||||
|
|
||||||
|
indentation:
|
||||||
|
level: error
|
||||||
|
spaces: 2
|
||||||
|
indent-sequences: true
|
||||||
|
check-multi-line-strings: true
|
||||||
|
|
||||||
|
line-length:
|
||||||
|
level: warning
|
||||||
|
max: 100
|
||||||
|
allow-non-breakable-inline-mappings: true
|
||||||
|
|
||||||
|
new-lines:
|
||||||
|
level: error
|
||||||
|
type: unix
|
||||||
|
|
||||||
|
truthy: disable
|
Reference in New Issue
Block a user