Skip to main content
Version: 0.60.3

GM-018: Gemini Hook Timeout Looks Like Seconds - Gemini CLI

Summary​

  • Rule ID: GM-018
  • Severity: MEDIUM
  • Category: Gemini CLI
  • Normative Level: SHOULD
  • Auto-Fix: No
  • Verified On: 2026-10-17

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​

{"hooks":{"BeforeTool":[{"matcher":"write_file","hooks":[{"type":"command","command":"./check.sh","timeout":30}]}]}}

Valid​

{"hooks":{"BeforeTool":[{"matcher":"write_file","hooks":[{"type":"command","command":"./check.sh","timeout":30000}]}]}}