Repository navigation
Conversation
Reviewer's GuideConfigurationAdd and configure the runtime directory for PHPUnit and PHP-CS-Fixer, while ignoring runtime artifacts in Git.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #415 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 192 192
===========================================
Files 11 11
Lines 535 535
===========================================
Hits 535 535 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".php-cs-fixer.dist.php" line_range="15" />
<code_context>
]);
return (new Config())
+ ->setCacheFile(__DIR__ . '/runtime/.php-cs-fixer.cache')
->setRiskyAllowed(true)
->setParallelConfig(ParallelConfigFactory::detect())
</code_context>
<issue_to_address>
**Benchmark output stays in root**
When a developer runs the documented benchmark command with `--output=csv_file`, pHPBench writes its configured CSV report to `benchmarks.csv` at the repository root, outside the ignored runtime directory, so running the documented CSV benchmark leaves an untracked artifact in the working tree.
Write the PHPBench CSV report under `runtime/` or add the root-level report file to `.gitignore`.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: .php-cs-fixer.dist.php:15
| ]); | ||
|
|
||
| return (new Config()) | ||
| ->setCacheFile(__DIR__ . '/runtime/.php-cs-fixer.cache') |
There was a problem hiding this comment.
🟡 Medium · Benchmark output stays in root
When a developer runs the documented benchmark command with --output=csv_file, pHPBench writes its configured CSV report to benchmarks.csv at the repository root, outside the ignored runtime directory, so running the documented CSV benchmark leaves an untracked artifact in the working tree.
Write the PHPBench CSV report under runtime/ or add the root-level report file to .gitignore.
Prompt for AI agents
In `.php-cs-fixer.dist.php` at line 15:
**Benchmark output stays in root**
When a developer runs the documented benchmark command with `--output=csv_file`, pHPBench writes its configured CSV report to `benchmarks.csv` at the repository root, outside the ignored runtime directory, so running the documented CSV benchmark leaves an untracked artifact in the working tree.
Write the PHPBench CSV report under `runtime/` or add the root-level report file to `.gitignore`.
Summary by Sourcery
Introduce a shared runtime directory for generated files while keeping repository state clean.
Enhancements:
Chores: