Skip to content
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

Moving closer to WPCS #435

Open
szepeviktor opened this issue Oct 27, 2023 · 0 comments
Open

Moving closer to WPCS #435

szepeviktor opened this issue Oct 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Oct 27, 2023

Hello! I was playing with PHPCS.

composer require --dev "wp-coding-standards/wpcs:^3.0"
vendor/bin/phpcbf --standard=WordPress-Core src/ --exclude=PEAR.Functions.FunctionCallSignature,Universal.Arrays.DisallowShortArraySyntax,WordPress.Files.FileName,WordPress.NamingConventions.ValidHookName,WordPress.DB.PreparedSQL,WordPress.DB.PreparedSQLPlaceholders,Universal.Operators.DisallowShortTernary,WordPress.PHP.YodaConditions,WordPress.PHP.StrictInArray,Universal.Operators.StrictComparisons,WordPress.WP.I18n,WordPress.NamingConventions.ValidVariableName,WordPress.DateTime.RestrictedFunctions,Universal.NamingConventions.NoReservedKeywordParameterNames
git diff -w --ignore-blank-lines -- src/
vendor/bin/phpcs -s --parallel=4 --standard=WordPress-Core src/ --exclude=PEAR.Functions.FunctionCallSignature,Universal.Arrays.DisallowShortArraySyntax,WordPress.Files.FileName,WordPress.NamingConventions.ValidHookName,WordPress.DB.PreparedSQL,WordPress.DB.PreparedSQLPlaceholders,Universal.Operators.DisallowShortTernary,WordPress.PHP.YodaConditions,WordPress.PHP.StrictInArray,Universal.Operators.StrictComparisons,WordPress.WP.I18n,WordPress.NamingConventions.ValidVariableName,WordPress.DateTime.RestrictedFunctions,Universal.NamingConventions.NoReservedKeywordParameterNames

After that only a handful of problems remained.

What do you think about it?

@bc-erich bc-erich added the enhancement New feature or request label Aug 23, 2024
@bc-erich bc-erich added this to the Minor Release 5.1.0 milestone Aug 23, 2024
@bc-erich bc-erich removed this from the Minor Release 5.1.0 milestone Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants