open-lms-open-source / moodle-plugin-ci

Assist with running a Moodle plugin in Travis CI
https://blackboard-open-source.github.io/moodle-plugin-ci/
GNU General Public License v3.0
43 stars 37 forks source link

Request: Moodle Code Checker Autofix #73

Closed trahloff closed 6 years ago

trahloff commented 6 years ago

Since the Codechecker is based on PHPCS I would like to request to provide an option to enable the autofix function.

polothy commented 6 years ago

It's not advertised, but I have it implemented. You can download the moodle-plugin-ci.phar from https://github.com/moodlerooms/moodle-plugin-ci/releases/latest and then try running it:

php moodle-plugin-ci.phar phpcbf path/to/your/plugin

If you run into trouble, take a look at the help:

php moodle-plugin-ci.phar phpcbf -h

I haven't used it in a long time, so I hope it still works :)

trahloff commented 6 years ago

Thank you!