Feature · Diagnostics

Findings and rules

Every finding the doctor reports carries a file path, line, column, severity, and a stable rule id, with a message you can paste into a code review. The CLI ships 118 rules for Vue 3 and Nuxt 4, covering reactivity, hydration, security, data fetching, server routes, performance, dead code, and AI-slop patterns, and 60+ of them auto-fix safely. The hosted dashboard groups the same findings by rule and by file.

What a finding looks like

Findings print in the agent format by default, and as SARIF, JSON, JSON-compact, pretty, or self-contained HTML on request. The rule id is stable across releases, so you can track, disable, or gate on it.

npx -y @geoql/vue-doctor --annotations
::error file=app/composables/use-cart.ts,line=14,col=15::no-non-null-assertion-on-ref-value: Avoid `ref.value!`

Rule families, with real examples

Rules come from three sources: doctor-native Vue rules, Nuxt-specific rules, and an oxlint pass with the Vue plugin. A few representative ids:

  • Reactivity: watch-without-cleanup, no-stale-timer-ref, effect-listener-cleanup-mismatch
  • Hydration: clientOnly-for-browser-apis, no-document-in-setup, no-browser-global-in-computed
  • Security: no-v-html, no-secret-in-public-runtime-config, no-user-input-in-fetch-url, markdown-it-unsanitized-html
  • Data fetching: useAsyncData-key-required-in-loop, no-shared-key-across-pages
  • Template: v-for-has-key, v-if-v-for-precedence, no-random-key
  • Dead code: unused-file, unused-export, unused-dependency

Explore and tune the catalogue from the terminal

list-rules prints the catalogue, explain prints the rationale and recommended fix for one rule, and inspect shows which rules are active for the detected project. Presets (minimal, recommended, strict, all) and per-rule overrides live in doctor.config.ts.

Terminal
npx -y @geoql/vue-doctor list-rules --category hydration --json
npx -y @geoql/vue-doctor explain no-em-dash-in-string
npx -y @geoql/vue-doctor --rule no-v-html:error --fix

Findings in the dashboard

When a run is pushed, the dashboard shows findings per rule and per file for each project, so you can see which rule costs the most points and which files to fix first. Only the rule id, severity, category, file path, and line/column are sent. Your source code, snippets, and messages never leave your machine or CI.