forked from moodlehq/moodle-plugin-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in commands are important because all the old CLI machinery in phpcs 3.0 has been removed. There were some different solutions for this: - start using the bin/phpcs binary (exec) and forget. - create a custom runner/reporter like we did in local_codechecker. - use exclusively the new phpcs 3.0 classes to get it done. While I was really tempted to re-use the local_codechecker custom runner / reporter, finally I went the pure phpcs classes way to avoid creating any dependency on local_codechecker (apart from the standard). Unit tests have been slightly improved to better assert that all the expected elements in the output are there. Finally, we have had to instruct phpcs where the PHPCompatibility standard is because, when running from PHAR, the CodeSniffer.conf file bundled is not read and it's expected to be in real filesystem. This was causing codechecher not to work from PHAR, so we are now configuring it from the commands (Checker and Fixer). Closes moodlehq#49
- Loading branch information
Showing
9 changed files
with
250 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.