GM-004: Invalid Hooks Configuration in Gemini Settings
Summary
- Rule ID:
GM-004 - Severity:
MEDIUM - Category:
Gemini CLI - Normative Level:
MUST - Auto-Fix:
No - Verified On:
2026-02-14
Applicability
- Tool:
gemini-cli - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
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
{"hooksConfig":{"InvalidEvent":[{"type":"command","command":"echo test"}]}}
Valid
{"hooksConfig":{"BeforeAgent":[{"type":"command","command":"echo test"}]}}