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

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant