You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1179388
Browse filesBrowse the repository at this point in the historyBrowse files
|[check-jsonschema](https://github.com/python-jsonschema/check-jsonschema)| 0.38.0 | Schema validation: CI pipelines, Docker Compose, GitHub issue forms and actions, Dependabot, Renovate, and [more](#schema-validated-files)|
| Built-in syntax check, using [tomli](https://github.com/hukkin/tomli) for TOML | 2.3.1 |[JSON, JSONC, and TOML](#json-and-toml) (`*.json`, `*.jsonc`, `*.toml`, `Pipfile`) |
82
84
83
85
Built on `python:3-alpine3.24`.
84
86
@@ -176,6 +178,7 @@ repository. In order, it:
176
178
177
179
1. Runs `yamllint -s` (strict) over all tracked `*.yml` / `*.yaml` files, except generated lockfiles (`pnpm-lock.yaml`, `conda-lock.yml`).
178
180
1. Schema-validates well-known config files against their published schemas with `check-jsonschema`, when present. See [Schema-validated files](#schema-validated-files).
181
+
1. Syntax-checks all tracked JSON, JSONC, and TOML files, except generated lockfiles (`package-lock.json`, `npm-shrinkwrap.json`). See [JSON and TOML](#json-and-toml).
179
182
1. Runs `actionlint` over all tracked `.github/workflows/*.yml` / `*.yaml` files (delegating embedded `run:` scripts to the bundled ShellCheck).
180
183
1. If a `package.json` exists, requires a lockfile to accompany it: `package-lock.json`, `npm-shrinkwrap.json`, `yarn.lock`, `pnpm-lock.yaml`, `bun.lock`, or `bun.lockb`.
181
184
1. Runs `shellcheck` over all tracked `*.sh` / `*.bash` files, plus extensionless files whose shebang names `sh`, `bash`, `dash`, or `ksh` (directly or through `env`), such as Git hooks. The generated `gradlew` and `mvnw` wrappers are skipped.
@@ -234,6 +237,34 @@ pre-commit hooks.
234
237
Each `.yml` or `.yaml` name in the table matches both spellings, except Meltano
235
238
and Mergify (`.yml` only) and Snapcraft (`.yaml` only).
236
239
240
+
### JSON and TOML
241
+
242
+
JSON files (`*.json`) must be strict [RFC 8259](https://www.rfc-editor.org/rfc/rfc8259)
243
+
JSON: no comments, trailing commas, `NaN` or `Infinity`, duplicate keys, or byte
244
+
order mark. JSONC files may also use `//` and `/* */` comments, trailing commas,
245
+
and a byte order mark, as TypeScript and VS Code allow. These files count as
246
+
JSONC, at any depth, because the tools that read them accept comments:
247
+
248
+
-`*.jsonc`, `*.code-workspace`, `*.code-snippets`, and `.vscode/*.json`
249
+
-`devcontainer.json` and `.devcontainer.json`
250
+
-`tsconfig*.json` and `jsconfig*.json`, such as `tsconfig.build.json`
251
+
-`deno.json`, `biome.json`, `turbo.json`, `wrangler.json`, and `typedoc.json`
0 commit comments