GM-009: Gemini Settings Parse Error or Unknown Top-Level Key
Summary
- Rule ID:
GM-009 - Severity:
HIGH - Category:
Gemini CLI - Normative Level:
MUST - Auto-Fix:
Yes (unsafe) - Verified On:
2026-10-17
Applicability
- Tool:
gemini-cli - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://geminicli.com/docs/reference/configuration
- https://raw.githubusercontent.com/google-gemini/gemini-cli/main/packages/cli/src/config/settingsSchema.ts
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{ invalid json }
Valid
{"general":{},"hooks":{},"mcpServers":{"docs":{"command":"node","args":["server.js"]}}}