Static analysis
3 tools
| Tool | Kind | Command | Runs in | Found in |
|---|---|---|---|---|
eslint |
Linting | eslint ./ ./public/app/extensions/ --cache --no-error-on-unmatched-patterneslint --ext .js,.jsx,.ts,.tsx,.mjs,.cjs,.mts,.cts --cache --prune-suppressio...eslint . --ignore-pattern *.test.ts* --ignore-pattern *.spec.ts* --cache --pl... |
pre-commit, ci, local | .github/workflows/frontend-lint.yml package.json lefthook.yml eslint.config.js |
golangci-lint |
Linting | uses golangci/golangci-lint-action |
ci | .github/workflows/go-lint.yml .golangci.yml |
tsc |
Type checking | tsc --noEmittsc --noEmit -p scripts/rspack/tsconfig.jsontsc --noEmit -p scripts/release/tsconfig.json |
pre-commit, ci, local | .github/workflows/frontend-lint.yml package.json lefthook.yml |
Testing
6 tools
| Tool | Kind | Command | Runs in | Found in |
|---|---|---|---|---|
ci-matrix |
Version and platform matrix | grafana (shard: 8)grafana-enterprise (shard: 8)run-playwright-tests (shard: 8, shardTotal: 1) |
ci | .github/workflows/backend-unit-tests.yml .github/workflows/pr-e2e-tests.yml .github/workflows/pr-frontend-unit-tests.yml |
go-test |
Unit and integration tests | go test -v -count=1 -timeout 5m -run TestIntegrationAvailableChannels ./pkg/t...go test -v -count=1 -timeout 5m -run TestIntegrationTypeSchemaList ./pkg/test...go test -vet=off -short -timeout=30m ${PACKAGES[@]} |
ci, local | .github/workflows/alerting-update-module.yml .github/workflows/backend-unit-tests.yml .github/workflows/feature-toggles-ci.yml Makefile |
jest |
Unit and integration tests | jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-1...jest --watchjest --coverage |
ci, local | .github/workflows/pr-frontend-unit-tests.yml package.json Makefile jest.config.js |
node-test |
Unit and integration tests | node --test scripts/cli/checkBundleSize.test.mjsnode --test ./scripts/cli/analytics/*.test.mts |
ci, local | .github/workflows/pr-bundle-size.yml package.json |
playwright |
End-to-end browser tests | playwright test --grep-invert @cloud-pluginsplaywright test --project=diagnostics --reporter=listplaywright test -c playwright.storybook.config.ts |
ci, local | .github/workflows/frontend-perf-tests.yaml package.json .github/workflows/pr-diagnostics-e2e.yml .github/workflows/pr-e2e-tests.yml |
vitest |
Unit and integration tests | vitest run --config scripts/rspack/vitest.config.tsvitest run --config scripts/release/vitest.config.mts |
ci, local | .github/workflows/pr-frontend-unit-tests.yml package.json scripts/release/vitest.config.mts scripts/rspack/vitest.config.ts |
Formatting and hygiene
2 tools
| Tool | Kind | Command | Runs in | Found in |
|---|---|---|---|---|
gofmt |
Formatting | gofmt -w -s {staged_files} |
pre-commit | lefthook.yml |
prettier |
Formatting | prettier --write CHANGELOG.mdprettier --check --list-different=false --log-level=warn **/*.{ts,tsx,scss,md...prettier --check --list-different=false --log-level=warn docs/**/*.md *.md pa... |
pre-commit, ci, local | .github/workflows/changelog.yml .github/workflows/frontend-lint.yml package.json .github/workflows/lint-build-docs.yml |
32 other commands the scanner could not classify
Commands from CI steps and task runners that look like checks but match no known tool. Some are checks, some are not.
DOCKER_JS_PNPM_INSTALL_FLAG = --no-frozen-lockfileTeam-specific review rules: Read team_rules.txtbash scripts/protobuf-check.shbash scripts/verify-pkg-stig.sh dist/grafana_0.0.0_stig-test_linux_amd64.rpmbuf generate apps/secret --template apps/secret/buf.gen.yamlcommand -v tparse >/dev/null 2>&1docselse go test ./pkg/services/featuremgmt/...go get github.com/tkrajina/typescriptify-golang-structs/typescriptify@v0.1.7go list -m -f {{.Dir}}json2ts --ignoreMinAndMaxItems > ${PLUGIN_SCHEMA_TYPES_OUT:-./plugin-schema.d.ts}license_finder --decisions-file .github/license_finder.yamlmadge --circular --extensions ts,tsx --no-count --no-spinner .node --cpu-prof --cpu-prof-dir=.profiles --cpu-prof-name=grafana-jest-$(date -u +%Y-%m-%dT%H:%M:%S).cpuprofile node_m...node ./community-triage/.github/workflows/scripts/pr-notify.mts check-teamsnode ./pr/scripts/compare-coverage-by-codeowner.js >> $GITHUB_STEP_SUMMARYnode scripts/cli/checkBundleSize.mjs $RUNNER_TEMP/base-bundle-sizes.txt $RUNNER_TEMP/pr-bundle-sizes.txt $MAX_BUNDLE_...node scripts/codeowners-manifest/list-tests.mtsnode scripts/test-coverage-by-codeowner.jsnx run-many -t build --projects=@test-plugins/*nx run-many -t dev --projects=@test-plugins/* --maxParallel=100nx run-many -t test:ci --projects=tag:scope:packagenx run-many -t test:ci --projects=tag:scope:plugin --maxParallel=2nx run-many -t typecheck --projects=tag:scope:packagesort -utparse -alltruetsx ./scripts/docs/generate-transformations.tstype != object)xargs -I{} sh -c 'test ! -f {}/.nolintxargs gofmt -s -e -l 2>&1xargs gofmt -s -w 2>&1
Review prompts
most discussed first