-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.claude-code.json
More file actions
177 lines (177 loc) · 5.4 KB
/
.claude-code.json
File metadata and controls
177 lines (177 loc) · 5.4 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"hooks": {
"pre-commit": [
{
"name": "ESLint check",
"command": "npm run lint",
"description": "Run ESLint to check code quality and style",
"timeout": 60000,
"blocking": true
},
{
"name": "TypeScript type check",
"command": "npm run typecheck",
"description": "Verify TypeScript types without emitting files",
"timeout": 120000,
"blocking": true
},
{
"name": "Quick test validation",
"command": "npm run test:fast",
"description": "Run quick tests to catch obvious regressions",
"timeout": 180000,
"blocking": true
},
{
"name": "Markdown linting",
"command": "npx markdownlint *.md docs/**/*.md --fix",
"description": "Lint and auto-fix markdown files following GitHub best practices",
"timeout": 30000,
"blocking": true
},
{
"name": "Prettier formatting",
"command": "npx prettier --write *.md docs/**/*.md",
"description": "Format markdown files with consistent styling",
"timeout": 30000,
"blocking": true
},
{
"name": "Security scan",
"command": "npm run security:check",
"description": "Quick security vulnerability scan and credential detection",
"timeout": 60000,
"blocking": true
}
],
"pre-push": [
{
"name": "Full build",
"command": "npm run build",
"description": "Ensure project builds successfully",
"timeout": 180000,
"blocking": true
},
{
"name": "Complete test suite",
"command": "npm test",
"description": "Run all tests to prevent CI failures",
"timeout": 600000,
"blocking": true
},
{
"name": "Security audit",
"command": "npm audit --audit-level=moderate",
"description": "Check for security vulnerabilities in dependencies",
"timeout": 120000,
"blocking": true
},
{
"name": "Comprehensive security tests",
"command": "npm run test:security",
"description": "Run comprehensive security validation and penetration tests",
"timeout": 300000,
"blocking": true
},
{
"name": "Security policy validation",
"command": "npm run security:test",
"description": "Validate security policies and configuration",
"timeout": 120000,
"blocking": true
},
{
"name": "Performance tests",
"command": "npm run test:performance",
"description": "Validate performance regression thresholds",
"timeout": 300000,
"blocking": false
}
],
"file-specific": {
"src/**/*.ts": [
{
"name": "TypeScript compile check",
"command": "npx tsc --noEmit --strict ${files}",
"description": "Check TypeScript files for compilation errors",
"timeout": 60000,
"blocking": true
}
],
"tests/**/*.{js,ts}": [
{
"name": "Test file validation",
"command": "npm run test -- --testPathPattern=${files}",
"description": "Run tests for modified test files",
"timeout": 300000,
"blocking": true
}
],
"src/cache/**/*.ts": [
{
"name": "Cache module lint",
"command": "npx eslint ${files}",
"description": "Extra linting for cache modules",
"timeout": 30000,
"blocking": true
}
],
"package.json": [
{
"name": "Package validation",
"command": "npm ls --depth=0",
"description": "Validate package.json dependencies",
"timeout": 60000,
"blocking": true
}
],
"*.md": [
{
"name": "Markdown file validation",
"command": "npx markdownlint ${files} --fix && npx prettier --write ${files}",
"description": "Lint and format specific markdown files on change",
"timeout": 30000,
"blocking": true
}
],
"src/security/**/*.ts": [
{
"name": "Security module validation",
"command": "npx eslint ${files} && node scripts/security-check.js --files=${files}",
"description": "Enhanced security validation for security-critical modules",
"timeout": 60000,
"blocking": true
}
],
"src/client/**/*.ts": [
{
"name": "Client security scan",
"command": "node scripts/security-check.js --files=${files} --check-auth",
"description": "Security scan for authentication and HTTP client modules",
"timeout": 45000,
"blocking": true
}
],
"*.{env,config,json}": [
{
"name": "Configuration security check",
"command": "node scripts/security-check.js --files=${files} --check-secrets",
"description": "Scan configuration files for exposed secrets and credentials",
"timeout": 30000,
"blocking": true
}
]
}
},
"settings": {
"parallelExecution": true,
"continueOnFailure": false,
"logLevel": "info",
"retryCount": 1,
"notifications": {
"success": false,
"failure": true
}
},
"ignore": ["dist/**/*", "node_modules/**/*", "coverage/**/*", "*.log", ".env*", "mcp-wordpress.config.json"]
}