|
| 1 | +# Change Log for VIP Coding Standards |
| 2 | + |
| 3 | +## 0.4.0 - 2018-12-19 |
| 4 | + |
| 5 | +### Added |
| 6 | + - `WordPressVIPMinimum.Cache.LowExpiryCacheTime` sniff. |
| 7 | + - `WordPressVIPMinimum.Classes.RestrictedExtendedClasses` sniff, for `WP_CLI_Command`. |
| 8 | + - `WordPressVIPMinimum.Filters.RestrictedHooks` sniff, for `upload_mimes`, as well as `http_request_timeout` and `http_request_args` filters which change timeouts, as we typically don't recommend anything above 3s. |
| 9 | + - `WordPressVIPMinimum.Functions.StripTags` sniff. |
| 10 | + - `WordPressVIPMinimum.JS.DangerouslySetInnerHTML` sniff. |
| 11 | + - `WordPressVIPMinimum.JS.Window` sniff. |
| 12 | + - `WordPressVIPMinimum.VIP.PHPFilterFunctions` sniff. |
| 13 | + - GitHub issue templates. |
| 14 | + - `opcache_*()` functions to list of restricted functions. |
| 15 | + - ACF templating function to list of restricted functions. |
| 16 | + - `.editorconfig` to repo. |
| 17 | + - `Generic.PHP.Syntax` to `WordPressVIPMinimum` ruleset. |
| 18 | + |
| 19 | +### Changed |
| 20 | + - Allow unused `$e` when catching exceptions. |
| 21 | + - Improved accuracy of `WordPressVIPMinimum.Files.IncludingFile` |
| 22 | + - Refactor `WordPressVIPMinimum.VIP.RestrictedFunctions` sniff. |
| 23 | + - Include documentation links directly in error message for `WordPressVIPMinimum.VIP.WPQueryParams.post__not_in`. |
| 24 | + - Composer: Normalized `composer.json`. |
| 25 | + - Composer: Bump to PHPCompatibility ^9. |
| 26 | + - Change severity of `WordPress.CodeAnalysis.AssignmentInCondition.Found` to 1 instead of removing it. |
| 27 | + - Increases the PHPCS (3.2.3) and PHP (5.6+) minimum versions to supported and known good values. |
| 28 | + - Travis: Remove PHPUnit 6 workaround. |
| 29 | + - Travis: updates the PHPCS referenced in the Travis file, and remove the PHP 5.5 and 5.4 checks. |
| 30 | + - Travis: Switch to using build stages. |
| 31 | + - Travis: Extract shell scripts out of Travis config file. |
| 32 | + - Silence `WordPressVIPMinimum.Cache.BatcacheWhitelistedParams` for VIP Go ruleset. |
| 33 | + - Silence variable assignment condition rule. |
| 34 | + - Docs: Updated Readme for more accuracy. |
| 35 | + - Docs: Updated VIP link references. |
| 36 | + - Removed string concatenation for messages for better readability. |
| 37 | + |
| 38 | +### Fixed |
| 39 | + - Unreplaced placeholders for violation messages in `WordPressVIPMinimum.VIP.FetchingRemoteDataSniff`. |
| 40 | + - `WordPressVIPMinimum.Filters.AlwaysReturnSniff` not reporting filter callbacks that don't `return` _anywhere_ inside the function body. |
| 41 | + - Incorrect severity level parameters in `WordPressVIPMinimum.Variables.VariableAnalysis` sniff since they are passed in as a string. |
| 42 | + - Detection of double quotes in `WordPressVIPMinimum.Variables.ServerVariables`, add additional server variables and update unit tests. |
| 43 | + - Typo: `WordPressVIPMinimum.Files.IncludingNonPHPFile` messages, switching `get_file_contents` to `file_get_contents`. |
| 44 | + - Typo: "returning" in `WordPressVIPMinimum.Filters.AlwaysReturn.voidReturn` message. |
| 45 | + - Typo: `WordPressVIPMinimum.VIP.WPQueryParameters.suppressFiltersTrue`, switching `probihted` to `prohibited`. |
| 46 | + - Integration tests not running in Travis. |
| 47 | + |
| 48 | +### Removed |
| 49 | + - SVG support, since it was not working well. |
| 50 | + - `var_dump` from `WordPressVIPMinimum` ruleset since it should be the same type as `var_export` |
| 51 | + - `wpcom_vip_get_page_by_path` from `WordPressVIPMinimum.VIP.RestrictedFunctions` |
| 52 | + - Version check for PHP 7 or less in `WordPressVIPMinimum.Variables.VariableAnalysis` unit test since tests are not failing anymore. |
0 commit comments