From: Dan Poltawski Date: Fri, 5 Feb 2016 18:28:54 +0000 (+0000) Subject: Fix precheck command after phpcs renaming and add missing checks. X-Git-Tag: v1.5.4~1^2 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=89f70b28beda7d9627bbcdbfa28cdd05728eb993;p=mdk.git Fix precheck command after phpcs renaming and add missing checks. In https://github.com/moodlehq/moodle-local_ci/pull/70 the php code sniffer abbreviation was changed to phpcs. In various other isues we've added more CI checks which are missing from mdk. Ideally this should be rewritten to output the result of all the checks, regardless of whether they are defined in mdk, but thats for another day. --- diff --git a/mdk/commands/precheck.py b/mdk/commands/precheck.py index 823160f..5853765 100644 --- a/mdk/commands/precheck.py +++ b/mdk/commands/precheck.py @@ -116,13 +116,15 @@ class PrecheckCommand(Command): mapping = { 'phplint': 'PHP Lint', - 'php': 'PHP coding style', + 'phpcs': 'PHP coding style', 'js': 'Javascript', 'css': 'CSS', 'phpdoc': 'PHP Doc', 'commit': 'Commit message', 'savepoint': 'Update/Upgrade', - 'thirdparty': 'Third party' + 'thirdparty': 'Third party', + 'grunt': 'Grunt', + 'shifter': 'Shifter' } for key in mapping: