-
-
Notifications
You must be signed in to change notification settings - Fork 518
Release version 2.1.0 #1690
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
Merged
Release version 2.1.0 #1690
Changes from all commits
Commits
Show all changes
125 commits
Select commit
Hold shift + click to select a range
f99585e
WPCS native PHPCS ruleset: minor tweaks
jrfnl 83f445f
Bumped suggested installer version
Rarst 17826a7
Merge pull request #1628 from Rarst/patch-1
jrfnl 75fc071
Merge pull request #1627 from WordPress-Coding-Standards/master
jrfnl 97167b2
PrefixAllGlobals: prevent false negatives for autoloaded user-defined…
jrfnl b5acadb
ValidatedSanitizedInput: only recognize a variable as validated if th…
jrfnl 3666bbb
Merge pull request #1633 from WordPress-Coding-Standards/feature/1632…
GaryJones 913f9cc
Merge pull request #1634 from WordPress-Coding-Standards/feature/snif…
GaryJones 44e5857
ValidatedSanitizedInput: add tests validating variables with array_ke…
jrfnl 4e8d27f
Sniff::is_in_isset_or_empty(): allow for array_key_exists()
jrfnl 5f3905a
Sniff::is_validated(): allow for array_key_exists()
jrfnl 71ace56
Sniff::$test_class_whitelist: add newly added base test class to the …
jrfnl 90cc817
Merge pull request #1635 from WordPress-Coding-Standards/feature/snif…
GaryJones 126b2e3
Merge pull request #1604 from WordPress-Coding-Standards/feature/nati…
GaryJones 12c5647
Merge pull request #1636 from WordPress-Coding-Standards/feature/new-…
GaryJones ca209e7
Travis: test builds against PHP 7.4
jrfnl 4426a06
Travis: work around PHPUnit 8.x on PHP >= 7.2 images
jrfnl e41ea6a
Merge pull request #1643 from WordPress-Coding-Standards/feature/trav…
GaryJones 7529b4d
WP.EnqueuedResources: bug fix
jrfnl b6d7052
Merge pull request #1644 from WordPress-Coding-Standards/feature/enqu…
GaryJones 0f425fb
Remove `sudo: false`
ntwb 7e54b98
Merge pull request #1645 from WordPress-Coding-Standards/travis-remov…
GaryJones 76011f6
PrefixAllGlobals: improve error message clarity
jrfnl a392d28
Fixes #1447, adds new sniff for blacklisted ini_set directives.
NielsdeBlaauw bb93c38
Fixes unit-test for removed ini_set check
NielsdeBlaauw 1650b77
Fixes codestyle
NielsdeBlaauw 55c08d7
AlternativeFunctions: allow for php://input used by file_get_contents()
jrfnl 1f4d912
Merge pull request #1649 from WordPress-Coding-Standards/feature/alte…
GaryJones d3536cf
Update WordPress/Sniffs/PHP/IniSetSniff.php
jrfnl 18a5ccc
Update WordPress/Tests/PHP/IniSetUnitTest.php
jrfnl 8d7593e
Adds ini_alter checks
NielsdeBlaauw 43acdd2
Adds test marking variable option name as risky
NielsdeBlaauw f0b223e
Isset instead of array_key_exists
NielsdeBlaauw a8f3f10
Adds modular sniff name, removes use
NielsdeBlaauw 1290ca4
Adds alternative invalid and valid values
NielsdeBlaauw 8da3b6d
Apply suggestions from code review
jrfnl bc8d26a
Adds @since tags
NielsdeBlaauw 6d54ff3
Adds sniff to WP-extra, doc fixes and unused statement removed
NielsdeBlaauw 5e5a871
Better wording for warning message
NielsdeBlaauw 51331e1
Consistent wording for the discouraged PHP functions
NielsdeBlaauw 7235326
Array in target_functions had no use, replaced with true
NielsdeBlaauw d97fba4
Alphabetical ordering for blacklisted_options
NielsdeBlaauw 029f02e
Better message for filter.default_flags
NielsdeBlaauw be87a89
Resets phpcbf on Sniff.php
NielsdeBlaauw 9f6c94b
Adds more testcases. Option value is no longer case sensitive
NielsdeBlaauw d462b85
Merge pull request #1648 from NielsdeBlaauw/feature/ini-set-sniff
GaryJones d0717e7
Merge pull request #1647 from WordPress-Coding-Standards/feature/pref…
GaryJones b417db3
WP/AlternativeFunctions: allow for more input streams with file relat…
jrfnl 95b904e
Merge pull request #1655 from WordPress-Coding-Standards/feature/295-…
GaryJones b1f3210
Docs: exclude the `InlineComment.SpacingAfter` errorcode
jrfnl d30d22f
Docs: make the inclusion of the Generic sniff slightly more specific
jrfnl a6dbd88
WP/AlternativeFunctions: allow calling `curl_version()`
jrfnl 56be671
Merge pull request #1656 from WordPress-Coding-Standards/feature/1534…
GaryJones 1ddc654
Merge pull request #1657 from WordPress-Coding-Standards/feature/docs…
GaryJones 5f27d8e
Merge pull request #1658 from WordPress-Coding-Standards/feature/wp-a…
GaryJones d43381a
Sniff::is_sanitized(): make the method more code style independent
jrfnl 2600112
GlobalVariablesOverride: implement the Sniff::is_foreach_as() method
jrfnl 15b7ffb
Merge pull request #1664 from WordPress-Coding-Standards/feature/is_s…
GaryJones 3ba3005
Merge pull request #1665 from WordPress-Coding-Standards/feature/glob…
GaryJones 0a18e6b
Clean up: use array_change_key_case()
jrfnl d392c45
Sniff: add two new utility methods `is_class_object_call()` and `is_t…
jrfnl 7c1b6f8
Sniff::is_in_isset_or_empty(): implement is_class_object_call() and i…
jrfnl e5c6ecb
Sniff::is_validated(): implement is_class_object_call() and is_token_…
jrfnl a55e3e0
Sniff::is_use_of_global_constant(): implement is_token_namespaced()
jrfnl c98ecc2
AbstractFunctionRestrictions: implement Sniff::is_class_object_call()…
jrfnl 374691c
GlobalVariablesOverride: implement Sniff::is_class_object_call()
jrfnl 08f4a7f
DiscouragedConstants: implement Sniff::is_token_namespaced()
jrfnl d3ac40a
Merge pull request #1667 from WordPress-Coding-Standards/feature/impr…
GaryJones 7d01ff3
New utility method `Sniff::is_in_function_call()`
jrfnl 95e3a3d
Sniff::is_in_isset_or_empty(): implement new `is_in_function_call()` …
jrfnl 6e470de
Sniff::is_sanitized(): implement new `is_in_function_call()` method
jrfnl 91b053f
CronInterval: implement new `Sniff::is_in_function_call()` method
jrfnl 4e05eaa
ValidatedSanitizedInput: minor code readability improvement
jrfnl 5cb689f
Sniff::is_comparison(): minor defensive coding tweak
jrfnl 1b3cdfc
Sniff::is_assignment(): minor defensive coding tweak
jrfnl 3a30b78
Merge pull request #1669 from WordPress-Coding-Standards/feature/snif…
GaryJones f3a603f
Merge pull request #1670 from WordPress-Coding-Standards/feature/vali…
GaryJones cb8cd90
Merge pull request #1671 from WordPress-Coding-Standards/feature/snif…
GaryJones 4e143ec
Sniff::is_in_function_call(): expand the function documentation with …
jrfnl 8fa98f6
Merge pull request #1668 from WordPress-Coding-Standards/feature/new-…
GaryJones c088b1b
Sniff::$unslashingSanitizingFunctions: add doubleval() and count()
jrfnl 79287e3
Merge pull request #1666 from WordPress-Coding-Standards/feature/arra…
jrfnl 34920c7
Update default minimum_supported_version to WP 4.8
jrfnl f4e645f
Merge pull request #1674 from WordPress-Coding-Standards/feature/upda…
GaryJones 2a0f154
Merge pull request #1673 from WordPress-Coding-Standards/feature/1659…
GaryJones 3894437
ValidatedSanitizedInput: allow for validation using key_exists()
jrfnl 1a2b777
Merge pull request #1675 from WordPress-Coding-Standards/feature/vali…
GaryJones 8664364
Sniff: add new get_array_access_keys() utility method
jrfnl a598b08
ValidatedSanitizedInput/Sniff::is_validated(): allow for multi-level …
jrfnl 33b55fe
Merge pull request #1676 from WordPress-Coding-Standards/feature/vali…
GaryJones b4fb6ba
ValidatedSanitizedInput: make the error messages more informative
jrfnl 0535c1a
Merge pull request #1677 from WordPress-Coding-Standards/feature/1541…
GaryJones 05a71ff
Security: allow for type testing superglobals
jrfnl 854964b
Merge pull request #1678 from WordPress-Coding-Standards/feature/secu…
GaryJones 7841dab
Sniff::is_sanitized(): allow for map_deep() to sanitize arrays
jrfnl d0f7084
Sniff::has_nonce_check(): add new `is_class_object_call()` and `is_to…
jrfnl af937cc
Merge pull request #1680 from WordPress-Coding-Standards/feature/nonc…
GaryJones 14c77a8
Merge pull request #1679 from WordPress-Coding-Standards/feature/1660…
GaryJones e05b727
EscapeOutput: allow for map_deep() to output escape arrays
jrfnl 0934e18
ValidatedSanitizedInput: treat array-value comparison functions same …
jrfnl 5f2d6b5
Sniff::has_nonce_check(): ignore nonce checks in nested closed scopes
jrfnl 5f56dbb
Merge pull request #1683 from WordPress-Coding-Standards/feature/nonc…
GaryJones 3dbe602
Merge pull request #1682 from WordPress-Coding-Standards/feature/vali…
GaryJones 0ef9e85
Merge pull request #1681 from WordPress-Coding-Standards/feature/esca…
GaryJones 1a79eae
ValidatedSanitizedInput: add unit tests for null coalesce (equals) op…
jrfnl 6c8d052
Sniff::is_comparison(): allow to disregard null coalesce
jrfnl 449ea64
Sniff::is_validated(): recognize null coalesce (equal) operator as a …
jrfnl 625f221
ValidatedSanitizedInput: throw unslash/sanitization errors for null c…
jrfnl 7c6f0a8
ValidatedSanitizedInput: allow for validation via null coalesce / nul…
jrfnl 7b18749
Sniff::has_nonce_check(): allow for comparing a variable before nonce…
jrfnl 146e9a1
Merge pull request #1685 from WordPress-Coding-Standards/feature/1114…
GaryJones 363ff11
Merge pull request #1684 from WordPress-Coding-Standards/feature/837-…
GaryJones 2ac765f
ValidatedSanitizedInput: allow for more unslashing functions
jrfnl 19e45db
Merge pull request #1686 from WordPress-Coding-Standards/feature/vali…
GaryJones bb646b6
Sniff::has_nonce_check(): allow for unslashing a variable before nonc…
jrfnl ca3d41f
Merge pull request #1687 from WordPress-Coding-Standards/feature/572-…
GaryJones a8d8c6c
NonceVerification: bug fix - sanitization is no alternative for nonce…
jrfnl cce11ae
Core: forbid assignments in conditions
jrfnl 031bac0
Merge pull request #1688 from WordPress-Coding-Standards/feature/nonc…
GaryJones f04207c
Merge pull request #1661 from WordPress-Coding-Standards/feature/core…
GaryJones d6f9dc0
Core: warn against the use of loose comparisons
jrfnl 4d814b7
Changelog for WPCS 2.1.0
jrfnl 3b2f881
Merge pull request #1662 from WordPress-Coding-Standards/feature/core…
GaryJones f4b82ae
Changelog: clarified the addition of the `count()` and `sizeof()` fun…
jrfnl 975613f
Merge pull request #1689 from WordPress-Coding-Standards/feature/chan…
GaryJones File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting that PHPCS appears to have an issue with this arg being used on some installs of PHP 7.3.
It might be worth leaving this out for now, though it would only potentially affect contributors to WPCS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is the ruleset for WPCS itself, I'm not too concerned. If this (upstream) issue would affect a contributor, they can easily get round it by passing
--parallel=1on the command line.Correct me if I'm wrong, but I don't think changing this is a reason to delay the release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely agree, which is why I approved it - just mentioning it for future reference for future readers.