Concepts
Configurations
Section titled “Configurations”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.
Checks and findings
Section titled “Checks and findings”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.
Levels
Section titled “Levels”The level decides how strict the checks are.
| Level | What it checks | Tools 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 |
all | Level 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.
Stages
Section titled “Stages”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.
Scopes
Section titled “Scopes”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, andci.setup_command. Whensite.build_commandis not set, gspot runs thebuildscript ofpackage.json. - Tool configs and plugins that the tools load, such as
prettier.config.mjs, local ESLint plugins, and Knip plugins. Commands such asastro check,svelte-check,next typegen,drizzle-kit, andexpo doctorload project code. - Tests and builds, which run your code: Jest, Vitest, pytest with its
conftest.pyfiles,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]inpyproject.toml, and the lockfiles in.gspot/. - Git hooks in
.gspot/hooks/, which Git runs on commit and push.