* Include upstream yamllint config.
* Fix linting consistency issues.
Signed-off-by: SuperQ <superq@gmail.com>
--- /dev/null
+---
+extends: default
+
+rules:
+ braces:
+ max-spaces-inside: 1
+ level: error
+ brackets:
+ max-spaces-inside: 1
+ level: error
+ commas: disable
+ comments: disable
+ comments-indentation: disable
+ document-start: disable
+ indentation:
+ spaces: consistent
+ indent-sequences: consistent
+ key-duplicates:
+ ignore: |
+ config/testdata/section_key_dup.bad.yml
+ line-length: disable
+ truthy:
+ ignore: |
+ .github/workflows/codeql-analysis.yml
+ .github/workflows/funcbench.yml
+ .github/workflows/fuzzing.yml
+ .github/workflows/prombench.yml
+ .github/workflows/golangci-lint.yml
headers:
Origin: example.com
fail_if_header_not_matches:
- - header: Access-Control-Allow-Origin
- regexp: '(\*|example\.com)'
- allow_missing: false
+ - header: Access-Control-Allow-Origin
+ regexp: '(\*|example\.com)'
+ allow_missing: false
query_name: "www.prometheus.io"
query_type: "A"
valid_rcodes:
- - NOERROR
+ - NOERROR
validate_answer_rrs:
fail_if_matches_regexp:
- - ".*127.0.0.1"
+ - ".*127.0.0.1"
fail_if_all_match_regexp:
- - ".*127.0.0.1"
+ - ".*127.0.0.1"
fail_if_not_matches_regexp:
- - "www.prometheus.io.\t300\tIN\tA\t127.0.0.1"
+ - "www.prometheus.io.\t300\tIN\tA\t127.0.0.1"
fail_if_none_matches_regexp:
- - "127.0.0.1"
+ - "127.0.0.1"
validate_authority_rrs:
fail_if_matches_regexp:
- - ".*127.0.0.1"
+ - ".*127.0.0.1"
validate_additional_rrs:
fail_if_matches_regexp:
- - ".*127.0.0.1"
+ - ".*127.0.0.1"
dns_soa:
prober: dns
dns: