# TimeSafari Git Hooks This directory contains custom Git hooks for the TimeSafari project. ## Debug Code Checker Hook ### Overview The `pre-commit` hook automatically checks for debug code when committing to protected branches (master, main, production, release). This prevents debug statements from accidentally reaching production code. ### How It Works 1. **Branch Detection**: Only runs on protected branches (configurable) 2. **File Filtering**: Automatically skips test files, scripts, and documentation 3. **Pattern Matching**: Detects common debug patterns using regex 4. **Commit Prevention**: Blocks commits containing debug code ### Protected Branches (Default) - `master` - `main` - `production` - `release` - `stable` ### Debug Patterns Detected - **Console statements**: `console.log`, `console.debug`, `console.error` - **Template debug**: `Debug:`, `debug:` in Vue templates - **Debug constants**: `DEBUG_`, `debug_` variables - **HTML debug**: `