Skip to content

Commit ad8fbc3

Browse files
committed
fix(lefthook): Incorrect glob patterns. Add linting for influxdb3/explorer
1 parent 36cfaba commit ad8fbc3

File tree

1 file changed

+42
-13
lines changed

1 file changed

+42
-13
lines changed

lefthook.yml

Lines changed: 42 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,49 @@ pre-commit:
2222
--minAlertLevel=error {staged_files}'
2323
cloud-dedicated-lint:
2424
tags: lint,v3
25-
glob: 'content/influxdb/cloud-dedicated/*.md'
25+
glob:
26+
- 'content/influxdb3/cloud-dedicated/*.md'
27+
- 'content/shared/*.md'
2628
run: '.ci/vale/vale.sh
27-
--config=content/influxdb/cloud-dedicated/.vale.ini
29+
--config=content/influxdb3/cloud-dedicated/.vale.ini
2830
--minAlertLevel=error {staged_files}'
2931
cloud-serverless-lint:
3032
tags: lint,v3
31-
glob: 'content/influxdb/cloud-serverless/*.md'
33+
glob:
34+
- 'content/influxdb/cloud-serverless/*.md'
35+
- 'content/shared/*.md'
3236
run: '.ci/vale/vale.sh
33-
--config=content/influxdb/cloud-serverless/.vale.ini
37+
--config=content/influxdb3/cloud-serverless/.vale.ini
3438
--minAlertLevel=error {staged_files}'
3539
clustered-lint:
3640
tags: lint,v3
37-
glob: 'content/influxdb/clustered/*.md'
41+
glob:
42+
- 'content/influxdb3/clustered/*.md'
43+
- 'content/shared/*.md'
44+
run: '.ci/vale/vale.sh
45+
--config=content/influxdb3/cloud-serverless/.vale.ini
46+
--minAlertLevel=error {staged_files}'
47+
core-lint:
48+
tags: lint,v3
49+
glob:
50+
- 'content/influxdb3/core/*.md'
51+
- 'content/shared/*.md'
52+
run: '.ci/vale/vale.sh
53+
--config=.vale.ini
54+
--minAlertLevel=error {staged_files}'
55+
enterprise-lint:
56+
tags: lint,v3
57+
glob:
58+
- 'content/influxdb3/enterprise/*.md'
59+
- 'content/shared/*.md'
3860
run: '.ci/vale/vale.sh
39-
--config=content/influxdb/cloud-serverless/.vale.ini
61+
--config=.vale.ini
62+
--minAlertLevel=error {staged_files}'
63+
explorer-lint:
64+
tags: lint,clients
65+
glob: 'content/influxdb3/explorer/*.md'
66+
run: '.ci/vale/vale.sh
67+
--config=.vale.ini
4068
--minAlertLevel=error {staged_files}'
4169
telegraf-lint:
4270
tags: lint,clients
@@ -77,7 +105,7 @@ pre-push:
77105
78106
e2e-links:
79107
tags: test,links
80-
glob: 'content/**/*.{md,html}'
108+
glob: 'content/*.{md,html}'
81109
run: |
82110
echo "Running link checker for: {push_files}"
83111
yarn test:links {push_files}
@@ -94,45 +122,46 @@ pre-push:
94122
build-pytest-image:
95123
tags: test
96124
run: yarn build:pytest:image
125+
97126
# Test code blocks in markdown files
98127
cloud-pytest:
99-
glob: content/influxdb/cloud/**/*.md
128+
glob: content/influxdb/cloud/*.md
100129
tags: test,codeblocks,v2
101130
env:
102131
SERVICE: cloud-pytest
103132
run: yarn test:codeblocks:cloud '{push_files}'
104133

105134
cloud-dedicated-pytest:
106135
tags: test,codeblocks,v3
107-
glob: content/influxdb/cloud-dedicated/**/*.md
136+
glob: content/influxdb3/cloud-dedicated/*.md
108137
run: |
109138
yarn test:codeblocks:cloud-dedicated '{push_files}' &&
110139
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
111140
112141
cloud-serverless-pytest:
113142
tags: test,codeblocks,v3
114-
glob: content/influxdb/cloud-serverless/**/*.md
143+
glob: content/influxdb3/cloud-serverless/*.md
115144
env:
116145
SERVICE: cloud-serverless-pytest
117146
run: yarn test:codeblocks:cloud-serverless '{push_files}'
118147

119148
clustered-pytest:
120149
tags: test,codeblocks,v3
121-
glob: content/influxdb/clustered/**/*.md
150+
glob: content/influxdb3/clustered/*.md
122151
run: |
123152
yarn test:codeblocks:clustered '{push_files}' &&
124153
./test/scripts/monitor-tests.sh stop clustered-pytest
125154
126155
telegraf-pytest:
127156
tags: test,codeblocks
128-
glob: content/telegraf/**/*.md
157+
glob: content/telegraf/*.md
129158
env:
130159
SERVICE: telegraf-pytest
131160
run: yarn test:codeblocks:telegraf '{push_files}'
132161

133162
v2-pytest:
134163
tags: test,codeblocks,v2
135-
glob: content/influxdb/v2/**/*.md
164+
glob: content/influxdb/v2/*.md
136165
env:
137166
SERVICE: v2-pytest
138167
run: yarn test:codeblocks:v2 '{push_files}'

0 commit comments

Comments
 (0)