Moodle Plugins directory: Code-checker: Versions: 2.2.9 | Moodle.org
Code-checker
Code-checker 2.2.9
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.
Information
This Moodle plugin uses the Pear CodeSniffer library to check that code follows the Moodle coding guidelines, available @ .
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 .
To install it using git, type this command in the root of your Moodle install:
git clone git://github.com/moodlehq/moodle-local_codechecker.git local/codechecker
Then add /local/codechecker to your git ignore.
Alternatively, download the zip from , 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. Please feel free to enhance it. Report any idea or bug @ , thanks!
IDE Integration
Eclipse:
- If if you use Eclipse for development, you might want to install the PHP CodeSniffer plugin (http://www.phpsrc.org/).
- Create a new "CodeSniffer standard" in the preferences page.
- Point it at the moodle directory inside the codechecker folder.
- Thank Michael Aherne from University of Strathclyde who worked this out!
PhpStorm
- Install the phpcs cli tool
- Open PhpStorm preferences
- Go to PHP > CodeSniffer and supply the path to the phpcs executable
- Go to Inspections > PHP > PHP Code Sniffer Validation
- In the 'coding standard' dropdown select 'custom' and press the [...] button next to the path to the coding standard. Point is at the moodle directory inside the this plugin directory.
Version information
- Version build number
- 2013101800
- Version release name
- 2.2.9
- Can be updated from
- 2.2.1 (2012040800), 2.2.2 (2012061600), 2.2.5 (2013021400), 2.2.6 (2013031200), 2.2.7 (2013060600), 2.2.8 (2013071300)
- Can be updated to
- 2.3.0 (2014021700), 2.3.1 - San Fermín release! (2014070700), 2.3.2 - Candelaria, mojo's paradise! (2014081500)
- Maturity
- Stable version
- MD5 Sum
- dcbe8137d14cda2235d2ee46f2ad56f5
- Supported software
- PHP 5.3, PHP 5.4, Moodle 2.2, Moodle 2.3, Moodle 2.4, Moodle 2.5, Moodle 2.6
- The more recent release 2.3.2 - Candelaria, mojo's paradise! (2014081500) exists for Moodle 2.2
- The more recent release 2.3.2 - Candelaria, mojo's paradise! (2014081500) exists for Moodle 2.3
- The more recent release 2.3.2 - Candelaria, mojo's paradise! (2014081500) exists for Moodle 2.4
- The more recent release 2.3.2 - Candelaria, mojo's paradise! (2014081500) exists for Moodle 2.5
- The more recent release 2.3.2 - Candelaria, mojo's paradise! (2014081500) exists for Moodle 2.6
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS branch
- master
- VCS tag
- v2.2.9
Default installation instructions for plugins of the type Local plugins
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder in the "local" subdirectory.
- Visit http://yoursite.com/admin to finish the installation.