Skip to content

1.2.0 - 2022-09-23

Compare
Choose a tag to compare
@jrfnl jrfnl released this 23 Sep 12:01
· 84 commits to stable since this release
3a2cdfb

Added

  • An XSD schema for PHPCS sniff documentation files. Thanks to @dingo-d for this awesome contribution!
    The XSD schema can be added to PHPCS sniff documentation XML files and can be used to verify these files comply with the requirements set by PHPCS, so the documentation will display correctly when using the PHPCS --generator=... feature.
    Information about how to use this new feature has been added to the README.
  • PHPCSDebug/TokenList sniff: tabs and spacess will now be visualized in whitespace-only tokens. In comment tokens, leading and trailing whitespace will be visualized.
    Whitespace will also be visualized for any token which has (or should have) undergone a "tabs to spaces" conversion.

Changed

  • PHPCSDebug/TokenList sniff: the 'orig_content' will now be shown for all tokens which have undergone a "tabs to spaces" conversion. Previously it was only shown for whitespace tokens which had been converted.
  • The package will now identify itself as a static analysis tool to Composer. Thanks @GaryJones!
  • Various other code and documentation improvements.
  • Miscellaneous updates to the development environment and CI scripts.

Fixed

  • FeatureComplete: wrong error message was displayed for missing test case files in colors enabled mode.
  • PHPCSDebug/TokenList sniff: for rare edge cases when PHPCS has not set the 'length' information for a token, the length will no longer be calculated, but will show as ?. This prevents a mismatch/misrepresentation between the output of the sniff and the real token array.