Code-checker

General plugins (Local) ::: local_codechecker
Maintained by One poor developer...Eloy Lafuente (stronk7), TimTim Hunt, Víctor Déniz Falcón, Sara Arjona Téllez
Part of set Moodle development.
A tool for developers that helps them follow Moodle's coding style.

Code-checker 4.0.2 - Comp-at-ibility

Moodle 3.7, 3.8, 3.9, 3.10, 3.11, 4.0, 4.1
Released: Saturday, 21 January 2023, 2:57 AM

Moodle Code Checker

Codechecker CI

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:

Information

This Moodle plugin uses the PHP CodeSniffer tool to check that code follows the Moodle coding style. It uses the Moodle Coding Style 'sniffs' that check many aspects of the code, including the awesome PHPCompatibility ones.

It was created by developers at the Open University, including Sam Marshall, Tim Hunt and Jenny Gray. It is now maintained by Moodle HQ.

Available releases can be downloaded and installed from https://moodle.org/plugins/view.php?plugin=local_codechecker.

To install it using git, type this command in the root of your Moodle install:

git clone https://github.com/moodlehq/moodle-local_codechecker.git local/codechecker

Then add /local/codechecker to your git ignore.

Additionally, remember to only use the version of PHPCS located in phpcs/bin/phpcs rather than installing PHPCS directly. Add the location of the PHPCS executable to your system path, tell PHPCS about the Moodle coding standard with phpcs --config-set installed_paths /path/to/moodle-local_codechecker and set the default coding standard to Moodle with phpcs --config-set default_standard moodle. You can now test a file (or folder) with: phpcs /path/to/file.php.

Alternatively, download the zip from https://github.com/moodlehq/moodle-local_codechecker/zipball/master, unzip it into the local folder, and then rename the new folder to "codechecker".

After you have installed this local plugin, you should see a new option in the settings block:

Site administration -> Development -> Code checker

We hope you find this tool useful. Feel free to enhance it! Also, you can report any idea or bug using GitHub's issues and pull requests, thanks!

Integrations

Since version v4.0.0 this plugin shouldn't be used as source for any integration with IDEs or tools, and Moodle Coding Style (the new source for the moodle-cs standard) should be used instead.

Please refer to the information available in that repository to know more about how to install, configure and integrate it with your development environment.

Version information

Version build number
2023012000
Version release name
4.0.2 - Comp-at-ibility
Can be updated from
2.9.3 - Selectivenesses (take #2) (2019011800), 2.9.4 - Late Beorc (2019111200), 2.9.5 - Poisson d'avril (2020040100), 2.9.6 - June's Roentgenium (2020061100), 2.9.7 - Bye bye, JS (2020071800), 2.9.8 - Bye and thank you, phpcs 2 (2020100200), 3.0.0beta - Welcome phpcs3 (2020111400), 3.0.0 - Welcome phpcs 3 (2020112700), 3.0.1 - April's cool (2021042300), 3.0.2 - Summer break (2021071600), 3.0.3 - Cyber releasing (2021113000), 3.0.4 - Downgrading expectations (2021120400), 3.0.5 - January's crunch (2022011100), 3.0.6 - January's crunch (take 2) (2022011700), 3.1.0 - Fondant chocolate (2022022500), 4.0.0 - Welcome moodle-cs (2022082500), 4.0.1 - Dear Windows (2022100700)
Can be updated to
4.0.3 - Valentine's D (2023021400), 4.0.6 - Composing our lifes (2023090800), 4.0.7 - Day after Saint Matthew here! (2023092200), 4.0.8 - Few hours later (2023092300), 5.0.0 - Cinque, this is cinque! (2023092600), 5.0.1 - Daddy's birthday (2023102000), 5.0.3 - Bumping bumps (2023121900), 5.0.4 - Depend-a-bot (2024012600), 5.0.5 - Fools plus 9 (2024041000)
Maturity
Stable version
MD5 Sum
caa02eaf769fd8993427b93296002864
Supported software
PHP 7.0, PHP 7.1, PHP 7.2, Moodle 3.7, PHP 7.3, PHP 7.4, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11, PHP 8.0, Moodle 4.0, PHP 8.1, Moodle 4.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
master
VCS tag
v4.0.2

Default installation instructions for plugins of the type General plugins (Local)

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder in the "local" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation.