Skip to content

Commit e339b70

Browse files
authored
Merge pull request #6123 from influxdata/fix-lefthook-patterns
fix(lefthook): Incorrect glob patterns. Add linting for influxdb3/exp…
2 parents 20f0129 + 1d67b79 commit e339b70

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

lefthook.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,49 @@ pre-commit:
2626
--minAlertLevel=error {staged_files}'
2727
cloud-dedicated-lint:
2828
tags: lint,v3
29-
glob: 'content/influxdb/cloud-dedicated/*.md'
29+
glob:
30+
- 'content/influxdb3/cloud-dedicated/*.md'
31+
- 'content/shared/*.md'
3032
run: '.ci/vale/vale.sh
31-
--config=content/influxdb/cloud-dedicated/.vale.ini
33+
--config=content/influxdb3/cloud-dedicated/.vale.ini
3234
--minAlertLevel=error {staged_files}'
3335
cloud-serverless-lint:
3436
tags: lint,v3
35-
glob: 'content/influxdb/cloud-serverless/*.md'
37+
glob:
38+
- 'content/influxdb3/cloud-serverless/*.md'
39+
- 'content/shared/*.md'
3640
run: '.ci/vale/vale.sh
37-
--config=content/influxdb/cloud-serverless/.vale.ini
41+
--config=content/influxdb3/cloud-serverless/.vale.ini
3842
--minAlertLevel=error {staged_files}'
3943
clustered-lint:
4044
tags: lint,v3
41-
glob: 'content/influxdb/clustered/*.md'
45+
glob:
46+
- 'content/influxdb3/clustered/*.md'
47+
- 'content/shared/*.md'
48+
run: '.ci/vale/vale.sh
49+
--config=content/influxdb3/cloud-serverless/.vale.ini
50+
--minAlertLevel=error {staged_files}'
51+
core-lint:
52+
tags: lint,v3
53+
glob:
54+
- 'content/influxdb3/core/*.md'
55+
- 'content/shared/*.md'
56+
run: '.ci/vale/vale.sh
57+
--config=.vale.ini
58+
--minAlertLevel=error {staged_files}'
59+
enterprise-lint:
60+
tags: lint,v3
61+
glob:
62+
- 'content/influxdb3/enterprise/*.md'
63+
- 'content/shared/*.md'
4264
run: '.ci/vale/vale.sh
43-
--config=content/influxdb/cloud-serverless/.vale.ini
65+
--config=.vale.ini
66+
--minAlertLevel=error {staged_files}'
67+
explorer-lint:
68+
tags: lint,clients
69+
glob: 'content/influxdb3/explorer/*.md'
70+
run: '.ci/vale/vale.sh
71+
--config=.vale.ini
4472
--minAlertLevel=error {staged_files}'
4573
telegraf-lint:
4674
tags: lint,clients
@@ -102,6 +130,7 @@ pre-push:
102130
build-pytest-image:
103131
tags: test
104132
run: yarn build:pytest:image
133+
105134
# Test code blocks in markdown files
106135
cloud-pytest:
107136
glob: content/influxdb/cloud/*.md
@@ -112,21 +141,21 @@ pre-push:
112141

113142
cloud-dedicated-pytest:
114143
tags: test,codeblocks,v3
115-
glob: content/influxdb/cloud-dedicated/*.md
144+
glob: content/influxdb3/cloud-dedicated/*.md
116145
run: |
117146
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
118147
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
119148
120149
cloud-serverless-pytest:
121150
tags: test,codeblocks,v3
122-
glob: content/influxdb/cloud-serverless/*.md
151+
glob: content/influxdb3/cloud-serverless/*.md
123152
env:
124153
SERVICE: cloud-serverless-pytest
125154
run: yarn test:codeblocks:cloud-serverless '{push_files}'
126155

127156
clustered-pytest:
128157
tags: test,codeblocks,v3
129-
glob: content/influxdb/clustered/*.md
158+
glob: content/influxdb3/clustered/*.md
130159
run: |
131160
yarn test:codeblocks:clustered '{push_files}' &&
132161
./test/scripts/monitor-tests.sh stop clustered-pytest

0 commit comments

Comments
 (0)