forked from package-url/packageurl-js
 
 
 - 
  Notifications
 You must be signed in to change notification settings 
- Fork 2
Commit f5d7c6e
docs(standards): add process.chdir() prohibition to code style
Added working directory rule to CLAUDE.md:
- Never use process.chdir() as it breaks tests, worker threads, and causes race conditions
- Always use { cwd } options and absolute paths instead
- Pass { cwd: absolutePath } to spawn/exec/fs operations
This rule prevents global state mutation anti-pattern that causes test failures in worker threads.1 parent 25021aa commit f5d7c6e
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 146 | 146 |  | |
| 147 | 147 |  | |
| 148 | 148 |  | |
| 149 | + | ||
| 150 | + | ||
| 151 | + | ||
| 152 | + | ||
| 153 | + | ||
| 149 | 154 |  | |
| 150 | 155 |  | |
| 151 | 156 |  | |
|  | |||
0 commit comments