moodle-local_codechecker icon indicating copy to clipboard operation
moodle-local_codechecker copied to clipboard

Simple coding-style checker for Moodle, using PHP_CodeSniffer

Results 13 moodle-local_codechecker issues
Sort by recently updated
recently updated
newest added

Now (July 2022), the unique source for the Moodle coding style standard is [moodle-cs](https://github.com/moodlehq/moodle-cs). So, local_codechecker isn't anymore the source, but just one more consumer of the standard. In order...

We don't usually test codechecker under Windows, not many have that OS at hand. A very least we should guarantee that GHA performs one Windows run to detect regressions better....

> btw... was thinking if maybe we could try to keep the moodlerooms/moodle-coding-standard auto-maintained, so any change in the standard is automatically populated there. I see you've the sync +...

Testing a module I decided to "Exclude" from the check each txt file. Because of this I added ".txt", "/.txt" and some other different way to describe what I had...

bug

Right now, PHP min supported version is 7.0 and we need to keep it working because other products need to work with 7.0. Because of that, we had to "downgrade"...

While CodeSniffer is already a great tool I think augmenting it with [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) will allow to catch even more style violations and possible errors.

Since https://tracker.moodle.org/browse/MDLSITE-2800, the phpcompatibility standard supports passing a given PHP version ("--runtime-set testVersion X.Y.Z") and that produces multiple sniffs (deprecated, removed, non-existing... function/classes) to be run specifically for that version....

While reviewing https://github.com/moodlehq/moodle-local_codechecker/pull/90, @vmdef has raised a couple of interesting things to review related to the included files in index.php and run.php: ``` if (is_file(__DIR__ . '/phpcs/autoload.php') === true) {...

help wanted
task

Create a docker file to make the installation more easier Install using commands: ``` docker build . docker images (get the IMAGE ID) docker tag moodle/phpcs ``` Then create a...