Skip to content

Concepts

A configuration is everything gspot knows about one language, framework, tool, or topic: which checks to run, how to set up each tool, and what to tell coding agents. gspot init turns on the configurations that match your files and dependencies, and some, such as secrets and spelling, are on in every repository. The configuration reference lists them all.

Your settings live in gspot.toml, and gspot writes each tool’s config file and the rule files in .gspot/rules/ from them. These are the generated files, so to change one, you change its setting, as Change settings shows.

A check runs one tool, such as ESLint, or code that ships with gspot, and fails when it reports a problem, which gspot calls a finding. Most findings name a file, a line, and a lint rule, such as no-console.

Each check has an ID of the form <configuration>/<name>, such as python/ruff, and gspot check --only, gspot ignore, and gspot explain take that ID. A command check runs a command that you write, under an ID that you choose.

gspot doctor reports problems with the setup itself, such as a missing tool or a Git hook that does not run. These problems are not findings, so they have no check ID, and gspot ignore cannot turn them off.

The level decides how strict the checks are.

LevelWhat it checksTools it adds
basic (default)Level basic checks for bugs, security problems, code style, broken docs and config, formatting, and a reason on each suppression. Choose it for an existing codebase or a first try, where a wrong finding on correct code costs the most.None
allLevel all adds stricter rules, which can flag correct code or enforce a style preference. Choose it for a new repository or one that coding agents write, where the code can follow the strict style rules from the start.biome, commitlint, jscpd, syncpack, vale, vulture

To change the level, run gspot set level all, then gspot install. To go back to basic, run gspot unset level.

The stage of a check decides when it runs:

Stage The check runs
commit Before each commit, in the pre-commit hook, on the staged files.
push Before each push, in the pre-push hook, on the pushed files.
message On each new commit message, in the commit-msg hook.
manual Only when gspot check --only names it.

gspot check and CI run the commit and push checks, and gspot check --only commit or --only push runs one stage.

A scope is a folder with its own configurations and settings, such as one package of a monorepo. Each file follows the settings of the deepest scope that contains it. Monorepos shows how to add a scope.

gspot runs code from your repository as your user, outside any sandbox. Before you run gspot on a branch that someone else wrote, review the code that gspot runs:

  • Commands in gspot.toml: [[command_check]] records, site.build_command, openapi.generate_command, and ci.setup_command. When site.build_command is not set, gspot runs the build script of package.json.
  • Tool configs and plugins that the tools load, such as prettier.config.mjs, local ESLint plugins, and Knip plugins. Commands such as astro check, svelte-check, next typegen, drizzle-kit, and expo doctor load project code.
  • Tests and builds, which run your code: Jest, Vitest, pytest with its conftest.py files, swift test, SwiftPM plugins, and Xcode run scripts.
  • Tools in node_modules/.bin, .venv/bin, and the same folders under .gspot/.
  • Install settings: .npmrc, uv.toml, [tool.uv] in pyproject.toml, and the lockfiles in .gspot/.
  • Git hooks in .gspot/hooks/, which Git runs on commit and push.