fix(bench): remove unnecessary shell: true from execFileSync#168
fix(bench): remove unnecessary shell: true from execFileSync#168carlos-alm merged 1 commit intomainfrom
Conversation
Greptile SummaryThis PR removes the unnecessary Note: The PR description appears to describe changes from a different PR (#164 about benchmark updates) and doesn't match the actual code change in this PR. Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 276dffd |
| execFileSync('npm', ['install', `@optave/codegraph@${version}`, '--no-audit', '--no-fund'], { | ||
| cwd: tmpDir, | ||
| stdio: 'pipe', | ||
| timeout: 120_000, | ||
| shell: true, | ||
| }); |
There was a problem hiding this comment.
shell: true not needed with execFileSync when passing array args
| execFileSync('npm', ['install', `@optave/codegraph@${version}`, '--no-audit', '--no-fund'], { | |
| cwd: tmpDir, | |
| stdio: 'pipe', | |
| timeout: 120_000, | |
| shell: true, | |
| }); | |
| execFileSync('npm', ['install', `@optave/codegraph@${version}`, '--no-audit', '--no-fund'], { | |
| cwd: tmpDir, | |
| stdio: 'pipe', | |
| timeout: 120_000, | |
| }); |
execFileSync already receives args as an array, so shell: true is redundant and a minor security anti-pattern. Addresses Greptile review. Impact: 1 functions changed, 0 affected
3a1ad7c to
276dffd
Compare
|
Claude finished @carlos-alm's task —— View job PR Review: Fix shell parameter in execFileSyncTodo List:
Root Cause AnalysisProblem Being Solved: Removing unnecessary Configuration/Test Changes✅ No configuration changes detected - this is a single line removal in application code Code Quality Review✅ Correct fix: The change is technically correct. Location: Final Assessment |
Summary
@optave/codegraph@2.4.0from npm + the v2.4.0 native addon)Test plan