-
Notifications
You must be signed in to change notification settings - Fork 29
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
Follow a Coding Standard #149
Comments
Ok, let's give it a try. I get ornery about WordPress's exact standards, but I know people find value in them, even if I think sometimes they make things worse than my own personal preferences & styles. |
Who are those people? They are not industry professional who were raised by eating and drinking source code, but "particularly for those with vision difficulties" (from WPCS docs) and other slight disabilities. So industry professionals MUST read code that targets people with disabilities. |
💡 FYI TAB characters work really well on typewriters. |
.. so I've disabled all those things in WPCS and created https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset |
@JJJ After running the above commands I've realized that WPCS is not compatible with your Descriptive Programming ©️ Many things get indented the way you don't want. |
Guess I should invent my own style, eh? 😓 |
YES!! |
composer require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer composer exec -- phpcs --standard=WordPress-Core src/ -s --exclude=WordPress.Files.FileName,WordPress.CodeAnalysis.AssignmentInCondition,Squiz.PHP.DisallowMultipleAssignments
These can be automatically fixed by
phpcbf
.The text was updated successfully, but these errors were encountered: