forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (Auto…
…mattic#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
- Loading branch information
Showing
105 changed files
with
328 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fixed | ||
Comment: PHPCS fixes for new WPCS sniffs. Should be no user-visible changes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Updated to a newer snapshot of WordPress-Coding-Standards, which adds a number of new sniffs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fixed | ||
Comment: PHPCS fixes for new WPCS sniffs. Should be no user-visible changes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fixed | ||
Comment: PHPCS fixes for new WPCS sniffs. Should be no user-visible changes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fixed | ||
Comment: PHPCS fixes for new WPCS sniffs. Should be no user-visible changes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.