Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPCS: Update to a newer snapshot of WordPress-Coding-Standards (#28199)
* Update WPCS to 2023-01-04 tag * Update codesniffer config * Drop MediaWiki.Usage.DirUsage, WPCS brings in Modernize.FunctionCalls.Dirname which checks the same and more. * Configure `WordPress.WP.Capabilities` * Ignore new Generic.CodeAnalysis.UnusedFunctionParameter, we already use VariableAnalysis.CodeAnalysis.VariableAnalysis that checks more stuff. * Ignore new Universal.NamingConventions.NoReservedKeywordParameterNames, not really useful until we can use PHP 8. * Add ignores with todo notes for existing instances of Universal.Files.SeparateFunctionsFromOO.Mixed * Fix/ignore remaining sniffs: Fixed: * Universal.Arrays.DuplicateArrayKey * WordPress.WP.AlternativeFunctions.unlink_unlink * WordPress.WP.Capabilities.RoleFound * WordPress.WP.ClassNameCase.Incorrect Ignored: * Universal.CodeAnalysis.ConstructorDestructorReturn - 1 false positive * WordPress.DB.DirectDatabaseQuery - "db call ok" comment is no longer recognized. * WordPress.WP.AlternativeFunctions.file_system_operations_is_writeable - * WordPress.WP.AlternativeFunctions.file_system_operations_mkdir - * WordPress.WP.AlternativeFunctions.file_system_operations_touch - Matching nearby ignores for fopen etc. * WordPress.WP.Capabilities.Unknown - Capabilities from other plugins. Renamed existing ignores: * WordPress.PHP.IniSet.display_errors_Disallowed * WordPress.WP.AlternativeFunctions.file_system_operations_fopen * WordPress.WP.AlternativeFunctions.file_system_operations_fread * WordPress.WP.AlternativeFunctions.file_system_operations_fwrite * WordPress.WP.AlternativeFunctions.file_system_operations_fclose * WordPress.WP.EnqueuedResourceParameters.MissingVersion Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/3876225948
- Loading branch information