Clean up YAML files in the repository. (#11570)

* Assorted yamllint config updates.

* Extended line length limit to 150. This is still a reasonable limit
  but cuts down on warnings a bit.
* Added explicit ignore directives for external repo paths. This makes
  using yamllint locally nicer.
* Enabled the rule to require null values to be explicit. This rule
  helps prevent accidental bogus mapping problems resulting from
  implicit null values combined with incorrect indentation.

This only results in new errors in a couple of GHA workflows, which will
be fixed in the next commit.

* Fix all yamllint warnings in yaml file sin the repo.

Most are indentation or spurious empty lines.

* Fix invalid null value.
This commit is contained in:
Austin S. Hemmelgarn 2021-09-27 10:16:39 -04:00 committed by GitHub
parent 07946d9f0a
commit f183dc8aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 36 additions and 37 deletions

View File

@ -43,11 +43,11 @@ plugins:
enabled: false enabled: false
config: config:
languages: languages:
- javascript: - javascript:
mass_threshold: 100 mass_threshold: 100
- python: - python:
python_version: 3 python_version: 3
mass_threshold: 100 mass_threshold: 100
checks: checks:
Similar code: Similar code:
enabled: false enabled: false
@ -96,4 +96,3 @@ exclude_patterns:
- "collectors/node.d.plugin/node_modules/extend.js" - "collectors/node.d.plugin/node_modules/extend.js"
- "collectors/node.d.plugin/node_modules/pixl-xml.js" - "collectors/node.d.plugin/node_modules/pixl-xml.js"
- "collectors/node.d.plugin/node_modules/net-snmp.js" - "collectors/node.d.plugin/node_modules/net-snmp.js"

View File

@ -4,7 +4,7 @@ on:
push: push:
branches: branches:
- master - master
pull_request: pull_request: null
env: env:
DO_NOT_TRACK: 1 DO_NOT_TRACK: 1
jobs: jobs:

View File

@ -4,7 +4,7 @@ on:
push: push:
branches: branches:
- master - master
pull_request: pull_request: null
env: env:
DO_NOT_TRACK: 1 DO_NOT_TRACK: 1
jobs: jobs:

View File

@ -40,7 +40,7 @@ jobs:
uses: rtCamp/action-slack-notify@v2 uses: rtCamp/action-slack-notify@v2
env: env:
SLACK_COLOR: 'danger' SLACK_COLOR: 'danger'
SLACK_FOOTER: SLACK_FOOTER: ''
SLACK_ICON_EMOJI: ':github-actions:' SLACK_ICON_EMOJI: ':github-actions:'
SLACK_TITLE: 'Coverity run failed:' SLACK_TITLE: 'Coverity run failed:'
SLACK_USERNAME: 'GitHub Actions' SLACK_USERNAME: 'GitHub Actions'

View File

@ -4,7 +4,7 @@ on:
push: push:
branches: branches:
- master - master
pull_request: pull_request: null
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
@ -99,7 +99,7 @@ jobs:
uses: rtCamp/action-slack-notify@v2 uses: rtCamp/action-slack-notify@v2
env: env:
SLACK_COLOR: 'danger' SLACK_COLOR: 'danger'
SLACK_FOOTER: SLACK_FOOTER: ''
SLACK_ICON_EMOJI: ':github-actions:' SLACK_ICON_EMOJI: ':github-actions:'
SLACK_TITLE: 'Docker Build failed:' SLACK_TITLE: 'Docker Build failed:'
SLACK_USERNAME: 'GitHub Actions' SLACK_USERNAME: 'GitHub Actions'

View File

@ -133,7 +133,6 @@ jobs:
uses: rtCamp/action-slack-notify@v2 uses: rtCamp/action-slack-notify@v2
env: env:
SLACK_COLOR: 'danger' SLACK_COLOR: 'danger'
SLACK_FOOTER:
SLACK_ICON_EMOJI: ':github-actions:' SLACK_ICON_EMOJI: ':github-actions:'
SLACK_TITLE: 'Package Build failed:' SLACK_TITLE: 'Package Build failed:'
SLACK_USERNAME: 'GitHub Actions' SLACK_USERNAME: 'GitHub Actions'

View File

@ -2,7 +2,7 @@
# Handles building of binary packages for the agent. # Handles building of binary packages for the agent.
name: Repository Packages name: Repository Packages
on: on:
workflow_dispatch: workflow_dispatch: null
env: env:
DO_NOT_TRACK: 1 DO_NOT_TRACK: 1
jobs: jobs:
@ -60,7 +60,7 @@ jobs:
uses: rtCamp/action-slack-notify@v2 uses: rtCamp/action-slack-notify@v2
env: env:
SLACK_COLOR: 'danger' SLACK_COLOR: 'danger'
SLACK_FOOTER: SLACK_FOOTER: ''
SLACK_ICON_EMOJI: ':github-actions:' SLACK_ICON_EMOJI: ':github-actions:'
SLACK_TITLE: 'Repository Package Build failed:' SLACK_TITLE: 'Repository Package Build failed:'
SLACK_USERNAME: 'GitHub Actions' SLACK_USERNAME: 'GitHub Actions'

View File

@ -2,7 +2,7 @@
# Runs various ReviewDog based checks against PR with suggested changes to improve quality # Runs various ReviewDog based checks against PR with suggested changes to improve quality
name: Review name: Review
on: on:
pull_request: pull_request: null
env: env:
run_eslint: 0 run_eslint: 0
run_hadolint: 0 run_hadolint: 0

View File

@ -6,10 +6,11 @@ yaml-files:
- 'collectors/python.d.plugin/*.conf' - 'collectors/python.d.plugin/*.conf'
- 'collectors/python.d.plugin/*/*.conf' - 'collectors/python.d.plugin/*/*.conf'
ignore: |
mqtt_websockets/
packaging/makeself/tmp/
rules: rules:
line-length:
max: 120
level: warning
braces: enable braces: enable
brackets: enable brackets: enable
colons: enable colons: enable
@ -19,9 +20,14 @@ rules:
document-end: disable document-end: disable
document-start: disable document-start: disable
empty-lines: enable empty-lines: enable
empty-values: disable empty-values: enable
hyphens: enable hyphens: enable
indentation: enable indentation: enable
line-length:
max: 150
level: warning
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
key-duplicates: enable key-duplicates: enable
key-ordering: disable key-ordering: disable
new-line-at-end-of-file: enable new-line-at-end-of-file: enable

View File

@ -5,8 +5,8 @@ services:
context: ../../.. context: ../../..
dockerfile: build_external/make-install.Dockerfile dockerfile: build_external/make-install.Dockerfile
args: args:
- DISTRO=arch - DISTRO=arch
- VERSION=current - VERSION=current
image: arch_current_dev:latest image: arch_current_dev:latest
command: > command: >
sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id && sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id &&
@ -15,5 +15,4 @@ services:
echo ' agent cloud link port = 9002' >>/etc/netdata/netdata.conf && echo ' agent cloud link port = 9002' >>/etc/netdata/netdata.conf &&
/usr/sbin/netdata -D" /usr/sbin/netdata -D"
ports: ports:
- 20000:19999 - 20000:19999

View File

@ -5,8 +5,8 @@ services:
context: ../../.. context: ../../..
dockerfile: build_external/make-install.Dockerfile dockerfile: build_external/make-install.Dockerfile
args: args:
- DISTRO=arch - DISTRO=arch
- VERSION=extras - VERSION=extras
image: arch_extras_dev:latest image: arch_extras_dev:latest
command: > command: >
sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id && sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id &&
@ -15,5 +15,4 @@ services:
echo ' agent cloud link port = 9002' >>/etc/netdata/netdata.conf && echo ' agent cloud link port = 9002' >>/etc/netdata/netdata.conf &&
/usr/sbin/valgrind --leak-check=full /usr/sbin/netdata -D -W debug_flags=0x200000000" /usr/sbin/valgrind --leak-check=full /usr/sbin/netdata -D -W debug_flags=0x200000000"
ports: ports:
- 20000:19999 - 20000:19999

View File

@ -3,4 +3,4 @@ services:
paho_inspect: paho_inspect:
build: build:
context: . context: .
dockerfile: paho.Dockerfile dockerfile: paho.Dockerfile

View File

@ -4,4 +4,3 @@ services:
build: build:
dockerfile: configureVerneMQ.Dockerfile dockerfile: configureVerneMQ.Dockerfile
context: . context: .

View File

@ -10,5 +10,4 @@ services:
#- ./child_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro #- ./child_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
- ./min.conf:/etc/netdata/netdata.conf:ro - ./min.conf:/etc/netdata/netdata.conf:ro
cap_add: cap_add:
- SYS_PTRACE - SYS_PTRACE

View File

@ -10,4 +10,4 @@ services:
- ./middle_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro - ./middle_guid:/var/lib/netdata/registry/netdata.public.unique.id:ro
- ./min.conf:/etc/netdata/netdata.conf:ro - ./min.conf:/etc/netdata/netdata.conf:ro
cap_add: cap_add:
- SYS_PTRACE - SYS_PTRACE

View File

@ -12,4 +12,3 @@ services:
- ./mostly_off.conf:/etc/netdata/netdata.conf:ro - ./mostly_off.conf:/etc/netdata/netdata.conf:ro
cap_add: cap_add:
- SYS_PTRACE - SYS_PTRACE

View File

@ -4,5 +4,5 @@ services:
image: ${Distro}_${Version}_dev image: ${Distro}_${Version}_dev
command: /usr/sbin/netdata -D command: /usr/sbin/netdata -D
ports: ports:
- 80 - 80
- 443 - 443

View File

@ -456,7 +456,7 @@ paths:
required: false required: false
allowEmptyValue: true allowEmptyValue: true
schema: schema:
oneOf: oneOf:
- type: string - type: string
enum: enum:
- green - green
@ -478,7 +478,7 @@ paths:
required: false required: false
allowEmptyValue: true allowEmptyValue: true
schema: schema:
oneOf: oneOf:
- type: string - type: string
enum: enum:
- green - green