Open szepeviktor opened 10 months ago
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?
Hello! I was playing with PHPCS.
After that only a handful of problems remained.
What do you think about it?