check-json fails on the JSONC launch.json and an empty Unity Settings.json #33
Labels
No labels
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/eco-mods#33
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After #31 (the four catalog hooks) and the shell-script LF pin (
b4590c1, shellcheck),pre-commit run --all-fileshas one hook left red:check-json. Two files, both pre-existing and platform-independent (they fail on Linux too, not only on a Windows checkout).1. mods/.vscode/launch.json is JSONC
The file carries
//line comments, which VS Code accepts forlaunch.jsonbut strict JSON does not.check-jsonfrom pre-commit-hooks parses strict JSON and fails:Standard fix: exclude
.vscode/fromcheck-jsonin.pre-commit-config.yaml(VS Code config is JSONC by design), or switch that path to a JSONC-aware check.2. unity/ProjectSettings/Packages/com.unity.services.core/Settings.json is empty
The file is 0 bytes, so any JSON parser fails at char 0:
This is a Unity-generated stub. Either exclude the Unity
ProjectSettings/tree fromcheck-json(Unity owns those files), or replace the empty file with{}if the package expects a config object.Scope note
check-jsonis a pre-commit-hooks hook, not an agentic-os catalog hook, so it sat outside #31 and the shellcheck LF pin. This is the last hook keepingpre-commit run --all-filesfrom green.Done means
pre-commit run --all-filesgreen.Related