Skip to content

Commit

Permalink
fix(ci): add exclusions in .lint file
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic committed Feb 16, 2024
1 parent 804cb5b commit 18b187a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .lint
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
exclusions:
template-job-rule:
panel-job-instance-rule:
template-datasource-rule:
reason: CI failing because label has different caps, this was changed in grafana-builder
panel-datasource-rule:
reason: The new Grafonnet promotes the use of datasources at the query level. This should probably end up in the linter as a valid option.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ $(OUT_DIR)/.lint: $(OUT_DIR)
dashboards-lint: $(GRAFANA_DASHBOARD_LINTER_BIN) $(OUT_DIR)/.lint
# Replace $$interval:$$resolution var with $$__rate_interval to make dashboard-linter happy.
@sed -i -e 's/$$interval:$$resolution/$$__rate_interval/g' $(OUT_DIR)/*.json
# Replace 'Data source' label with 'Data Source' to make dashboard-linter happy.
@sed -i -e 's/Data source/Data Source/g' $(OUT_DIR)/*.json
@find $(OUT_DIR) -name '*.json' -print0 | xargs -n 1 -0 $(GRAFANA_DASHBOARD_LINTER_BIN) lint --strict


Expand Down

0 comments on commit 18b187a

Please sign in to comment.