Skip to content

Latest commit

 

History

History
385 lines (338 loc) · 25.6 KB

CHANGES.md

File metadata and controls

385 lines (338 loc) · 25.6 KB

Changes in version 5.0.5 (20240410) - Fools plus 9

  • Bundled dependencies updated:
    • Moodle CS v3.4.6
    • PHP Compatibility e5cd2e24
    • PHP CodeSniffer 3.9.1
    • PHPCS Utils 1.0.10

Changes in version 5.0.4 (20240126) - Depend-a-bot

  • First steps towards managing dependencies automatically with Dependabot.
  • Bundled dependencies updated:
    • Moodle CS updated to v3.3.14.
    • PHP CodeSniffer updated to 3.8.1.

Changes in version 5.0.3 (20231219) - Bumping bumps

  • Bundled dependencies updated:
    • PHP CodeSniffer updated to 3.8.0.
    • PHP Compatibility updated to 306cd263.
    • PHPCS Extra updated to 1.2.1.
    • PHPCS Utils updated to 1.0.9.
    • Moodle CS updated to v3.3.12.

Changes in version 5.0.2 (20231129) - Mainly main

Changes in version 5.0.1 (20231020) - Daddy's birthday

  • Added MOODLE_403_STABLE tests.
  • Bundled dependencies updated:

Changes in version 5.0.0 (20230926) - Cinque, this is cinque!

  • IMPORTANT - New (raised) requirements:
    • PHP 7.4 and up supported (previously PHP 7.0 and up).
    • Moodle v3.8.3 and up supported (previously Moodle v3.7.0).
  • Changed the process to build the plugin. Until now it was a tedious process, manually copying all the dependencies within the plugin (PHP_CodeSniffer, PHPCompatibility, PHPCSExtra, PHPCSUtil and moodle-cs). Now all the dependencies are managed via Composer and the plugin comes with the vendor directory ready to be used.
  • This change has been applied for improving the release process, and towards 100% automating it, now that the plugin is just a Web/CLI wrapper over all the tools listed above.
  • The old 4.x series will not receive more updates (unless absolutely needed).
  • Bundled dependencies updated:

Changes in version 4.0.8 (20230923) - Few hours later

Changes in version 4.0.7 (20230922) - Day after Saint Matthew here!

Changes in version 4.0.6 (20230908) - Composing our lifes

Changes in version 4.0.5 (20230528) - Forever in my heart, Tina

Changes in version 4.0.4 (20230314) - Forth and back

Changes in version 4.0.3 (20230214) - Valentine's D

Changes in version 4.0.2 (20230120) - Comp-at-ibility

  • Various small internal changes:
    • 401_STABLE CI support.
    • Prepare for 4.2 new requirements.
    • PHP 8.1 fixes.
  • Bundled dependencies overhaul:

Changes in version 4.0.1 (20221007) - Dear Windows

  • PR#205: Allow CRLF (Windows) line ending in .csv testing fixtures (stronk7).
  • PR#206: Fix various links to point to the new coding style docs (Tim Hunt).
  • PR#209: Solve a problem, specially noticeable under Windows, where core's PHP_CodeSniffer configuration was interfering with codechecker runs (stronk7).

Changes in version 4.0.0 (20220825) - Welcome moodle-cs

  • PR#192, PR#197: Various fixes to own CI tests (stronk7).
  • PR#193: Move to use the moodle-cs standard that is now the source for everything else and should be the one used for all (tools, editors, IDEs...) integration. (Andrew Lyons and stronk7). This change includes, noticeably:
    • PHP_CodeSniffer updated to current 3.7.1.
    • moodle-cs updated to current 3.2.4+.
    • Adjust tests, docs and other bits to keep everything working.
  • PR#199: Correct handling of empty files (Michael Milette).
  • PR#200: Fix GitHub repository URLs (David Mudrák).

Changes in version 3.1.0 (20220225) - Fondant chocolate

  • PR#176: Avoid some use statements to make the MOODLE_INTERNAL check to be required (stronk7).
  • PR#177: Make it possible to show the erroring standard/sniff/rule in the UI executions (Ruslan Kabalin).
  • PR#178: Warn, for Moodle 4.0 and up, about unit tests missing coverage information (stronk7).
  • PR#180: Allow @codeCoverageIgnore annotations in inline comments (stronk7).
  • PR#181: Apply the ValidFunctionName sniff to all scoped tokens (stronk7).
  • PR#183: Ensure that the "other" checks do observe UI defined exclusions (stronk7).
  • PR#186: Add support for installing via Composer (Andrew Lyons).
  • PR#190: Control spacing around array indexes (stronk7).
  • PR#191: Fix a problem about not detecting relevant code in files without any artifact (stronk7).
  • Various small fixes and tweaks.

Changes in version 3.0.6 (20220117) - January's crunch (take 2)

  • PR#174: Lower the unexpected MOODLE_INTERNAL check to be a warning, instead of error, as originally planned (stronk7).

Changes in version 3.0.5 (20220111) - January's crunch

  • PHP_CodeSniffer upgraded to 3.6.2 release (stronk7).
  • PR#164: Make testcase class names to be fixable by phpcbf (stronk7).
  • PR#167: Verify that tescase location matches sub-namespace definition (stronk7).
  • PR#168: Check class opening curly brackets correctness (kabalin).
  • PR#169: Report unexpected MOODLE_INTERNAL uses (stronk7).
  • PR#172: Allow phpcs:xxx annotations in the first line of files (stronk7).
  • Small doc changes and typo fixes here and there.

Changes in version 3.0.4 (20211204) - Downgrading expectations

  • PR#162: Downgrade some recently code added to the "moodle" standard to make it PHP 7.0 compliant, needed to continue supporting old branches by various tools (stronk7).

Changes in version 3.0.3 (20211130) - Cyber releasing

  • Various internal changes and improvements:
    • Own conformance with new PHPUnit naming rules.
    • New MoodleUtil class to be able to detect Moodle dir root, branch and components (calculated or imported) within code checker. This new awareness will help improving various sniffs.
    • Drop some Moodle own < 3.7 testing. Code checker continues supporting Moodle 3.4 and up.
    • Improvements to the base test case, now able to automatically verify phpcbf fixes.
    • Bye, bye to Travis for self-tests. Now relying only on GHA.
  • PR#155: Make some common errors to be fixable by phpcbf (cameron1729).
  • PR#158: Fixes for the MOODLE_INTERNAL sniff to better detect some allowed exceptions (stronk7).
  • PR#161: New sniff to follow PHPUnit files, classes and namespaces naming rules (stronk7).

Changes in version 3.0.2 (20210716) - Summer break

  • Various internal changes and improvements:
    • Removed some legacy code (33_STABLE) and out of support 7.1 tests.
    • Disable coverage reporting in Travis own builds.
    • Added PHP 8.0 support in own tests.
    • Fulfill Moodle 4.0 requirements.
    • Make mariadb own tests sticky to 10.5 until MDL-72131 is fixed.
  • PR#146: Suggest debugging() as alternative to error_log() (Ruslan Kabalin).
  • PR#148: Verify that there is one and only one EOL @ EOF (stronk7).

Changes in version 3.0.1 (20210423) - April's cool

  • Various internal changes and improvements:
    • Travis and GHA support updated.
    • Support docker login to workaround anonymous pull limits.
    • Added instructions to work with VSCode.
    • Apply for own coverage.php to better define coverage reporting.
  • PR#132: jsonSerialize() is now a valid function name (Tobias Goltz).
  • PR#136: Added support for --exclude option in the CLI runner (Adrian Perez).
  • PR#139: Added check for abstract/final/static positioning in function declarations (stronk7).
  • PR#141: Deprecated print_error() (stronk7).
  • PR#143: Added support for return new class extends PHPDoc blocks (stronk7).

Changes in version 3.0.0 (20201127) - Welcome phpcs 3

  • Upgrade to PHP_CodeSniffer 3.5.8 (stronk7):
    • PHP_CodeSniffer move to phpcs directory (see readme_moodle.txt for complete instructions).
    • Move Moodle sniffs to PHP_CodeSniffer 3.
    • Create own runner/report.
    • Move as much as possible from locallib.php to classes.
    • Add PHPUnit 8 compatibility, keeping PHPUnit 6 working.
    • Min Moodle version required increases from 3.2 to 3.4.
  • PR#90: Adapt custom PHP_CodeSniffer runner (classes/runner.php) to use PHP_CodeSniffer 3 API (Sara Arjona).
  • PR#95: Unlock session before processing files (Víctor Déniz).

Changes in version 2.9.8 (20201002) - Bye and thank you, phpcs 2.x

  • PR#83 and PR#84: Allow a list of files to be checked (Sam Marshall).
  • PR#80: Remove require of now-deleted coursecatlib.php (Jun Pataleta).
  • Several travis changes:
    • PR#79: Bump to use moodlehq/moodle-plugin-ci v3.
    • PR#81: Add support for 310 branch.
  • Small README changes: information section improved and travis status badge update to show travis.com build status.

Changes in version 2.9.7 (20200718) - Bye bye, JS

  • PR#75 and PR#77: Small tweaks for better transition to phpcs3.
  • CONTRIB-8122: Stop processing non-php files (runner and UI).

Changes in version 2.9.6 (20200611) - June's Roentgenium

  • PR#63: Make MOODLE_INTERNAL check declare() aware (Peter Burnett).
  • PR#72: Minor php74 fixes and travis refactor.

Changes in version 2.9.5 (20200401) - Poisson d'avril

  • CONTRIB-8024: Process all files as UTF-8 encoded (defined @ standard level).
  • CONTRIB-6175: Only process PHP files (defined @ standard level).
  • PR#69: Upgrade PHPCompatibility to 9.3.5+ (9fb3244).
  • CONTRIB-8031: Detect wrong uses of $PAGE and $OUTPUT in renderers and blocks (Tim Hunt).
  • MDLSITE-6093: Don't require MOODLE_INTERNAL check for pure 1-artifact (class, interface, trait) files.
  • PR#65: PHP 7.4 support.
  • PR#64: Add Travis support for 38 and 39 branches.
  • PR#62: Improved command line instructions (Steven McCullagh).

Changes in version 2.9.4 (20191112) - Late Beorc

  • PR#60: Added support for require_admin since MDL-58439 (Brendan Heywood).
  • CONTRIB-7165: Allow type-hint for foreach variable (Daniel Thee Roperto).
  • PR#58: Allow tearDownAfterClass as a valid function name (Mikhail Golenkov).
  • MDLSITE-5908: Respect eslint configuration comments in JS files (Ruslan Kabalin).
  • Various README, thirdpartylib, travis fixes (Tobias Uhmann and others).

Changes in version 2.9.3 (20190118) - Selectivenesses (take #2)

  • NOBUG: Some minor changes towards stable travis builds.
  • INCOMPETENCE: Fix the version.php information that Eloy missed for 2.9.2 :-)

Changes in version 2.9.2 (20190115) - Selectivenesses

  • NOBUG: Updated PHP_CodeSniffer to 2.9.2+ (4665f64).
  • NOBUG: Updated PHPCompatibility to 9.1.1+ (4487042)
  • NOBUG: Added support for PHP 7.3 and Moodle 3.6/3.7dev.
  • MDLSITE-5660: Allow spaced, non spaced and nullable return types in function/method declarations.

Changes in version 2.7.2 (20180701) - Barcelona awesomeness

  • NOBUG: Upgrade PHPCompatibility to 8.1.0+ (609be5c).
  • MDLSITE-2825: Allow obj-op / fluid interfaces + indentation (4 char) checks.
  • PR#46: Privacy support (null provider).

Changes in version 2.7.1 (20180120) - Slowly yours

  • NOBUG: Bump to moodlerooms/moodle-plugin-ci v2. Apply to 32_STABLE and up in travis conf. Problems with behat forces us to keep it disabled.
  • PR#45: Upgrade PHPCompatibility to 7.1.5. (Mark Nielsen)
  • PR#41: Allow newline characters before or after object operators. (Ankit Agarwal)

Changes in version 2.7.0 (20170527) - Boosting you!

  • PR#40|: Update PHPCompatibility to 7.1.4. (Mark Nielsen)
  • NOBUG: Add instructions for use with Sublime Text editor. (Maria Sorica)
  • CONTRIB-6619: Make behat tests pass under Boost.
  • MDLSITE-3688: Detect missing login checks and side effects on internal check. (Dan Poltawski)
  • NOBUG: Travis: Add support for 32 and 33 stable runs.
  • NOBUG: Updated PHP_CodeSniffer to 2.7.0 version.

Changes in version 2.5.4 (20160930) - Internally safe

  • NOBUG: Updated PHP_CodeSniffer to 2.6.2 version.
  • MDLSITE-3688: Verify all files have MOODLE_INTERNAL or require config.php (Dan Poltawski)
  • PR#31: Avoid PHPUnit's setUpBeforeClass() to generate CS errors. (David Mudrák)
  • NOBUG: Adjust php combinations for travis testing on multiple branches.
  • PR#29: Allow http_response_header global. (Andrew Downes)

Changes in version 2.5.3 (20160608) - Another dent to indent

  • NOBUG: Add travis support (using the nice moodle-plugin-ci assistant for Moodle plugins).
  • NOBUG: Upgrade PHP_CodeSniffer to 2.6.0 version. (Mark Nielsen)
  • CONTRIB-5921: Exclude yui/amd and fixtures by default. (Brendan Heywood)
  • CONTRIB-6206: Fixed indentation issues when mixing functions and arrays. Bundled PHP_CodeSniffer upgraded to 2.6.2 dev version.

Changes in version 2.5.2 (20160314) - The March begins...

  • MDLSITE-4197: Allow backticks within lang strings. Valid Markdown.
  • CONTRIB-6146: Better handling of indentation in files having multiple PHP blocks.
    • Moving away from our custom indentation Sniff.
    • Using upstream Generic.Whitespace.ScopeIndent, with open/close tags rooting indentation.
    • Added Generic.Whitespace.DisallowTabIndent (to detect tabs within codechecker).
    • Better coverage of indentation tests.
  • NOBUG: Upgrade PHP_CodeSniffer to pre 2.6.0 version (8c5d176).

Changes in version 2.5.1 (20160214) - Valentinius release!

  • Pull request #19. Minor changes to make it work with CS 2.x (Corey Wallis).
  • CONTRIB-5175: Better modifiers matching in regexps.
  • CONTRIB-5732: Upgrade to recent version (Mark Nielsen):
    • Upgrade PHP_CodeSniffer to 2.5.1+ (b506fcd).
    • Upgrade PHPCompatibility to PHP 5.6 release.
    • Renew various moodle Sniffs using their updated sources.
    • Fixes to reporting API, unit tests...
    • Allow the UI to skip warnings (warningSeverity).
  • CONTRIB-6025, CONTRIB-6105: Allow type hinting phpdoc blocks, supported both in variable/list assignments and variable actions.
  • NOBUG: Improve moodle standard unit test coverage.
  • NOBUG: Added some UI acceptance tests.

Changes in version 2.3.2 (20140815) - Candelaria, mojo's paradise!

  • CONTRIB-5240: Fix CamelCase problems (so it works ok on any OS, no matter its file case-sensitiveness).
  • NOBUG: Allow clone() (T_CLONE) to be used as function.
  • NOBUG: Add some sensible exclude defaults (Tim Hunt).
  • NOBUG: Sort results by path (Tim Hunt).
  • CONTRIB-5175: Fixed some regexp false positives (CONTRIB-4146 regression).

Changes in version 2.3.1 (20140707) - San Fermín release!

  • MDLSITE-2800: Upgrade to CS 1.5.3.
    • Exclude the DefaultTimezoneRequired sniff properly.
    • Upgrade the PHPCompatibility standard to current version.
  • CONTRIB-4146: Forbid the use of some functions/operators.
    • extract().
    • eval() - no matter we are aware of few places where they are ok to be used.
    • goto and goto labels.
    • preg_replace() with /e modifier.
    • backticks shell execution.
    • backticks within strings.
  • MDLSITE-3150: Forbid use of AS keyword for table aliasing.

Changes in version 2.3.0 (20140217)

  • CONTRIB-4876: Upgrade to CS 1.5.2.
    • (internal) Changes to use new APIs (sniffs and reporting). Applied to the web client, the CLI (run.php) and testing framework.
    • (internal) Renderer modified to work based on a reported xml structure (SimpleXMLElement).
    • Added new option to the CLI about running in interactive mode.
    • Beautify the web report, grouping problems per line of code.
  • CONTRIB-4742: Fix incorrect thirdpartylibs.xml debugging for Windows.
  • CONTRIB-4705: Convert own txt files to markdown.

Changes in version 2.2.9 (20131018)

  • NOBUG: Better instructions for integration with phpStorm (Dan Poltawski).
  • NOBUG: Instruct checker about some more valid globals (Sam Hemelryk).
  • NOBUG: New sniffs to verify spaces around operators (Ankit Agarwal).
  • NOBUG: Internal cleanup.
  • CONTRIB-4696: Add support for new 2.6 distributed thirdpartylibs.xml.

Changes in version 2.2.8 (20130713)

  • NOBUG: Update phpcompatibility standard with latest changes (plus testing).
  • MDLSITE-2106: Detect underscores in variable names.

Changes in version 2.2.7 (20130606)

  • MDLSITE-2205: Allow 20-120 chars long hyphen commenting-separators.
  • NOBUG: Fixed some dev warnings under 2.5.

Changes in version 2.2.6 (20130312)

  • CONTRIB-4160: fail tests if there are unexpected results (errors & warnings).
  • CONTRIB-4150: allow phpdocs block before define().
  • CONTRIB-4186: fix CSS / rendering of results.
  • CONTRIB-3582: allow to specify excluded paths.
  • CONTRIB-3562: skip indentation checks on inline html sections within PHP code.

Changes in version 2.2.5 (20130214)

  • CONTRIB-4151: added moodle phpunit support (via local_codechecker_testcase).
  • CONTRIB-4149: added phpcompatibility sniffs (git://github.com/wimg/PHPCompatibility.git).
  • CONTRIB-4145: upgrade to PHPCS 1.4.4.
  • CONTRIB-4144: add (this) CHANGES.txt file.

Changes in version v2.2.2 (20120616)

  • add some well known globals to avoid reporting them.
  • don't check .xml files (Tim Hunt).

Changes in version v2.2.1 (20120408)

  • maturity stable.
  • added plugin icon.
  • fixed copy/paste typo @ version.php.
  • accept inline comments starting by digit (Tim Hunt).
  • improve line length check on non-php files (Tim Hunt).