Skip to content

learningx-project/local_moodlecheck

 
 

Repository files navigation

Moodle PHPdoc Checker

Moodlecheck CI

Installation:

Install the source into the local/moodlecheck directory in your moodle

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

git clone https://github.com/learningx-project/local_moodlecheck.git local/moodlecheck

Then add /local/moodlecheck to your git ignore.

After you have installed this local plugin, you should Log in as admin and select:

Site administration -> Development -> Moodle PHPdoc check

Enter paths to check and select rules to use.

Customization:

You can add new rules by adding new php files in rules/ directory, they will be included automatically.

Look at other files in this directory for examples.

Please note that if you register the rule with code 'mynewrule', the rule registry will look in language file for strings 'rule_mynewrule' and 'error_mynewrule'. If they are not present, the rule code will be used instead of the rule name and default error message appears.

About

v.1.1.4 Moodle4.2 Compatibility with PHP 8.1 Checks style of phpdocs in moodle source file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.5%
  • CSS 0.5%