Skip to content

Commit 77a22b6

Browse files
authored
repo: Add lint configs (#5)
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent cb09e5c commit 77a22b6

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.flake8

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
[flake8]
3+
4+
# TODO(phlax): ignore less
5+
ignore = W503,W504,E121,E126,E241,E125,E127,E129,E251,E265,E303,E306,E402,E501,E502,E711,E713,E722,E741,F523,F541,F841,N803,N806,N817,W605
6+
7+
# TODO(phlax): exclude less
8+
exclude = build_docs,.git,generated,test,examples,venv,tools/dev

.yamllint

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
extends: default
2+
3+
rules:
4+
document-start: false
5+
indentation:
6+
spaces: consistent
7+
indent-sequences: false
8+
line-length:
9+
# This can be adjusted if there is a very good reason.
10+
max: 140
11+
level: error
12+
allow-non-breakable-words: true
13+
truthy:
14+
allowed-values:
15+
- "yes"
16+
- "no"
17+
- "true"
18+
- "false"
19+
# https://github.com/adrienverge/yamllint/issues/430
20+
- "on"
21+
- "off"
22+
23+
yaml-files:
24+
- .clang-format
25+
- "*.yml"
26+
- "*.yaml"
27+
28+
ignore:
29+
- "**/*template.yaml"
30+
- examples/single-page-app/_github-clusters.yml
31+
- test/config/integration/server_xds.cds.with_unknown_field.yaml

0 commit comments

Comments
 (0)