-
Notifications
You must be signed in to change notification settings - Fork 0
Integrate php codesniffer standards #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
kzndotsh
wants to merge
1
commit into
1.2
Choose a base branch
from
cursor/integrate-php-codesniffer-standards-gpt-5.1-codex-b0a1
base: 1.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Integrate php codesniffer standards #13
kzndotsh
wants to merge
1
commit into
1.2
from
cursor/integrate-php-codesniffer-standards-gpt-5.1-codex-b0a1
+1,700
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Cursor Agent can help with this pull request. Just |
Reviewer's GuideAdds MediaWiki CodeSniffer as a dev dependency, wires it into composer scripts for linting and autofixing PHP code, documents the workflow in the README, and configures PHPCS rules for the wiki PHP codebase. Flow diagram for composer test and composer fix workflowsflowchart TD
A["Start in wiki/ directory"] --> B{Command}
B -->|composer test| C["Run composer script test"]
B -->|composer fix| J["Run composer script fix"]
%% composer test path
C --> D["Invoke phpcs script (phpcs -ps)"]
D --> E["phpcs loads .phpcs.xml ruleset"]
E --> F["phpcs scans PHP files (excluding vendor and node_modules)"]
F --> G{Coding standard violations?}
G -->|No| H["Exit 0 (success)"]
G -->|Yes| I["Exit non-zero, list violations in terminal"]
%% composer fix path
J --> K["Invoke phpcbf script (phpcbf)"]
K --> L["phpcbf loads .phpcs.xml ruleset"]
L --> M["phpcbf attempts to auto-fix PHP files"]
M --> N["Auto-fix complete"]
N --> O["(Optional) Developer re-runs composer test to verify clean state"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Integrates PHP_CodeSniffer and MediaWiki coding standards for improved code quality. Co-authored-by: admin <admin@kaizen.wtf>
ae54c69 to
5f36795
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add MediaWiki CodeSniffer to the project to enforce coding standards and provide a consistent workflow for linting and fixing PHP code.
The initial
composer testrun will report a large number of pre-existing whitespace and comment issues inconfigs/*.phpandLocalSettings.php. These are not introduced by this PR and should be addressed in a separate, focused cleanup.Summary by Sourcery
Integrate PHP code quality tooling into the wiki project using MediaWiki CodeSniffer and Composer scripts.
New Features:
Enhancements:
Build: