-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.claude-precommit
More file actions
29 lines (23 loc) · 1.08 KB
/
.claude-precommit
File metadata and controls
29 lines (23 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Claude-SM Pre-commit Configuration
# Edit these settings to customize behavior
# Enable/disable features
CLAUDE_REVIEW_ENABLED=true # Code review for security/bugs
CLAUDE_REFACTOR_ENABLED=true # Refactoring suggestions
CLAUDE_TEST_ENABLED=true # Edge case test generation
CLAUDE_AUTO_FIX=false # Auto-apply fixes (dangerous!)
# Size limits
MAX_FILE_SIZE=100000 # Max size per file (100KB)
MAX_TOTAL_SIZE=500000 # Max total size (500KB)
# Claude CLI settings
CLAUDE_MODEL=claude-3-opus # Model to use
CLAUDE_MAX_TOKENS=4000 # Max tokens per request
# File patterns to check (regex)
INCLUDE_PATTERNS='\\.(js|ts|jsx|tsx|py|go|rs|java)$'
EXCLUDE_PATTERNS='(node_modules|dist|build|vendor)/'
# Severity thresholds
BLOCK_ON_CRITICAL=true # Block commit on critical issues
WARN_ON_MEDIUM=true # Show warnings for medium issues
SUGGEST_IMPROVEMENTS=true # Show improvement suggestions
# StackMemory integration
USE_STACKMEMORY=true # Use SM for context
SAVE_REVIEW_HISTORY=true # Save reviews to SM