Checks
The stage says when a check runs, and the level says which setting of level turns it on. gspot explain <check> shows its state in your repository.
Languages
Section titled “Languages”| Check | Stage | Level | What it does |
|---|---|---|---|
bash/zsh-syntax |
commit |
basic |
Checks the syntax of Zsh scripts with zsh -n. |
bash/shellcheck |
commit |
basic |
Runs ShellCheck over shell scripts, with its stable optional rules at level all. |
bash/shfmt |
commit |
basic |
Checks that every shell script matches the shfmt output, with the layout from .editorconfig. |
bash/script-layout |
commit |
all |
Checks each Bash script for a shebang, strict mode, a final main call when it defines functions, declarative libraries, and removed temporary files. |
bash/unused-functions |
commit |
all |
Finds shell functions no script in the scope calls. |
bash/unread-arguments |
commit |
basic |
Finds shell functions called with arguments they never read. |
bash/function-size |
commit |
all |
Checks every shell function against the size ceilings: code lines, branches, nesting, and assignments. |
bash/inline-scripts |
commit |
all |
Finds inline Python and Node code, and heredocs piped into an interpreter, in shell scripts. |
bash/safety |
commit |
basic |
Finds broad process kills, recursive deletes outside traps that remove mktemp paths, and unsafe shell forms such as typeset, eval, and curl without --fail. |
css/stylelint |
commit |
basic |
Lints every stylesheet with the standard stylelint rules, and refuses left and right properties and values, outline: none, and a font-size outside rem, em, and %. |
html/html-validate |
commit |
basic |
Validates HTML files for nesting, required attributes, and text alternatives. |
html/inline-scripts |
commit |
basic |
Reports inline scripts, event handler attributes, and executable URLs in HTML files. |
javascript/eslint |
commit |
basic |
Runs the shipped ESLint rules on JavaScript, TypeScript, component files, and package.json. |
javascript/import-cycles |
push |
basic |
Reports import cycles between modules. |
javascript/tsc |
push |
basic |
Type-checks plain JavaScript through its JSDoc comments. |
javascript/knip |
push |
basic |
Finds files, exports, and dependencies nothing uses. |
javascript/biome |
commit |
all |
Checks the cognitive complexity of each function against limits.javascript.max_cognitive_complexity and limits.typescript.max_cognitive_complexity. |
json/v8r |
push |
basic |
Validates SchemaStore files that other checks do not own, such as Compose, Dependabot, and Renovate files. |
markdown/markdownlint |
commit |
basic |
Checks the headings, lists, and spacing of every Markdown file. |
markdown/fences |
commit |
basic |
Checks the code blocks of Markdown and MDX files for syntax errors. |
python/ruff |
commit |
basic |
Lints every Python file with the Ruff rules for the level, security rules included. |
python/ruff-format |
commit |
basic |
Checks the layout of every Python file against the Ruff formatter. |
python/basedpyright |
push |
basic |
Type checks the project. At level all, it also requires annotations. |
python/pydoclint |
commit |
basic |
Checks that each docstring names the arguments, return value, and exceptions of its function. At level all, a one-line docstring names the arguments too. |
python/deptry |
push |
basic |
Compares the imports of the project with the dependencies it declares: missing, unused, and transitive ones. |
python/vulture |
push |
all |
Finds functions, classes, methods, attributes, and properties that no Python file of the scope uses, and code that never runs. |
python/function-size |
commit |
all |
Checks the code line count of each Python function against limits.python.max_function_lines. |
python/pip-installs |
commit |
all |
Checks that pyproject.toml lists every dependency, with no hand-kept requirements file and no pip install. |
python/placeholder-docstrings |
commit |
all |
Finds docstrings that hold a placeholder word, repeat the name of their function or class, or start a class docstring with Class that, Class for, or A class. |
sql/sqlfluff |
commit |
basic |
Lints every SQL file for layout, capitalization, aliasing, and ambiguous references, in the dialect that sql.dialect names. |
sql/keywords |
commit |
basic |
Checks, in the Postgres dialects, the keywords that SQLFluff does not read: the keywords and built-in types of PL/pgSQL, ANY, ALL, SOME, EXISTS, NOT, DISTINCT, and ARRAY before a bracket with their space, and the case of NEW, OLD, and the other PL/pgSQL names. |
swift/swiftlint |
commit |
basic |
Lints Swift files with the SwiftLint files of each scope and nested folder, and treats warnings as errors. |
swift/swiftformat |
commit |
basic |
Checks the layout of every Swift file against the shipped SwiftFormat rules. |
swift/build |
push |
basic |
Builds the package or Xcode scheme once per scope, and reports the compiler errors and the warnings in your own sources. A package build treats warnings as errors. |
swift/swiftlint-analyze |
manual |
basic |
Runs the SwiftLint analyzer rules over the compiler log of the build: unused imports and captured variables. |
swift/periphery |
push |
basic |
Scans the built project for declarations nothing uses. |
swift/skip-reasons |
commit |
basic |
Checks that skip calls and disabled traits name a nonempty reason, and unavailable tests carry an explanation. |
swift/security |
commit |
basic |
Finds always-accessible Keychain items, MD5 and SHA-1 hashes, each secret in UserDefaults, a plist read, or a log, and SQLite calls whose SQL text interpolates a value. |
swift/tests |
push |
basic |
Measures each source target in Xcode projects and Swift packages against coverage.min_line_percent and its coverage.swift_target minimum. |
toml/taplo |
commit |
basic |
Checks that every TOML file parses and matches the taplo output under the shared settings. |
typescript/tsc |
push |
basic |
Runs tsc on each tsconfig project, or on the TypeScript files of a scope that has no tsconfig, with the strict options of the level. |
typescript/tsconfig |
commit |
basic |
Requires strict in every tsconfig you write. Level all also requires noUncheckedIndexedAccess, exactOptionalPropertyTypes, noImplicitOverride, noFallthroughCasesInSwitch, noImplicitReturns, and noPropertyAccessFromIndexSignature. |
xml/xmllint |
commit |
basic |
Parses every XML file with xmllint. |
yaml/syntax |
commit |
basic |
Checks YAML syntax, duplicate keys, anchors, ambiguous scalar values, and file conventions. |
Frameworks
Section titled “Frameworks”| Check | Stage | Level | What it does |
|---|---|---|---|
astro/astro-check |
push |
basic |
Runs astro check over the scope: the type errors and warnings of every Astro component. |
expo/expo-doctor |
push |
basic |
Runs Expo Doctor and reports each failed check with its details. |
nextjs/tsc |
push |
basic |
Has Next.js write its types, then type-checks the app with the strict compiler options. |
react-dom/react-versions |
commit |
basic |
Checks that react and react-dom resolve to the same version. |
site/build |
push |
basic |
Runs site.build_command, and fails on an error or a missing output folder. |
site/html-validate |
push |
basic |
Validates every built page with html-validate. |
site/purgecss |
push |
basic |
Finds unused selectors from the scope’s stylesheets in the built CSS. |
site/lychee |
push |
basic |
Checks the links between built pages, stylesheets, and fragments without a server or network requests. |
site/sitemap |
push |
basic |
Compares the sitemap with the built pages, and reports a listed route with no page or a page left out. |
site/unused-assets |
push |
basic |
Finds files under an assets folder that no page, stylesheet, or script names. |
svelte/svelte-check |
push |
basic |
Runs svelte-check over the scope for compiler and accessibility warnings, and the types of every component and TypeScript file. |
vue/vue-tsc |
push |
basic |
Type-checks every Vue component and TypeScript file of the scope with the strict compiler options. |
Platforms
Section titled “Platforms”| Check | Stage | Level | What it does |
|---|---|---|---|
cloudflare/headers |
commit |
basic |
Checks that _headers holds only blocks of a path followed by indented name-value lines, and that the /* block sets X-Content-Type-Options, Referrer-Policy, and X-Frame-Options or a CSP frame-ancestors. |
cloudflare/redirects |
commit |
basic |
Checks each redirect source, destination, and optional status: 200, 301, 302, 303, 307, or 308, without a force suffix. |
cloudflare/stale-types |
push |
basic |
Checks that the environment types file, when the scope has one, is tracked and matches what wrangler writes. |
supabase/storage-policies |
commit |
basic |
Checks that every storage bucket in the project file has a policy on storage.objects that names it. |
supabase/verify-jwt |
commit |
basic |
Checks that each verify_jwt = false in the project file has a comment that says why. |
supabase/service-role-key |
commit |
basic |
Checks that only edge functions and test files name a secret or service role key. |
supabase/deno-lint |
commit |
basic |
Runs deno lint over every edge function, with the function’s deno.json when it has one. |
supabase/deno-check |
push |
basic |
Runs deno check on the entry file of every edge function. |
supabase/stale-types |
push |
basic |
Compares supabase.types_file with the output the Supabase CLI writes from the local database. |
Databases
Section titled “Databases”| Check | Stage | Level | What it does |
|---|---|---|---|
postgres/squawk |
commit |
basic |
Checks every migration for changes that lock or rewrite a table, or break the running application. |
postgres/migration-order |
commit |
basic |
Checks that every migration has a version, that no two share one, and that a new migration sorts after the committed ones. |
postgres/edited-migrations |
commit |
basic |
Checks that no migration of the base revision differs from its committed text, and that migrations after postgres.frozen_through use IF NOT EXISTS only on CREATE INDEX CONCURRENTLY. |
postgres/row-level-security |
commit |
basic |
Checks that client tables turn on row-level security, client views keep it, and policies after the frozen migrations name their roles and explain USING (true). |
postgres/grants |
commit |
basic |
Reports a migration that grants all privileges, a SECURITY DEFINER function that PUBLIC can run (at level all, any function), and an EXECUTE grant on a trigger function. |
postgres/definer-search-path |
commit |
basic |
Checks that every SECURITY DEFINER function sets its search_path to a value that the migration states and that names neither public nor "$user". |
postgres/foreign-key-indexes |
commit |
basic |
Checks that an index, a primary key, or a unique key starts with all columns of each foreign key. |
postgres/function-size |
commit |
all |
Checks each function defined after the frozen migrations against the size limits of limits.sql: code lines, statements, nesting, and parameters. |
postgres/trivial-functions |
commit |
all |
Finds functions defined after the frozen migrations with limits.sql.trivial_function_lines code lines or fewer that no trigger runs, no grant exposes, and at most one place in the repository names. |
postgres/function-shape |
commit |
all |
Checks the functions defined after the frozen migrations for a body between single quotes, and the PL/pgSQL ones for a value assigned only to be returned, a copied parameter, a variable that holds one literal, an unread variable or parameter, and a WHEN OTHERS handler that drops the error. |
postgres/dynamic-sql |
commit |
basic |
Reports an EXECUTE in a PL/pgSQL function that builds its SQL with ||, or with %s in format(). |
postgres/function-declarations |
commit |
all |
Checks that every function sets a search_path that names no schema but pg_catalog and pg_temp, and that every function other than a trigger function or a procedure declares its volatility. A procedure that commits or rolls back, a SQL function that the planner inlines, and a function with a SQL-standard body need no search_path. |
postgres/sections |
commit |
all |
Checks that each migration after the frozen ones puts its statements under section banners, in the fixed order of the sections. |
postgres/policy-names |
commit |
all |
Checks that each policy that a migration after the frozen ones creates is named for its role, its action, and what it guards. |
postgres/statement-layout |
commit |
all |
Checks the layout of the triggers, policies, grants, CHECK constraints, and VALUES in the migrations after the frozen ones: each clause of a trigger or a policy on its own line, flush left, one object per grant, a grant or a CHECK on one line when it fits the print width, one row of VALUES per line, and no comment inside a trigger, a policy, or a grant. |
postgres/grant-order |
commit |
all |
Checks that the Grants section of each migration after the frozen ones keeps its groups, its privileges, and its columns in order, and sorts its runs of function revokes and grants by length. |
postgres/list-layout |
commit |
all |
Checks that each list of columns, parameters, or argument types in the migrations after the frozen ones stands on one line when it fits the print width, and holds one item per line otherwise. |
postgres/comment-layout |
commit |
all |
Checks that the comments of the migrations after the frozen ones fit within postgres.comment_width, put one space after --, hold no bare -- line, and, outside function bodies, follow a blank line when they follow code. |
Testing
Section titled “Testing”| Check | Stage | Level | What it does |
|---|---|---|---|
jest/tests |
push |
basic |
Runs Jest with coverage, and fails on a failed test or when lines, branches, functions, or statements fall under their minimums. |
pytest/tests |
push |
basic |
Runs pytest with coverage, and fails on a failed test or when the covered lines fall under their minimum. |
vitest/tests |
push |
basic |
Runs Vitest with coverage, and fails on a failed test or when lines, branches, functions, or statements fall under their minimums. |
Infrastructure
Section titled “Infrastructure”| Check | Stage | Level | What it does |
|---|---|---|---|
ansible/ansible-lint |
commit |
basic |
Runs ansible-lint beside each ansible.cfg or at the scope root, with the moderate profile at level basic and the production profile at level all. |
docker/hadolint |
commit |
basic |
Lints every Dockerfile, and runs ShellCheck over its RUN lines. |
docker/compose |
push |
basic |
Parses every Compose file with docker compose config, which needs no running daemon. |
docker/service-security |
commit |
basic |
Reports each Compose service that runs privileged, mounts the Docker socket, or turns off its seccomp, AppArmor, or SELinux profile. |
docker/instructions |
commit |
basic |
Finds RUN lines that can rewrite the lockfile, pipe a download into a shell, or add a second Python index, an ADD of a URL with no checksum, the Docker socket as a VOLUME, an nginx tag with no full version, and a shell as the ENTRYPOINT. |
docker/dockerignore |
commit |
basic |
Checks that an ignore file beside every Dockerfile keeps .git, installed dependencies, and environment files out of the build, and that no COPY source sits in it. |
docker/trivy-config |
push |
basic |
Scans Dockerfiles for HIGH and CRITICAL misconfigurations, including a root user and exposed secrets. |
docker/trivy-image |
manual |
basic |
Scans every image a Compose file names for known vulnerabilities in its packages. |
github-actions/actionlint |
commit |
basic |
Checks every GitHub Actions workflow with actionlint: syntax, expressions, action inputs, and shell steps. |
github-actions/workflow-shape |
commit |
basic |
Checks each workflow for a job timeout, a pinned runner, a reason above continue-on-error, no expression or piped download in run:, no test retry, no secret in the top-level env, a concurrency group that fits its triggers and cancels only pull request runs, and retention-days on uploads. |
github-actions/zizmor |
commit |
basic |
Audits GitHub Actions workflows and composite actions with zizmor for template injection, excessive permissions, and dangerous triggers. |
nginx/gixy |
commit |
basic |
Checks every nginx file for mistakes that expose a server: request forgery, path traversal through alias, header injection, and a disclosed version. |
nginx/syntax |
push |
basic |
Runs nginx -T on each main file inside the image, with a throwaway certificate and resolved upstream names. |
openapi/spectral |
commit |
basic |
Lints the file in openapi.document with the Spectral OpenAPI rules and the OWASP rules on credentials in URLs, HTTP Basic auth, and insecure auth schemes. |
openapi/stale-document |
push |
basic |
Runs openapi.generate_command and fails when the document changes. |
xcode/plutil |
commit |
basic |
Parses every property list and entitlements file with plutil. |
xcode/build-settings |
commit |
basic |
Reports a target without strict concurrency, a run-script phase with no declared files, and a run-script phase that runs the linter or the formatter. |
xcode/xcstrings |
commit |
basic |
Checks that each string catalog parses and translates every string into all its locales. |
xcode/assets |
commit |
basic |
Checks that each asset Contents.json parses, and that its image set holds each file it names. |
xcode/unused-assets |
commit |
basic |
Finds asset sets that no source or Xcode build setting names. |
xcode/files-without-target |
commit |
basic |
Finds the Swift files in the tree that no target of the project names. |
xcode/entitlements |
commit |
basic |
Checks each entitlement against xcode.allowed_entitlements, when the settings hold that list. |
xcode/app-transport-security |
commit |
basic |
Refuses a property list that allows arbitrary loads, which turns transport security off for every host. |
Libraries
Section titled “Libraries”| Check | Stage | Level | What it does |
|---|---|---|---|
drizzle/stale-migrations |
push |
basic |
Runs drizzle-kit generate and fails when it creates a migration. |
translations/messages |
push |
basic |
Checks the next-intl JSON/ICU files under translations.messages_folder: each message parses, none stays empty, and each locale holds all keys of the base, and holds no key the base lacks. |
General
Section titled “General”| Check | Stage | Level | What it does |
|---|---|---|---|
agents/nested-files |
commit |
basic |
Reports each tracked AGENTS.md outside the repository root. |
commits/commitlint |
message |
all |
Checks a new commit message for a conventional type, an optional known scope, a first line of 72 characters or fewer, and a wrapped body. |
commits/references |
message |
basic |
Checks a new commit message for AI session links, finding IDs, plan steps, home folder paths, markers that stop CI, and Refs: or Closes: footers with no issue number. |
commits/commitlint-pushed |
push |
all |
Checks the message of each commit in a push. A manual run covers every commit from the upstream merge base to HEAD. |
dependencies/osv-scanner |
push |
basic |
Looks up every locked dependency in the Open Source Vulnerabilities (OSV) advisory database. |
dependencies/syncpack |
push |
all |
Checks that each dependency has ranges that agree across the workspace. |
dependencies/lockfiles |
commit |
basic |
Checks that lockfile downloads use HTTPS and an allowed registry host, and that each scope holds the lockfiles of one package manager. |
dependencies/stale-lockfile |
commit |
basic |
Checks that each package.json declares the dependencies that its npm, pnpm, or Bun lockfile records. |
dependencies/package-manager-pin |
commit |
basic |
Checks that the package manager that package.json names, in packageManager or devEngines.packageManager, and its mise pin name one version, and that a pnpm, Yarn, or Bun project names one. |
docs/lychee |
commit |
basic |
Checks that local documentation links reach existing files and valid anchor or text fragments. |
docs/lychee-external |
manual |
basic |
Checks every external link over the network. |
docs/missing-paths |
commit |
basic |
Checks that documented paths point to tracked files, and that each documented run command of mise or a package manager names a task or script. |
docs/version-strings |
commit |
all |
Reports the version of a package manifest of the scope in Markdown and test files, except changelogs. |
format/prettier |
commit |
basic |
Checks each file Prettier handles for unformatted code. |
format/editorconfig-checker |
commit |
basic |
Checks line endings, final newlines, and trailing whitespace in every file against .editorconfig. |
gspot/conflicting-configs |
commit |
basic |
Finds a tool config that a generated config file replaces, and the scripts, hooks, CI steps, and devDependencies that still call or repeat such a tool. |
gspot/generated-files |
commit |
basic |
Compares generated files with the settings and reports changed, absent, and stray files. |
gspot/unmatched-paths |
commit |
basic |
Reports each path pattern in gspot.toml that matches no tracked file. |
gspot/suppressions |
commit |
basic |
Reports suppressions with no reason, any that lift a size or complexity limit, and Semgrep or Vale suppressions. |
gspot/detected-configurations |
commit |
basic |
Reports each configuration that the files of a scope suggest and that gspot.toml neither selects nor removes. |
gspot/weakenings |
push |
basic |
Reports a gspot.toml change with no reason that adds or widens an ignore, removes a configuration, lowers the level, makes a setting weaker, or turns off hooks or rule files. |
licenses/allowed |
push |
basic |
Compares the license of each locked package with the allowed list and package records, through osv-scanner. |
naming/identifiers |
commit |
all |
Checks every identifier against the naming settings: banned words, case, length, and word count. |
naming/paths |
commit |
all |
Checks every file name, without its extension, and every folder name against the case rules of its language and the banned words. |
naming/allowed-names |
commit |
all |
Reports allowed names that no source file uses. |
prose/dates |
commit |
basic |
Reports a date such as 03/04/2026 in Markdown text and in code comments. |
prose/vale |
commit |
all |
Checks prose against the complete gspot style and the upstream packages in Markdown, and the comment rules in code comments. |
prose/commit-message |
message |
all |
Runs the word rules of WRITING.md on a new commit message, except the rule on history. |
repository/large-files |
commit |
basic |
Checks that each tracked file over the size limit goes through Git LFS or has a reason. |
repository/local-files |
commit |
basic |
Reports a tracked file at a path that a configuration keeps out of Git, and each tracked symbolic link that leaves the repository. |
repository/conflict-markers |
commit |
basic |
Reports each line of a tracked text file that a Git merge conflict leaves behind. |
repository/encoding |
commit |
basic |
Checks that tracked text files use UTF-8. |
secrets/gitleaks-staged |
commit |
basic |
Scans the staged change for keys, tokens, and passwords. |
secrets/gitleaks-pushed |
push |
basic |
Scans every commit about to be pushed for keys, tokens, and passwords. |
secrets/dotenv-linter |
commit |
basic |
Checks every tracked environment file: key format, duplicates, quoting, ordering, and trailing spaces. |
secrets/environment-defaults |
push |
basic |
Reports a read of a variable named like a token, secret, key, or password with a literal fallback, in JavaScript, TypeScript, and Python. |
secrets/environment-examples |
push |
basic |
Checks that an existing env example lists each static uppercase key that code reads through process.env, import.meta.env, Bun.env, Deno.env.get, the Python os module, or an environment function. |
security/semgrep |
push |
basic |
Runs the Semgrep rules of the FastAPI configuration and the files in security.semgrep_rules over the files of the run. |
spelling/typos |
commit |
basic |
Finds misspelled words in code, comments, and documentation. |
structure/jscpd |
push |
all |
Reports every block of code copied between files, naming both places. |
structure/import-rules |
commit |
basic |
Applies [[import_rule]] to Python and Swift imports and to the types that Swift files name, and reports code files that no import rule covers. ESLint applies the rules to JavaScript and TypeScript imports. |
structure/empty-folders |
commit |
basic |
Finds a folder that holds no files, directly or through its subfolders, and a folder that holds only .gitkeep or .keep. |
structure/lone-files |
commit |
all |
Finds a folder that holds one code file and nothing else. |
structure/pass-through-folders |
commit |
all |
Finds a folder whose only entry is one folder. |
structure/shared-prefixes |
commit |
all |
Finds sibling files that share a name prefix, such as asset-card, asset-list, and asset-row. |
structure/file-folder-clashes |
commit |
all |
Finds a file and a folder with the same name, apart from the extension, in the same place, such as turn.ts beside turn/. |
structure/long-files |
commit |
all |
Checks the code line count of each Python, SQL and shell file against limits.<language>.max_file_lines. ESLint and SwiftLint count the other languages. |
structure/trivial-functions |
commit |
all |
Finds Python, Swift, and Bash functions at or under limits.trivial_function_statements that at most one place calls, exported JavaScript and TypeScript functions of that size that one place calls, and files that hold only imports, re-exports, and aliases. |
structure/function-order |
commit |
all |
Finds a private top-level function below a public one in Python, Swift, JavaScript, and TypeScript. |
structure/bare-blocks |
commit |
all |
Finds Swift do blocks without catch. ESLint reports the bare blocks of JavaScript and TypeScript. |
structure/environment-readers |
commit |
all |
Finds environment reads outside the files listed in structure.environment_readers. |