gspot.toml settings
gspot.toml says how to change these settings, and the JSON Schema gives your editor the same keys.
Top-level settings
level
"basic", "all". Default: "basic".
Level basic checks for bugs, security problems, code style, broken docs and config, formatting, and a reason on each suppression. Level all adds stricter rules, which can flag correct code or enforce a style preference.
tool_timeout_seconds
Whole number. Default: 600.
The time limit in seconds for every tool command, including installation and version reads. Root only.
test_files
List. Default: ["**/test/**","**/tests/**","**/__tests__/**","**/*.test.*","**/*.spec.*","**/test_*.py","**/*_test.py","**/conftest.py","**/Tests/**","**/*Tests.swift"].
The files that get the test rules of each linter.
configurations
List. Default: [].
The configurations this repository uses besides the always-selected ones. gspot init writes the detected ones here; gspot add and gspot remove change the list.
removed_configurations
Table. Default: {}.
Configurations you removed, each with the reason why, which detection does not add back; only gspot add and gspot remove write this table.
[[scope]]
Settings for one folder.
See Monorepos for how a scope inherits settings.
scope.path
Text. Required.
The folder of the scope; no two records may name the same folder.
scope.configurations
List. Default: [].
Configurations for this folder, on top of the root ones; gspot add --scope writes this list.
scope.removed_configurations
Table. Default: {}.
Configurations removed in this folder, each with the reason why; only gspot add and gspot remove write this table.
scope.test_files
List.
More test files for this folder, added to the root list.
Only the root takes these settings: level, tool_timeout_seconds, import_rule, ignore, command_check, json, hooks, ci, rule_files.
[format]
How every formatter lays out your code.
format.indent_style
"space", "tab". Default: "space".
The character of one indent level.
format.indent_width
Whole number. Default: 4.
Spaces per indent level.
format.print_width
Whole number. Default: 120.
The line width formatters wrap at.
format.quotes
"single", "double".
The quote for the languages where a formatter chooses. When unset, Python gets double quotes and the other languages single.
format.trailing_commas
"all", "es5", "none". Default: "all".
Where trailing commas go.
format.semicolons
true or false. Default: true.
Whether JavaScript and TypeScript statements end with semicolons.
format.bracket_spacing
true or false. Default: true.
Whether Prettier prints spaces inside the braces of an object.
format.arrow_parens
"always", "avoid". Default: "always".
Whether Prettier keeps the parentheses around a single arrow function parameter.
format.prose_wrap
"always", "never", "preserve". Default: "preserve".
How Prettier wraps Markdown prose.
[[format.override]]
Formatting options for repository-relative paths, in order.
format.override.paths
List. Required.
The files these formatting values apply to.
format.override.indent_style
"space", "tab".
The character of one indent level.
format.override.indent_width
Whole number.
Spaces per indent level.
format.override.print_width
Whole number.
The line width formatters wrap at.
format.override.quotes
"single", "double".
The quote for the languages where a formatter chooses. When unset, Python gets double quotes and the other languages single.
format.override.trailing_commas
"all", "es5", "none".
Where trailing commas go.
format.override.semicolons
true or false.
Whether JavaScript and TypeScript statements end with semicolons.
format.override.bracket_spacing
true or false.
Whether Prettier prints spaces inside the braces of an object.
format.override.arrow_parens
"always", "avoid".
Whether Prettier keeps the parentheses around a single arrow function parameter.
format.override.prose_wrap
"always", "never", "preserve".
How Prettier wraps Markdown prose.
[limits]
Size and complexity limits, with values per language.
limits.max_file_lines
Whole number. Default: 300. Raising needs a reason: { value = …, reason = "…" }. Language defaults: sql 400, bash 140.
The most lines one file may have, not counting blank lines and comment-only lines.
limits.max_function_lines
Whole number. Default: 60. Raising needs a reason: { value = …, reason = "…" }. Language defaults: bash 40, sql 100.
The most lines one function may have.
limits.max_function_parameters
Whole number. Default: 7. Raising needs a reason: { value = …, reason = "…" }.
The most parameters one function may take.
limits.max_function_statements
Whole number. Default: 30. Raising needs a reason: { value = …, reason = "…" }.
The most statements one function may have.
limits.max_block_nesting
Whole number. Default: 3. Raising needs a reason: { value = …, reason = "…" }.
How deep blocks may nest inside one function.
limits.max_callback_nesting
Whole number. Default: 3. Raising needs a reason: { value = …, reason = "…" }.
How deep callbacks may nest.
limits.max_cognitive_complexity
Whole number. Default: 15. Raising needs a reason: { value = …, reason = "…" }.
The highest cognitive score one function may have; the score grows as the function gets harder to follow.
limits.max_cyclomatic_complexity
Whole number. Default: 8. Raising needs a reason: { value = …, reason = "…" }.
The most paths that may run through one function.
limits.max_function_branches
Whole number. Default: 8. Raising needs a reason: { value = …, reason = "…" }.
The most branches one function may have.
limits.max_function_returns
Whole number. Default: 4. Raising needs a reason: { value = …, reason = "…" }.
The most return statements one function may have.
limits.max_function_assignments
Whole number. Default: 8. Raising needs a reason: { value = …, reason = "…" }.
The most variable assignments one shell function may make.
limits.max_closure_lines
Whole number. Default: 60. Raising needs a reason: { value = …, reason = "…" }.
The most lines one Swift closure may have.
limits.max_type_lines
Whole number. Default: 300. Raising needs a reason: { value = …, reason = "…" }.
The most lines one Swift type body may have.
limits.max_index_exports
Whole number. Default: 20. Raising needs a reason: { value = …, reason = "…" }.
The most re-exports one index file may hold.
limits.trivial_function_statements
Whole number. Default: 2. Lowering needs a reason: { value = …, reason = "…" }.
A function with this many statements or fewer, nested functions included, is reported when at most one place calls it.
limits.trivial_function_lines
Whole number. Default: 3. Lowering needs a reason: { value = …, reason = "…" }.
A SQL function with this many code lines or fewer, not counting DECLARE, BEGIN, and END, is reported when at most one place names it.
limits.min_shared_prefix_files
Whole number. Default: 2. Raising needs a reason: { value = …, reason = "…" }.
The number of siblings sharing a name prefix that makes a finding.
limits.<language>
The keys of [limits] for one language: bash, javascript, typescript, sql, python, swift. A key you leave out takes the value of [limits].
[naming]
The naming rules for files, folders, and identifiers, with values per language.
See Accept a banned name for an exact-name exception.
naming.max_characters
Whole number. Default: 35. Raising needs a reason: { value = …, reason = "…" }. Language defaults: swift 40, sql 55.
The most characters one identifier may have.
naming.max_words
Whole number. Default: 4. Raising needs a reason: { value = …, reason = "…" }. Language defaults: swift 5, sql 7.
The most words one identifier may have.
naming.cases
List. Default: []. Adding needs a reason: { value = …, reason = "…" }.
The case patterns that one identifier category accepts: camel, pascal, kebab, snake, upper-snake, pascal-extension (String+Format.swift), or timestamp-snake (20260103120000_create_users.sql). Ruff checks the case of Python classes, functions, and parameters, and SwiftLint checks Swift types, variables, parameters, and enum cases; this setting covers the rest.
naming.banned_words
List. Default: [].
Words this repository bans in identifiers, beyond the shipped groups.
naming.terms
Table. Default: {}.
Words this repository replaces, each with the word to use instead. The naming checks report the word in identifiers, and the prose checks in documentation, code comments, and commit messages. A scope adds its words to the root words.
[[naming.exception]]
Naming rules for repository-relative paths, in order; each record has its reason.
naming.exception.paths
List. Default: ["**"].
Where the exception applies.
naming.exception.languages
List.
The languages it applies to.
naming.exception.categories
List.
The kinds of name it applies to. Unknown kinds are refused.
naming.exception.ignored_prefix
Text.
A prefix not counted as a word, such as ^test_.
naming.exception.ignored_names_pattern
Text.
A regular expression for names that skip the naming rules, such as ^__[a-z][a-z0-9_]*__$.
naming.exception.allow_digits
true or false. Default: false.
Accept digits in names.
naming.exception.allow_repeated_words
true or false. Default: false.
Accept a word twice in one name.
naming.exception.allowed_names
List.
Names accepted despite the naming rules.
naming.exception.cases
List.
The cases accepted here.
naming.exception.reason
Text. Required.
Why these names may break the rules.
naming.<language>
The keys of [naming] for one language: typescript, python, swift, bash, sql, css, html. A key you leave out takes the value of [naming].
naming.<language>.<category> sets the same keys for one category of names, and a key you leave out takes the value of naming.<language>. The categories of each language:
| Language | Categories |
|---|---|
typescript |
files, folders, types, functions, parameters, variables, properties |
python |
files, folders, types, functions, parameters, variables, properties |
swift |
files, folders, types, functions, parameters, variables, properties |
bash |
files, folders, functions, variables |
sql |
files, folders, functions, parameters |
css |
files, folders |
html |
files, folders |
[commits]
The types and scopes that a commit message may use.
commits.types
List. Default: ["feat","fix","refactor","perf","docs","test","build","ci","chore","style","revert"]. Adding needs a reason: { value = …, reason = "…" }.
The commit types the type-enum rule allows.
commits.scopes
List. Default: [].
The commit scopes that a message may use. A message may also leave out its scope. When empty, gspot allows the last folder name of each [[scope]] path, or any commit scope when gspot.toml has no [[scope]].
[docker]
Where base images may come from, and which severities Trivy reports.
docker.allowed_registries
List. Default: [].
The registries a base image may come from; empty allows any.
docker.severity
List. Default: ["HIGH","CRITICAL"].
The severities Trivy reports.
[nginx]
The container that tests your nginx configuration.
nginx.image
Text. Default: "nginx:1.29.3-alpine@sha256:b3c656d55d7ad751196f21b7fd2e8d4da9cb430e32f646adcf92441b72f82b14".
The image nginx -t runs in; name the one the deployment uses.
[security]
Your own Semgrep rules.
security.semgrep_rules
List. Default: [].
Rule files or folders of the repository that Semgrep runs, along with the rules of the FastAPI configuration.
[sql]
How SQLFluff parses your queries.
sql.dialect
One of 28 names. Default: "ansi".
The SQL dialect that SQLFluff parses, such as postgres. The postgres configuration sets it. A [[scope]] sets another dialect for its folder.
[cloudflare]
What wrangler types writes, for the check that keeps the file current.
cloudflare.types_file
Text. Default: "worker-configuration.d.ts".
The committed file that holds the Worker types. gspot sets it to cloudflare-env.d.ts in an OpenNext project.
cloudflare.types_interface
Text. Default: "Env".
The environment interface name that wrangler types writes. gspot sets it to CloudflareEnv in an OpenNext project.
[coverage]
The share of code that tests must cover.
coverage.min_line_percent
Number. Default: basic: 0; all: 80. Lowering needs a reason: { value = …, reason = "…" }.
The minimum percentage of source lines covered by tests.
coverage.min_branch_percent
Number. Default: basic: 0; all: 80. Lowering needs a reason: { value = …, reason = "…" }.
The minimum percentage of source branches covered by tests.
coverage.min_function_percent
Number. Default: basic: 0; all: 80. Lowering needs a reason: { value = …, reason = "…" }.
The minimum percentage of source functions covered by tests.
coverage.min_statement_percent
Number. Default: basic: 0; all: 80. Lowering needs a reason: { value = …, reason = "…" }.
The minimum percentage of source statements covered by tests.
[[coverage.swift_target]]
Line coverage minimums for named Swift targets.
coverage.swift_target.name
Text. Required.
A Swift target named in the coverage report.
coverage.swift_target.min_line_percent
Number. Required.
The least share of lines that the target must cover, in place of coverage.min_line_percent.
coverage.swift_target.reason
Text.
Why this target may cover less.
[dependencies]
How gspot and the dependency checks treat new packages.
dependencies.min_release_age_days
Whole number. Default: 7. Lowering needs a reason: { value = …, reason = "…" }.
How many days a package waits after its release before gspot installs it.
dependencies.allowed_registries
List. Default: ["registry.npmjs.org","registry.yarnpkg.com"]. Adding needs a reason: { value = …, reason = "…" }.
The hosts a lockfile may resolve packages from.
dependencies.bun_scanner
Text.
The npm package that Bun runs as its install security scanner. Without it, Bun runs no scanner.
[docs]
The external links that the link check leaves alone.
docs.allowed_urls
List. Default: []. Adding needs a reason: { value = …, reason = "…" }.
URL patterns that the link check skips; additions need a reason for the whole list.
[drizzle]
How the Drizzle checks find your clients.
drizzle.client_names
List. Default: ["db"].
The Drizzle client identifiers checked for update and delete operations without a where clause.
[javascript]
Tell the JavaScript checks what they cannot work out alone: scripts, entry points, and import limits.
javascript.script_files
List. Default: ["scripts/**","**/*.config.{js,mjs,cjs,ts}"]. Adding needs a reason: { value = …, reason = "…" }.
The files that may print to the console and call process.exit.
javascript.import_boundaries
List. Default: [].
Folders that a relative import may not leave, such as src/features/*. An import of a file outside them takes the alias, and eslint --fix writes it.
javascript.externals
List. Default: []. Adding needs a reason: { value = …, reason = "…" }.
Import specifiers that the runtime provides, such as ../../scripts/app.js in a host application. Globs match several.
javascript.import_extension
"js", "ts", "extensionless". Default: "js".
The import suffix in this scope: js for compiled ESM, ts for Deno and Bun, or extensionless for code that a bundler builds.
javascript.entry_files
List. Default: [].
Entry points knip starts from beyond the ones the framework configuration declares.
javascript.allowed_unused_dependencies
List. Default: []. Adding needs a reason: { value = …, reason = "…" }.
Exact package names that knip does not report as unused; new names need a reason, and a scope list applies to that project only.
[[javascript.banned_imports]]
Imports that this repository refuses, each with a name and a message.
javascript.banned_imports.name
Text. Required.
The import to refuse.
javascript.banned_imports.message
Text. Required.
What to import instead.
[python]
Tell the Python tools where imports resolve from, and which docstring style to check.
python.externals
List. Default: []. Adding needs a reason: { value = …, reason = "…" }.
Modules that the host application provides at run time, such as folder_paths. A name covers its submodules.
python.docstring_convention
"google", "numpy", "pep257".
The docstring style that Ruff and pydoclint check.
python.import_folders
List. Default: [].
Folders that Python imports resolve from, for basedpyright and the import rules check.
[trpc]
The files that hold tRPC routers and server code.
trpc.router_files
List. Default: ["**/routers/**","**/*router*.ts","**/trpc/**"].
The files that declare tRPC procedures.
trpc.server_files
List. Default: [].
The server files that other files of a tRPC scope may import only as types; empty turns the rule off.
[zustand]
Where a Zustand store may live.
zustand.store_files
List. Default: ["**/store.*","**/stores/*","**/store/*","**/*.store.*"]. Adding needs a reason: { value = …, reason = "…" }.
The files that may create a store.
[licenses]
The licenses that dependencies may use, and the packages excepted from them.
licenses.allowed
List. Default: [].
The SPDX license IDs a dependency may report. Empty turns the check off.
[[licenses.allowed_package]]
Packages accepted under a license outside the list: name, version, and reason.
licenses.allowed_package.name
Text. Required.
The package name, such as lightningcss, or a glob that covers one package built for each platform, such as @img/sharp-libvips-*.
licenses.allowed_package.version
Text. Required.
An exact version, a version range such as ^1.2.0, or *; gspot reports a record that matches no locked package.
licenses.allowed_package.reason
Text. Required.
Why you accept its license; name the license here.
[openapi]
The committed OpenAPI document, and the command that writes it.
openapi.document
Text.
The committed OpenAPI document, which init fills in when it finds one; without it, the OpenAPI checks do not run.
openapi.generate_command
List.
The command that writes the OpenAPI document from the code, run in the folder of the scope.
[postgres]
Which schemas and migrations the Postgres checks read, and how your runner applies them.
postgres.client_schemas
List. Default: [].
The schemas clients reach, where every table needs row level security. Empty turns the check off.
postgres.frozen_through
"none", "all" or Text. Default: "none".
The last migration version that has run everywhere (none, all, or a version); Squawk and the checks that ask for an edit to a migration skip those migrations.
postgres.assume_in_transaction
true or false. Default: true.
Whether the migration runner wraps every migration in a transaction.
postgres.migrations_folder
Text.
The migrations folder; without it, the checks use the migration files of this configuration.
postgres.comment_width
Whole number.
The width that postgres/comment-layout refills migration comments to; without it, the print width of SQL files.
[secrets]
Where your example environment files are, and which functions read environment variables.
secrets.environment_examples
List. Default: [".env.example",".env.template",".env.sample",".dev.vars.example"].
The example environment files to search for environment keys; a key may appear in any one of them.
secrets.environment_functions
List. Default: [].
Functions of this project that read environment variables, such as read_env. secrets/environment-examples reads the keys they take.
[site]
How the site builds, and the class names and pages that the site checks accept.
site.build_command
List.
The command that builds the site. Without it, gspot runs the build script with the package manager of the repository.
site.build_folder
Text. Default: "dist".
The folder the build writes.
site.allowed_classes
List. Default: []. Adding needs a reason: { value = …, reason = "…" }.
Class names that a script adds at run time, which the unused CSS check keeps.
site.allowed_unlisted_pages
List. Default: ["404.html"]. Adding needs a reason: { value = …, reason = "…" }.
Built pages the sitemap leaves out on purpose.
[spelling]
The English dialect and the extra words that the spelling check accepts.
spelling.locale
"en", "en-us", "en-gb", "en-au", "en-ca". Default: "en".
The English locale typos checks against: en accepts every dialect; en-us, en-gb, en-ca, and en-au report the spellings of the other dialects. The fixer never changes a dialect spelling.
spelling.allowed_words
Table. Default: {}.
Words the spelling checks accept beyond the shipped spelling list, each with the reason it is a real word. A scope adds its words to the root words.
[supabase]
Where the edge functions and the generated database types live.
supabase.functions_folder
Text. Default: "supabase/functions".
The folder with one folder for each edge function.
supabase.schemas
List. Default: ["public"].
The database schemas to include in generated types.
supabase.types_file
Text.
The committed database types file; without it, no type comparison runs.
[translations]
Where the message files live, and which locale the others follow.
translations.base_locale
Text. Default: "en".
The locale whose message keys every other locale must contain.
translations.messages_folder
Text.
The folder of the <locale>.json message files.
[swift]
Which Xcode project to build, and which imports the analyzer keeps.
swift.xcode_project
Text.
The Xcode project or workspace, which init fills in when it finds one; without it, the checks use the Swift package.
swift.xcode_scheme
Text.
The shared scheme the build, the analyzer, and Periphery use.
swift.allowed_unused_imports
List. Default: [].
Imports the analyzer keeps although it sees no use of them.
swift.xcode_destination
Text. Default: "generic/platform=iOS Simulator".
The -destination that xcodebuild builds for.
[repository]
What Git may track.
repository.max_file_kilobytes
Whole number. Default: 1024. Raising needs a reason: { value = …, reason = "…" }.
The largest file, in kilobytes, that Git may track without Git LFS or a linguist-generated or linguist-vendored mark in .gitattributes.
[prose]
Headings to ban, and the length limits of documentation.
prose.banned_headings
List. Default: [].
Headings this repository bans beyond the shipped list.
prose.max_sentence_words
Whole number. Default: 30. Raising needs a reason: { value = …, reason = "…" }.
The most words one sentence of documentation may have.
prose.max_list_item_words
Whole number. Default: 45. Raising needs a reason: { value = …, reason = "…" }.
The most words one list item may have.
prose.max_paragraph_sentences
Whole number. Default: 6. Raising needs a reason: { value = …, reason = "…" }.
The most sentences one paragraph may have.
[xcode]
What an Xcode project may request.
xcode.allowed_entitlements
List. Default: [].
The entitlements the app may hold; empty turns the check off.
[tools]
Options for single tools.
[tools.eslint]
Options that gspot writes to the eslint configuration.
tools.eslint.rules
Table. Default: {}.
Option arrays by ESLint rule ID, without a severity, for rules that the level runs. gspot refuses options for any other rule. Ignore a finding with gspot ignore javascript/eslint --rule <rule> --reason "<why>".
[[tools.eslint.override]]
Lint rule options for repository-relative paths, in order, with ignores applied last.
tools.eslint.override.paths
List. Required.
The files that these lint rule options apply to.
tools.eslint.override.rules
Table.
Lint rule options for these files.
tools.eslint.override.runtime
Text.
The runtime of these files, such as serviceworker (the name the globals package uses).
[[tools.eslint.plugins]]
ESLint plugins of your own: a rule prefix as name, a tracked .js or .mjs module as path or a pinned npm package as package and version, and the rules that turn on as errors.
tools.eslint.plugins.path
Text.
A tracked plugin module, relative to the table that sets it. Leave it out with package.
tools.eslint.plugins.package
Text.
An npm package that gspot install puts in .gspot/node_modules. Leave it out with path.
tools.eslint.plugins.version
Text.
The exact version of the package.
tools.eslint.plugins.name
Text. Required.
The rule prefix, such as local in local/no-legacy-api.
tools.eslint.plugins.rules
Table. Required.
The rules of the plugin to turn on, with their options.
[tools.ruff]
Options that gspot writes to the ruff configuration.
tools.ruff.rules
List. Default: [].
Ruff rules or rule prefixes to run on top of the rules of the level, such as ANN. Ignore a finding with gspot ignore python/ruff --rule <rule> --reason "<why>".
[tools.commitlint]
Options that gspot writes to the commitlint configuration.
tools.commitlint.rules
Table. Default: {}.
Options for active commitlint rules, by rule name: an always/never condition and an optional value, without a severity; the level decides which rules run. Ignore a finding with gspot ignore commits/commitlint --rule <rule> --reason "<why>".
[tools.markdownlint]
Options that gspot writes to the markdownlint configuration.
tools.markdownlint.rules
Table. Default: {}.
Option tables by Markdown rule ID, such as MD024; the level decides which rules run. Ignore a finding with gspot ignore markdown/markdownlint --rule <rule> --reason "<why>".
[tools.stylelint]
Options that gspot writes to the stylelint configuration.
tools.stylelint.rules
Table. Default: {}.
Options for Stylelint rules, which stay errors. gspot refuses options for a rule of level all at a lower level, and Stylelint reports a rule that it does not know. Ignore a finding with gspot ignore css/stylelint --rule <rule> --reason "<why>".
[[tools.stylelint.plugins]]
Stylelint plugins of your own: a tracked .js or .mjs module as path or a pinned npm package as package and version, and the rules that turn on as errors.
tools.stylelint.plugins.path
Text.
A tracked plugin module, relative to the table that sets it. Leave it out with package.
tools.stylelint.plugins.package
Text.
An npm package that gspot install puts in .gspot/node_modules. Leave it out with path.
tools.stylelint.plugins.version
Text.
The exact version of the package.
tools.stylelint.plugins.rules
Table. Required.
The rules of the plugin to turn on, with their options.
[[import_rule]]
Code may import its own files and the files of every import rule listed above it, never below. can_import replaces the rules above with an exact list. When import rules exist, every code file belongs to one, apart from tests, tool settings files, scripts, and generated files.
import_rule.name
Text. Required.
The name that other import rules use in can_import.
import_rule.paths
List. Required.
The files of the import rule. A file belongs to the first rule that matches it. A path cannot start with !, except an extglob such as !(generated)/**.
import_rule.can_import
List.
Exactly the import rules whose files this rule may import, besides its own. Replaces the rules listed above it.
[[ignore]]
Checks and lint rules turned off, each with a reason.
ignore.check
Text.
The check to ignore: a shipped check or a command check. Leave it out to keep the paths out of every check.
ignore.rule
Text.
One lint rule of that check, or the fingerprint of one finding.
ignore.paths
List.
Where the ignore applies. A path that starts with ! puts files back for Prettier, typos, Knip, and tsc, and for ESLint when the path before it ends in /**/*, such as src/**/*.
ignore.reason
Text. Required.
Why you ignore the findings.
[[command_check]]
Your own commands, run as checks.
command_check.id
Text. Required.
The check ID that --only and [[ignore]] check use, which may not match a shipped check.
command_check.command
List. Required.
The executable and arguments to run on selected files.
command_check.paths
List. Required.
The files the check reads, as repository-relative globs.
command_check.outputs
List.
The files that the command writes. With outputs, the check runs the command in a copy and reports each output that differs from the committed file.
command_check.stage
"commit", "push", "manual". Required.
The hook that runs this check: commit or push. A manual check runs only when you name it.
command_check.runs
"files", "scope", "once". Default: "files".
Which files the check reads: files reads the files of the run, scope reads every file of the root once one of them changes, and once reads every file of the repository. With scope or once, a deleted file that paths covers also runs the check.
command_check.summary
Text.
A short description shown in check listings.
command_check.help
Text.
Instructions for resolving findings.
command_check.fix
List.
The executable and arguments that correct findings.
command_check.exit_codes
List.
Nonzero statuses that mean findings from command and fix. Other nonzero statuses mean execution failure.
[command_check.output]
The parser and location patterns used to read findings.
command_check.output.format
One of these values:
| Value | Meaning |
|---|---|
"regex" |
Read findings from lines matched by pattern and its named file, line, column, rule, and message groups. |
"grouped" |
Read a file heading matched by file_pattern, followed by findings matched by pattern. |
"knip" |
Read Knip JSON issue categories and source positions. |
"osv-scanner" |
Read OSV-Scanner JSON, with one finding for each vulnerability, its advisory IDs, and its fixed versions. |
"semgrep" |
Read Semgrep JSON results and source parse errors, with locations and rule IDs. |
"typos" |
Read typos JSON and convert byte offsets to character columns. |
"taplo" |
Read Taplo syntax errors and formatting differences. |
"vale" |
Read Vale JSON alerts by file, with locations and rule names. |
"json" |
Read JSON findings using list, children, and fields to select report entries. |
"none" |
Use the exit status without parsing output into findings. |
Required.
How gspot reads the output: json, regex, grouped, none, or the format of a named tool.
command_check.output.list
Text.
For json: the path to the list of findings.
command_check.output.children
List.
For json: the fields that lead from each item to its findings, one list per field. A finding without a field takes it from its parents.
command_check.output.line_base
0, 1.
Whether the tool counts lines from 0 or 1.
command_check.output.pattern
Text.
For regex: the pattern for one finding, with named groups file, line, column, rule, and message.
command_check.output.file_pattern
Text.
For grouped: the pattern for a line that names the file of the findings below it.
command_check.output.fixable
Text.
For regex: the pattern that marks a fixable finding.
command_check.output.message
Text.
For regex: the message of every finding whose pattern has no message group.
[command_check.output.fields]
For json: the report fields that supply each finding property.
command_check.output.fields.file
Text.
For json: the field that holds the file.
command_check.output.fields.line
Text.
For json: the field that holds the line.
command_check.output.fields.column
Text.
For json: the field that holds the column.
command_check.output.fields.rule
Text.
For json: the field that holds the lint rule.
command_check.output.fields.fingerprint
Text.
For json: the field that names this one finding, which the rule of an ignore can name.
command_check.output.fields.message
Text or List.
For json: the field that holds the message, or the fields that join into it.
command_check.output.fields.fixable
Text.
For json: the field that is set, and not null, when the tool can fix the finding.
[json]
Schemas for data files that SchemaStore does not know.
[[json.schemas]]
File patterns mapped to schema URLs, for files that the SchemaStore catalog does not know.
json.schemas.paths
List. Required.
Files SchemaStore does not know.
json.schemas.url
Text. Required.
The JSON Schema for them.
[structure]
Re-exports, the size of a copied block, and the files that may read the environment.
structure.reexports
"none", "index-only". Default: "none". Adding needs a reason: { value = …, reason = "…" }.
Where re-exports may go: none, or an index file that re-exports other files.
structure.min_duplicate_lines
Whole number. Default: 8. Raising needs a reason: { value = …, reason = "…" }.
The fewest lines a copied block has before it counts.
structure.min_duplicate_tokens
Whole number. Default: 40. Raising needs a reason: { value = …, reason = "…" }.
The fewest tokens a copied block has before it counts.
structure.environment_readers
List. Default: [].
The files that may read environment variables; other files get the values passed in. Empty turns the check off.
[hooks]
Whether gspot install turns on the Git hooks.
hooks.enabled
true or false. Default: true.
Install and run the configured Git hooks.
[ci]
The CI workflow that gspot writes.
ci.enabled
true or false. Default: false.
Whether gspot writes a CI workflow; set it at the root only.
ci.provider
"github", "gitlab". Default: "github".
Which CI service gets the workflow; set it at the root only.
ci.setup_command
List.
A command CI runs before gspot install, in place of the frozen install of each lockfile.
ci.operating_systems
List. Default: ["linux"].
The operating systems of the CI jobs. GitHub only; refused with provider = “gitlab”.
ci.linux_runner
Text. Default: "ubuntu-24.04".
The GitHub runner label of the Linux job, such as a larger or self-hosted runner. GitHub only; refused with provider = “gitlab”.
[rule_files]
The rule files that gspot writes for coding agents.
rule_files.enabled
true or false. Default: true.
Write the rules and the AGENTS.md block.
rule_files.exclude
List. Default: [].
Rule files under .gspot/rules/ to leave out, such as .gspot/rules/PLANNING.md.