mirror of
https://github.com/netdata/netdata.git
synced 2025-04-15 01:58:34 +00:00

* 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.
98 lines
2 KiB
YAML
98 lines
2 KiB
YAML
version: "2"
|
|
checks:
|
|
argument-count:
|
|
enabled: false
|
|
config:
|
|
threshold: 10
|
|
complex-logic:
|
|
enabled: false
|
|
config:
|
|
threshold: 10
|
|
file-lines:
|
|
enabled: false
|
|
config:
|
|
threshold: 5000
|
|
method-complexity:
|
|
enabled: false
|
|
config:
|
|
threshold: 20
|
|
method-count:
|
|
enabled: false
|
|
config:
|
|
threshold: 50
|
|
method-lines:
|
|
enabled: false
|
|
config:
|
|
threshold: 250
|
|
nested-control-flow:
|
|
enabled: false
|
|
config:
|
|
threshold: 4
|
|
return-statements:
|
|
enabled: false
|
|
config:
|
|
threshold: 4
|
|
similar-code:
|
|
enabled: false
|
|
identical-code:
|
|
enabled: false
|
|
plugins:
|
|
csslint:
|
|
enabled: true
|
|
duplication:
|
|
enabled: false
|
|
config:
|
|
languages:
|
|
- javascript:
|
|
mass_threshold: 100
|
|
- python:
|
|
python_version: 3
|
|
mass_threshold: 100
|
|
checks:
|
|
Similar code:
|
|
enabled: false
|
|
Identical code:
|
|
enabled: false
|
|
eslint:
|
|
enabled: true
|
|
checks:
|
|
max-statements:
|
|
enabled: false
|
|
complexity:
|
|
enabled: false
|
|
no-eval:
|
|
enabled: false
|
|
no-extend-native:
|
|
enabled: false
|
|
no-void:
|
|
enabled: false
|
|
no-alert:
|
|
enabled: false
|
|
no-undef-init:
|
|
enabled: false
|
|
fixme:
|
|
enabled: false
|
|
phpmd:
|
|
enabled: true
|
|
radon:
|
|
enabled: true
|
|
checks:
|
|
Complexity:
|
|
enabled: false
|
|
exclude_patterns:
|
|
- ".gitignore"
|
|
- ".githooks/"
|
|
- "tests/"
|
|
- "m4/"
|
|
- "web/css/"
|
|
- "web/lib/"
|
|
- "web/fonts/"
|
|
- "web/old/"
|
|
- "collectors/python.d.plugin/python_modules/pyyaml2/"
|
|
- "collectors/python.d.plugin/python_modules/pyyaml3/"
|
|
- "collectors/python.d.plugin/python_modules/urllib3/"
|
|
- "collectors/node.d.plugin/node_modules/lib/"
|
|
- "collectors/node.d.plugin/node_modules/asn1-ber.js"
|
|
- "collectors/node.d.plugin/node_modules/extend.js"
|
|
- "collectors/node.d.plugin/node_modules/pixl-xml.js"
|
|
- "collectors/node.d.plugin/node_modules/net-snmp.js"
|