Skip to content

Refactor linter configuration and update Composer scripts for improved code quality checks.#260

Merged
terabytesoftw merged 5 commits intoyiisoft:masterfrom
terabytesoftw:fix_mini_2
Mar 5, 2026
Merged

Refactor linter configuration and update Composer scripts for improved code quality checks.#260
terabytesoftw merged 5 commits intoyiisoft:masterfrom
terabytesoftw:fix_mini_2

Conversation

@terabytesoftw
Copy link
Copy Markdown
Member

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Tests pass?

@terabytesoftw terabytesoftw requested review from a team and Copilot March 4, 2026 09:58
@terabytesoftw terabytesoftw added the status:code review The pull request needs review. label Mar 4, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.17%. Comparing base (9e4b99a) to head (18572ea).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #260      +/-   ##
============================================
+ Coverage     98.14%   98.17%   +0.03%     
- Complexity      268      269       +1     
============================================
  Files            16       16              
  Lines           756      769      +13     
============================================
+ Hits            742      755      +13     
  Misses           14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors how code style checks are configured and invoked by moving the target directories into phpcs.xml.dist, then updating Composer scripts and CI to rely on that centralized configuration.

Changes:

  • Configure PHPCS to scan src and tests via phpcs.xml.dist.
  • Update Composer cs / cs-fix scripts to run PHPCS/PHPCBF without explicit path arguments.
  • Fix documentation heading/linking and simplify the linter workflow configuration.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
phpcs.xml.dist Adds src and tests as configured scan targets for PHPCS.
composer.json Updates code-style scripts to rely on the PHPCS ruleset configuration.
docs/guide/internals.md Corrects the document title to match the page purpose.
README.md Fixes the Internals documentation link to the correct path.
.github/workflows/linter.yml Removes explicit directory inputs to align CI with the new PHPCS configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@terabytesoftw terabytesoftw merged commit 5ce58d9 into yiisoft:master Mar 5, 2026
18 checks passed
@terabytesoftw terabytesoftw deleted the fix_mini_2 branch March 5, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants