-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Release version 1.0.0 #1392
Merged
Release version 1.0.0 #1392
Changes from 250 commits
Commits
Show all changes
255 commits
Select commit
Hold shift + click to select a range
59ff199
DirectDatabaseQuery: move sniff from VIP category to DB category
jrfnl 4c98056
DirectDatabaseQuery: downgrade messages to warning
jrfnl 0630778
SlowDBQuery: move sniff from VIP category to DB category
jrfnl 002d607
PreparedSQL: move sniff from WP category to DB category
jrfnl a6315f2
DontExtract: move sniff from VIP category to DB category
jrfnl 0b531e2
NonceVerification: move sniff from CSRF category to Security category
jrfnl b04e8ef
EscapeOutput: move sniff from XSS category to Security category
jrfnl 5f7d0b0
PluginMenuSlug: move sniff from VIP category to Security category
jrfnl 4980804
PluginMenuSlug: downgrade message to warning
jrfnl cad14c8
ValidatedSanitizedInput: move sniff from VIP category to Security cat…
jrfnl 52faccb
CronInterval: move sniff from VIP category to WP category
jrfnl 77e9086
CronInterval: downgrade message to warning
jrfnl 52ee644
TimezoneChange: move sniff from VIP category to WP category
jrfnl 52ff31f
Merge pull request #1241 from WordPress-Coding-Standards/feature/cs-e…
JDGrimes 04d874f
WP/Deprecated functions: add WP function deprecated in WP 4.9
jrfnl abbb75e
Merge pull request #1237 from WordPress-Coding-Standards/feature/upda…
JDGrimes 2e4e70a
Revert "Fix build failure"
jrfnl 0067724
GlobalVariables: move sniff from Variables category to WP category an…
jrfnl 1f02646
Merge pull request #1245 from WordPress-Coding-Standards/feature/reve…
JDGrimes 2241bc9
Update README.md
ramonamorea 2613aa1
Merge pull request #1256 from ramonamorea/patch-1
jrfnl 4de1cd6
Merge pull request #1242 from WordPress-Coding-Standards/feature/1157…
JDGrimes 7d33b71
PostsPerPage: split sniff
jrfnl 2e96234
Merge pull request #1260 from WordPress-Coding-Standards/feature/1157…
JDGrimes e34a591
Add a couple of extra sniffs to `Extra`
jrfnl cc7d15d
Merge pull request #1261 from WordPress-Coding-Standards/feature/1157…
JDGrimes 7e5401c
Rulesets: lower severity instead of excluding checks
jrfnl ed05803
Fix two "typo"'s in deprecation messages
jrfnl cda66cb
Merge pull request #1263 from WordPress-Coding-Standards/feature/fix-…
GaryJones 8036d8a
New sniff to encourage safe redirects
JDGrimes e7ae802
Use Security.SafeRedirect in VIP ruleset and remove check from VIP.Re…
JDGrimes fbc5384
Merge pull request #1264 from WordPress-Coding-Standards/feature/secu…
GaryJones c2e7f61
WP.I18n: Fix false positive on method calls.
jrfnl f0a5cff
WP.I18n: Move specific function checks down
jrfnl 5637c1a
Readme: move IDE setup instructions to the wiki
jrfnl 735b899
Merge pull request #1267 from WordPress-Coding-Standards/feature/1266…
GaryJones 8053463
Merge pull request #1262 from WordPress-Coding-Standards/feature/1157…
GaryJones f609677
AssignmentInCondition: fix bug where nested parentheses were presumed…
jrfnl 8bd8459
Merge pull request #1268 from WordPress-Coding-Standards/feature/move…
GaryJones 242604b
Merge pull request #1249 from WordPress-Coding-Standards/feature/issu…
JDGrimes ac2abfa
AlternativeFunctions: detect `strip_tags()` and advise using `wp_stri…
jrfnl b605c77
Merge pull request #1271 from WordPress-Coding-Standards/feature/alte…
JDGrimes b684ba3
PrecisionAlignment: add additional unit tests exposing some bugs
jrfnl b1de4a3
PrecisionAlignment: fix bug - examine *all* lines
jrfnl ae7b19d
PrecisionAlignment: fix bug - trigger on echo open tag
jrfnl 933b973
PrecisionAlignment: fix bug - examine inline HTML at end of of file
jrfnl 63f63b2
FileName: examine views using only short echo open tags
jrfnl 70175d2
EmptyStatementSniff: handle empty statements using short echo open tag
jrfnl 1c11ca7
Merge pull request #1273 from WordPress-Coding-Standards/feature/bug-…
JDGrimes ec646f5
Merge pull request #1274 from WordPress-Coding-Standards/feature/impr…
JDGrimes 8300925
PrefixAllGlobals: bug fix - don't trigger on closure parameter defini…
jrfnl ea3808f
PrefixAllGlobals: minor fix to the test case files
jrfnl dd3edd6
Merge pull request #1276 from WordPress-Coding-Standards/feature/1275…
JDGrimes df05758
PrefixAllGlobals: make the prefix comparison more code style independent
jrfnl 6ce4927
PrefixAllGlobals: do not add invalid prefixes to the validated list
jrfnl a451119
AlternativeFunctions: add warning about using PHP native rand genera…
jrfnl 4290baf
Merge pull request #1277 from WordPress-Coding-Standards/feature/1248…
GaryJones 18e6653
Merge pull request #1278 from WordPress-Coding-Standards/feature/1239…
GaryJones 30878ec
PrefixAllGlobals: add additional unit test cases for assignments in c…
jrfnl b032f7f
PrefixAllGlobals: recognize variable assignments in foreach conditions
jrfnl 961369c
PrefixAllGlobals: minor textual correction for fall-back message text
jrfnl ca58869
Merge pull request #1279 from WordPress-Coding-Standards/feature/1236…
GaryJones 1844042
Fix version numbers in docblock tags
jrfnl f220f96
I18n: minor fix to the unit test file
jrfnl 75a34ad
Merge pull request #1281 from WordPress-Coding-Standards/feature/fix-…
GaryJones cdd69a5
Merge pull request #1282 from WordPress-Coding-Standards/feature/i18n…
GaryJones a8221c6
AlternativeFunctions: only advise alternative if min WP version suppo…
jrfnl 0db1f50
Merge pull request #1285 from WordPress-Coding-Standards/feature/alte…
JDGrimes 9a6ec34
Travis: speed up build times by disabling Xdebug
jrfnl 8f5ce0c
WordPress-VIP: Ensure we use WordPress.com not WordPress. (#1284)
philipjohn 392787e
Merge pull request #1286 from WordPress-Coding-Standards/feature/spee…
JDGrimes 1fba9ed
Travis/Build: validate the composer.json file
jrfnl 45857b2
Merge pull request #1287 from WordPress-Coding-Standards/feature/trav…
GaryJones e25322c
Travis: More stable solution for removing Xdebug when not needed
jrfnl f6ba702
Merge pull request #1289 from WordPress-Coding-Standards/feature/trav…
GaryJones bce2b6a
DeprecatedParameters: fix expected value for `wp_upload_bits()`
jrfnl 145ae24
Sniff: add new `is_use_of_global_constant()` utility method
jrfnl 5e68c58
EscapeOutput: allow for a limited set of safe PHP native constants
jrfnl 2b29c95
Merge pull request #1294 from WordPress-Coding-Standards/feature/bugf…
JDGrimes 1f1addb
Merge pull request #1293 from WordPress-Coding-Standards/feature/1200…
GaryJones b6fe1c6
Improve recognition of test classes
jrfnl c62f643
Merge pull request #1295 from WordPress-Coding-Standards/feature/fix-…
GaryJones cade769
ValidFunctionName: don't hide one error behind another
jrfnl 8b8bcb6
Merge pull request #1298 from WordPress-Coding-Standards/feature/vali…
JDGrimes b182f38
PrefixAllGlobals: only recognize PHP native classes, don't try and au…
jrfnl 10ab802
Merge pull request #1300 from WordPress-Coding-Standards/feature/bugf…
JDGrimes a38deb4
PHP.StrictInArray: don't throw an error for no parameters found
jrfnl c0e2913
Merge pull request #1308 from WordPress-Coding-Standards/feature/1306…
JDGrimes 0297bda
PrefixAllGlobals: allow for defining non-prefixed core globals
jrfnl 3dcae20
Build: move WPCS's own ruleset to the root directory
jrfnl 04db118
Build/PHPCS: add the `<file>` directive
jrfnl 7546c98
Build/PHPCS: run PHPCS against the highest stable PHP version
jrfnl 760bbbb
Build/Travis: drop support for HHVM
jrfnl 26a875b
AbstractFunctionRestrictions: prevent class declarations being confus…
jrfnl 7bbaf49
WP.I18n: add additional unit test
jrfnl 94dd1c2
WhiteSpace/ControlStructureSpacing: prevent fixer removing return typ…
jrfnl 875bb2a
AbstractFunctionRestrictions: prevent use declaration aliases being c…
jrfnl 57bab28
Merge pull request #1314 from WordPress-Coding-Standards/feature/1311…
JDGrimes 9498a5b
Merge pull request #1317 from WordPress-Coding-Standards/feature/898-…
JDGrimes 62a24fd
Merge pull request #1319 from WordPress-Coding-Standards/feature/1202…
JDGrimes 6426385
Merge pull request #1318 from WordPress-Coding-Standards/feature/719-…
JDGrimes 988b73f
Merge pull request #1316 from WordPress-Coding-Standards/feature/move…
GaryJones ca98f61
Fixed invalid config path key.
emgk e134f83
Merge pull request #1324 from emgk/patch-1
jrfnl cd578f2
ArrayIndentation: fix bug when dealing with multi-line string
jrfnl 9491062
Merge pull request #1326 from WordPress-Coding-Standards/feature/arra…
GaryJones 0f82002
Minor performance optimization
jrfnl 0688361
Merge pull request #1329 from WordPress-Coding-Standards/feature/mino…
GaryJones 606bfbb
EscapeOutput: report correctly on first param of `trigger_error()`
jrfnl 232c469
EscapeOutput: correctly report on unsafe printing functions
jrfnl ac871c9
EscapeOutput: allow for short arrays
jrfnl 06f6d5c
Merge pull request #1333 from WordPress-Coding-Standards/feature/fix-…
JDGrimes f1806e3
Don't mark `get_comment_date()` and `get_comment_time()` as safe for …
johnbillion dbf84ae
Don't mark `get_template_part()` as safe for output.
johnbillion 2c75a94
Add `readonly()` to the list of auto escaped functions.
johnbillion 8dc37e1
Remove `cancel_comment_reply_link()` from the list of auto escaped fu…
johnbillion 3caf5ab
Merge pull request #1344 from johnbillion/1340-get-template-part
GaryJones 875a92d
Merge pull request #1345 from johnbillion/1341-readonly
GaryJones f55e14c
Merge pull request #1347 from johnbillion/1346-comment-reply-link
GaryJones 094acfa
Merge pull request #1343 from johnbillion/1339-get-comment
GaryJones bf57ad3
Remove several boolean functions from the list of auto escaped functi…
johnbillion d8c71e6
Remove `get_bookmark()` from the list of auto escaped functions.
johnbillion 38a01d2
PrefixAllGlobals: Rename test file 2
jrfnl 6f62b6c
PrefixAllGlobals: Rename test file 1
jrfnl 9d0699b
PrefixAllGlobals: bugfix - namespaced testclasses where not ignored
jrfnl eeb052a
Merge pull request #1356 from WordPress-Coding-Standards/feature/pref…
JDGrimes a319971
Composer: add note about why the DealerDirect plugin is suggested
jrfnl 119117d
Merge pull request #1357 from WordPress-Coding-Standards/feature/comp…
GaryJones 4c90e2f
Deprecation messages: Simplify & improve code
jrfnl 10e4f8f
Deprecation messages: fix messages being thrown when they shouldn't be
jrfnl a101f54
VIP ruleset: prevent deprecation messages being thrown when sniffs ar…
jrfnl 296d3ce
Deprecated sniffs: Fix two previously missed typos in the test files
jrfnl 8b7d23d
Fix minor whitespace issue in test file
jrfnl fddca72
Clean up: Remove `// end` comments
jrfnl e4bee82
Merge pull request #1362 from WordPress-Coding-Standards/feature/remo…
JDGrimes c7e0fc3
Merge pull request #1359 from WordPress-Coding-Standards/feature/fix-…
JDGrimes 13541cf
AlternativeFunctions: improve handling of strip_tags() and parse_url()
jrfnl 09a0da7
Fix PHP 7.3 compatibility
jrfnl e3b71ce
PreparedSQLPlaceholders: minor fix
jrfnl 72e1108
Merge pull request #1369 from WordPress-Coding-Standards/feature/alte…
GaryJones a571f5e
Merge pull request #1373 from WordPress-Coding-Standards/feature/fix-…
JDGrimes 0652c63
Merge pull request #1372 from WordPress-Coding-Standards/feature/fix-…
JDGrimes 49e7700
AlternativeFunctions: improve handling of file_get_contents()
jrfnl 1acd7c0
:sparkles: New "PregQuoteDelimiter" sniff
jrfnl 16d6b1c
Merge pull request #1375 from WordPress-Coding-Standards/feature/1371…
JDGrimes 3667c9c
I18n: fix bug when translatable content is numeric zero
jrfnl dfff059
Merge pull request #1376 from WordPress-Coding-Standards/feature/1355…
JDGrimes 475d27f
Merge pull request #1353 from johnbillion/1352-get-bookmark
jrfnl 976657d
PrefixAllGlobals: be more tolerant to non-conventional hook name sepa…
jrfnl cca93a6
Merge pull request #1381 from WordPress-Coding-Standards/feature/pref…
JDGrimes f8ab642
ArrayIndentation: fix fixer conflict with multi-line trailing comments
jrfnl 3985ce9
Sniff::$printingFunctions / EscapeOutput: fix words being misidentifi…
jrfnl cfc54c5
Sniff::get_function_call_parameters(): correctly handle closures when…
jrfnl 2b289dc
Minor documentation fixes
jrfnl a476cbf
Ruleset whitespace
jrfnl 6844edd
Abstracts: change $exclude property from string to array
jrfnl 8ecba48
Merge pull request #1391 from WordPress-Coding-Standards/feature/vari…
GaryJones f557fe5
Merge pull request #1387 from WordPress-Coding-Standards/feature/fix-…
JDGrimes 4c3b36e
Merge pull request #1386 from WordPress-Coding-Standards/feature/1385…
JDGrimes 27b7804
Merge pull request #1384 from WordPress-Coding-Standards/feature/phpc…
JDGrimes 559b323
PrefixAllGlobals: improve handling of variable created by global fore…
jrfnl 62d163a
GlobalVariablesOverride: detect WP variable overrides in foreach()
jrfnl ebde553
GlobalVariablesOverride: improve the usefulness of the error
jrfnl 93f4846
I18n: hardening of the "no translatable content" check
jrfnl cdb3c5e
README: update output example
jrfnl 43c795e
README: add link to more travis examples
jrfnl 817c151
README: update/correct various links
jrfnl 13579c5
CONTRIBUTING: Update supported PHPUnit versions
jrfnl a7c71b0
CONTRIBUTING: Update PHPUnit output example
jrfnl 5a192a3
CONTRIBUTING: Fix minor grammatical error
jrfnl 7eed80d
Example ruleset: update for WPCS 1.0.0 and PHPCompatibility best prac…
jrfnl ec162a4
Merge pull request #1398 from WordPress-Coding-Standards/feature/upda…
GaryJones 39ed2f3
Merge pull request #1399 from WordPress-Coding-Standards/feature/upda…
GaryJones 28be1de
README: add a few more badges
jrfnl 0f4218c
Merge pull request #1400 from WordPress-Coding-Standards/feature/upda…
JDGrimes 5ddc7de
Merge pull request #1397 from WordPress-Coding-Standards/feature/i18n…
JDGrimes cc67472
Merge pull request #1396 from WordPress-Coding-Standards/feature/glob…
JDGrimes a2c0a57
Merge pull request #1394 from WordPress-Coding-Standards/feature/1236…
JDGrimes 13d2d82
Merge pull request #1390 from WordPress-Coding-Standards/feature/1368…
GaryJones df4dd57
README: hide the badges from screen readers
jrfnl 23400e9
Merge pull request #1401 from WordPress-Coding-Standards/feature/read…
JDGrimes fd72992
CronInterval: make the sniff more code style independent
jrfnl 297acb8
PreparedSQL: make the sniff more code style independent
jrfnl 261b8a7
Merge pull request #1405 from WordPress-Coding-Standards/feature/prep…
GaryJones 6a34196
Merge pull request #1404 from WordPress-Coding-Standards/feature/cron…
GaryJones 5545a81
ValidVariableName: make the sniff more code style independent
jrfnl b78060b
Merge pull request #1406 from WordPress-Coding-Standards/feature/vali…
jrfnl 664ce9f
Sniff: Add $phpcsCommentTokens array for PHPCS cross-version compatib…
jrfnl 0af3846
Sniff: support combining PHPCS annotations with WPCS whitelist comments
jrfnl 265d810
I18n: add unit test to confirm that PHPCS annotations are handled cor…
jrfnl 6e6dc9c
ArrayDeclarationSpacing: bug fix - allow for PHPCS annotation tokens
jrfnl bd120c1
CommaAfterArrayItem: bug fix - allow for PHPCS annotation tokens
jrfnl a581334
ControlStructureSpacing: bug fix - allow for PHPCS annotation tokens
jrfnl 9703965
Various minor fixes
jrfnl dfa4bd2
PrecisionAlignment: add unit tests to verify that the PHPCS annotatio…
jrfnl 1ce42a6
PrecisionAlignment: examine PHPCS annotations
jrfnl 24efb81
FileName: allow for the new PHPCS annotations
jrfnl 71fc23f
Merge pull request #1374 from WordPress-Coding-Standards/feature/943-…
JDGrimes 627b732
Merge pull request #1408 from WordPress-Coding-Standards/feature/scru…
JDGrimes 91a5cdd
Merge pull request #1407 from WordPress-Coding-Standards/feature/1218…
JDGrimes a43c80c
Performance: use FQN for global constants
jrfnl c9a4b04
Travis: add builds to test against minimum supported PHPCS 3.x version
jrfnl 6c7058c
Merge pull request #1412 from WordPress-Coding-Standards/feature/trav…
JDGrimes 7beb279
Merge pull request #1411 from WordPress-Coding-Standards/feature/use-…
GaryJones 083a7ce
AbstractVariableRestrictions: remove superfluous token constant
jrfnl 694c459
Performance: use FQN for functions which can use PHP7 compile time op…
jrfnl f672e18
Travis/PHPCS: check WPCS own code for PHP cross-version compatibility
jrfnl 81a265a
Merge pull request #1414 from WordPress-Coding-Standards/feature/use-…
GaryJones 38a940e
Merge pull request #1415 from WordPress-Coding-Standards/feature/snif…
GaryJones ecaa437
Merge pull request #1413 from WordPress-Coding-Standards/feature/bugf…
GaryJones 5585804
Deprecated the VIP FileSystemWritesDisallow Sniff and the Admin Bar …
tomjn 4ae8691
deprecate the VIP Order By Rand sniff
tomjn ea7493b
Deprecated the VIP RestrictedFunctions Sniff
tomjn df07c46
deprecated the VIP sniff RestrictedVariables
tomjn 907fd88
deprecates the VIP SessionFunctionsUsage sniff
tomjn d1272dd
Deprecated the VIP SessionVariableUsageSniff sniff
tomjn 7106b30
Deprecated the VIP sniff SuperGlobalInputUsageSniff
tomjn 42d1ef0
resolve PHPCBF formatting issues by adding commars and removing trail…
tomjn cafaf2a
update the VIP rulesets description to indicate that it's deprecated,…
tomjn 95581c0
Fixes for the VIP Sniff deprecations based on Juliettes review
tomjn 9faef43
Deprecated AbstractVariableRestrictionsSniff
tomjn a4db740
deprecated the has_html_open_tag method in Sniff class
tomjn 4b50df5
Remove VIP from the standard WP ruleset
tomjn ad1c014
unit test fixes
tomjn 9c1e44f
Fixes stray whitespace characters in the WP ruleset, and yoda conditi…
tomjn e3206b7
Apply spelling and grammar corrections to VIP deprecations
tomjn 20494c4
merges the xml comment in the VIP ruleset into the description
tomjn ed1365f
Check for deprecated parameter values
grappler dfc2878
Merge pull request #1366 from grappler/feature/576-deprecated-paramet…
jrfnl b266502
Added EnqueuedCheck Sniff and Unit tests
135900b
Introduce method to check for falsy argument value
moorscode b77c62f
EnqueuedResourceParameters: stabilize the `is_falsy()` method
jrfnl 702f56f
Merge pull request #1378 from moorscode/issue/1146
JDGrimes 2b4cf3c
Fix false positive violation for return type colon
GaryJones c27ae76
Merge pull request #1421 from WordPress-Coding-Standards/feature/1420…
jrfnl 50c3471
test the exclude parameter deprecation in the deprecated VIP sniff un…
tomjn 50c6d77
Updated the VIP deprecation notice in the readme to read better
tomjn 58b4c23
Merge pull request #1410 from tomjn/vip-migrate-filesystem-write-disa…
jrfnl 1de3a9d
Composer & Readme: update organisation name for PHPCompatibility
jrfnl 46d48ee
Merge pull request #1426 from WordPress-Coding-Standards/feature/comp…
JDGrimes 3353085
Merge pull request #1351 from johnbillion/1350-bools
GaryJones 3cf034e
Contributing: discourage adding new whitelist comments
jrfnl dfc6d09
Merge pull request #1428 from WordPress-Coding-Standards/feature/cont…
JDGrimes 5f746bf
WordPress ruleset: fix deprecation notices coming through
jrfnl b6beac8
Merge pull request #1431 from WordPress-Coding-Standards/feature/fix-…
JDGrimes 3d92e2f
Travis: add a new check for early detection of ruleset problems
jrfnl 1a9d8f8
Merge pull request #1430 from WordPress-Coding-Standards/feature/trav…
jrfnl 9edb9d6
Merge branch 'master' into feature/changelog-1.0.0
jrfnl 077a3ea
Changelog for version 1.0.0
jrfnl 3b24b0b
Merge pull request #1423 from WordPress-Coding-Standards/feature/chan…
jrfnl 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 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 |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
vendor | ||
composer.lock | ||
phpunit.xml | ||
phpcs.xml | ||
.phpcs.xml |
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,54 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress Coding Standards"> | ||
<description>The Coding standard for the WordPress Coding Standards itself.</description> | ||
|
||
<file>.</file> | ||
|
||
<arg value="sp"/> | ||
<arg name="extensions" value="php"/> | ||
|
||
<!-- Exclude the code in the PHPCS 2.x test files copied in from PHPCS. --> | ||
<exclude-pattern>/Test/AllTests.php</exclude-pattern> | ||
<exclude-pattern>/Test/Standards/*.php</exclude-pattern> | ||
|
||
<!-- Exclude Composer vendor directory. --> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
|
||
<rule ref="WordPress-Extra"> | ||
<exclude name="WordPress.Files.FileName"/> | ||
<exclude name="WordPress.NamingConventions.ValidVariableName"/> | ||
<exclude name="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/> | ||
</rule> | ||
|
||
<rule ref="WordPress-Docs"/> | ||
|
||
<!-- Enforce PSR1 compatible namespaces. --> | ||
<rule ref="PSR1.Classes.ClassDeclaration"/> | ||
|
||
<rule ref="WordPress.Arrays.MultipleStatementAlignment"> | ||
<properties> | ||
<property name="alignMultilineItems" value="!=100"/> | ||
</properties> | ||
</rule> | ||
|
||
<rule ref="PSR2.Methods.FunctionClosingBrace"/> | ||
|
||
<!-- Check code for cross-version PHP compatibility. --> | ||
<config name="testVersion" value="5.3-"/> | ||
<rule ref="PHPCompatibility"> | ||
<!-- Exclude PHP constants back-filled by PHPCS. --> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_finallyFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_yieldFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_ellipsisFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_powFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_pow_equalFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_spaceshipFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_coalesceFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_coalesce_equalFound"/> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_yield_fromFound"/> | ||
|
||
<!-- Unclear how, but appears to be back-filled anyhow, could be that PHP did so before the token was in use. --> | ||
<exclude name="PHPCompatibility.PHP.NewConstants.t_traitFound"/> | ||
</rule> | ||
|
||
</ruleset> |
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.
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.
Any benefit in adding
colors
(even if it only benefits non-Windows), orparallel
etc.?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.
I'd be fine with those additions, but those can be added any time. They don't necessarily need to be included in this release, especially as they would/should only be added to the WPCS native custom ruleset.