fix(lefthook): Incorrect glob patterns. Add linting for influxdb3/explorer

fix-lefthook-patterns
Jason Stirnaman 2025-06-04 17:40:53 -05:00
parent 36cfabae9c
commit ad8fbc37dc
1 changed files with 42 additions and 13 deletions

View File

@ -22,21 +22,49 @@ pre-commit:
--minAlertLevel=error {staged_files}' --minAlertLevel=error {staged_files}'
cloud-dedicated-lint: cloud-dedicated-lint:
tags: lint,v3 tags: lint,v3
glob: 'content/influxdb/cloud-dedicated/*.md' glob:
- 'content/influxdb3/cloud-dedicated/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh run: '.ci/vale/vale.sh
--config=content/influxdb/cloud-dedicated/.vale.ini --config=content/influxdb3/cloud-dedicated/.vale.ini
--minAlertLevel=error {staged_files}' --minAlertLevel=error {staged_files}'
cloud-serverless-lint: cloud-serverless-lint:
tags: lint,v3 tags: lint,v3
glob: 'content/influxdb/cloud-serverless/*.md' glob:
- 'content/influxdb/cloud-serverless/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh run: '.ci/vale/vale.sh
--config=content/influxdb/cloud-serverless/.vale.ini --config=content/influxdb3/cloud-serverless/.vale.ini
--minAlertLevel=error {staged_files}' --minAlertLevel=error {staged_files}'
clustered-lint: clustered-lint:
tags: lint,v3 tags: lint,v3
glob: 'content/influxdb/clustered/*.md' glob:
- 'content/influxdb3/clustered/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh run: '.ci/vale/vale.sh
--config=content/influxdb/cloud-serverless/.vale.ini --config=content/influxdb3/cloud-serverless/.vale.ini
--minAlertLevel=error {staged_files}'
core-lint:
tags: lint,v3
glob:
- 'content/influxdb3/core/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=.vale.ini
--minAlertLevel=error {staged_files}'
enterprise-lint:
tags: lint,v3
glob:
- 'content/influxdb3/enterprise/*.md'
- 'content/shared/*.md'
run: '.ci/vale/vale.sh
--config=.vale.ini
--minAlertLevel=error {staged_files}'
explorer-lint:
tags: lint,clients
glob: 'content/influxdb3/explorer/*.md'
run: '.ci/vale/vale.sh
--config=.vale.ini
--minAlertLevel=error {staged_files}' --minAlertLevel=error {staged_files}'
telegraf-lint: telegraf-lint:
tags: lint,clients tags: lint,clients
@ -77,7 +105,7 @@ pre-push:
e2e-links: e2e-links:
tags: test,links tags: test,links
glob: 'content/**/*.{md,html}' glob: 'content/*.{md,html}'
run: | run: |
echo "Running link checker for: {push_files}" echo "Running link checker for: {push_files}"
yarn test:links {push_files} yarn test:links {push_files}
@ -94,9 +122,10 @@ pre-push:
build-pytest-image: build-pytest-image:
tags: test tags: test
run: yarn build:pytest:image run: yarn build:pytest:image
# Test code blocks in markdown files # Test code blocks in markdown files
cloud-pytest: cloud-pytest:
glob: content/influxdb/cloud/**/*.md glob: content/influxdb/cloud/*.md
tags: test,codeblocks,v2 tags: test,codeblocks,v2
env: env:
SERVICE: cloud-pytest SERVICE: cloud-pytest
@ -104,35 +133,35 @@ pre-push:
cloud-dedicated-pytest: cloud-dedicated-pytest:
tags: test,codeblocks,v3 tags: test,codeblocks,v3
glob: content/influxdb/cloud-dedicated/**/*.md glob: content/influxdb3/cloud-dedicated/*.md
run: | run: |
yarn test:codeblocks:cloud-dedicated '{push_files}' && yarn test:codeblocks:cloud-dedicated '{push_files}' &&
./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest ./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest
cloud-serverless-pytest: cloud-serverless-pytest:
tags: test,codeblocks,v3 tags: test,codeblocks,v3
glob: content/influxdb/cloud-serverless/**/*.md glob: content/influxdb3/cloud-serverless/*.md
env: env:
SERVICE: cloud-serverless-pytest SERVICE: cloud-serverless-pytest
run: yarn test:codeblocks:cloud-serverless '{push_files}' run: yarn test:codeblocks:cloud-serverless '{push_files}'
clustered-pytest: clustered-pytest:
tags: test,codeblocks,v3 tags: test,codeblocks,v3
glob: content/influxdb/clustered/**/*.md glob: content/influxdb3/clustered/*.md
run: | run: |
yarn test:codeblocks:clustered '{push_files}' && yarn test:codeblocks:clustered '{push_files}' &&
./test/scripts/monitor-tests.sh stop clustered-pytest ./test/scripts/monitor-tests.sh stop clustered-pytest
telegraf-pytest: telegraf-pytest:
tags: test,codeblocks tags: test,codeblocks
glob: content/telegraf/**/*.md glob: content/telegraf/*.md
env: env:
SERVICE: telegraf-pytest SERVICE: telegraf-pytest
run: yarn test:codeblocks:telegraf '{push_files}' run: yarn test:codeblocks:telegraf '{push_files}'
v2-pytest: v2-pytest:
tags: test,codeblocks,v2 tags: test,codeblocks,v2
glob: content/influxdb/v2/**/*.md glob: content/influxdb/v2/*.md
env: env:
SERVICE: v2-pytest SERVICE: v2-pytest
run: yarn test:codeblocks:v2 '{push_files}' run: yarn test:codeblocks:v2 '{push_files}'