Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(19 errors, 23 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

mod/hotquestion/backup/moodle2/backup_hotquestion_activity_task.class.php
(#60) The static declaration must come after the visibility declaration
mod/hotquestion/backup/moodle2/backup_hotquestion_settingslib.php
(#29) File must end with a newline character
mod/hotquestion/backup/moodle2/restore_hotquestion_activity_task.class.php
(#57) The static declaration must come after the visibility declaration
(#69) The static declaration must come after the visibility declaration
(#85) The static declaration must come after the visibility declaration
(#106) The static declaration must come after the visibility declaration
mod/hotquestion/classes/privacy/provider.php
(#62) Method name "_get_metadata" should not be prefixed with an underscore to indicate visibility
(#90) Method name "_get_contexts_for_userid" should not be prefixed with an underscore to indicate visibility
(#119) Method name "_export_user_data" should not be prefixed with an underscore to indicate visibility
(#217) Method name "_export_hotquestion_data_for_user" should not be prefixed with an underscore to indicate visibility
(#237) Method name "_delete_data_for_all_users_in_context" should not be prefixed with an underscore to indicate visibility
(#255) Method name "_delete_data_for_user" should not be prefixed with an underscore to indicate visibility
(#275) Method name "_get_hotquestion_ids_to_cmids_from_cmids" should not be prefixed with an underscore to indicate visibility
(#300) Method name "_recordset_loop_and_export" should not be prefixed with an underscore to indicate visibility
(#320) File must end with a newline character
mod/hotquestion/index.php
(#34) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#157) File must end with a newline character
mod/hotquestion/mod_form.php
(#234) Whitespace found at end of line
(#235) Variable "courseid_do_not_use" must not contain underscores.
(#235) Line exceeds maximum limit of 180 characters; contains 188 characters
mod/hotquestion/renderer.php
(#213) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#233) Variable "courseid_do_not_use" must not contain underscores.
(#233) Line exceeds 132 characters; contains 166 characters
(#238) Variable "courseid_do_not_use" must not contain underscores.
(#238) Line exceeds 132 characters; contains 173 characters
(#247) Variable "courseid_do_not_use" must not contain underscores.
(#247) Line exceeds 132 characters; contains 161 characters
(#255) Variable "courseid_do_not_use" must not contain underscores.
(#255) Line exceeds 132 characters; contains 164 characters
(#257) Variable "courseid_do_not_use" must not contain underscores.
(#257) Line exceeds 132 characters; contains 166 characters
(#261) Variable "courseid_do_not_use" must not contain underscores.
(#261) Line exceeds 132 characters; contains 166 characters
(#266) Variable "courseid_do_not_use" must not contain underscores.
(#266) Line exceeds 132 characters; contains 173 characters
(#275) Variable "courseid_do_not_use" must not contain underscores.
(#275) Line exceeds 132 characters; contains 161 characters
mod/hotquestion/view.php
(#43) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#46) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#61) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#65) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#69) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead

Javascript coding style problems

(9 errors, 2 warnings)

This section shows the coding style problems detected in the code by eslint [More info]

mod/hotquestion/module.js
(#66) Avoid arguments.caller. (no-caller)
(#77) 'transactionid' is defined but never used. (no-unused-vars)
(#77) 'response' is defined but never used. (no-unused-vars)
(#77) 'arguments' is defined but never used. (no-unused-vars)
(#80) Unexpected alert. (no-alert)
(#80) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#96) 'request' is assigned a value but never used. (no-unused-vars)
(#104) 'e' is defined but never used. (no-unused-vars)
(#131) 'index' is defined but never used. (no-unused-vars)
(#131) 'nodelist' is defined but never used. (no-unused-vars)
(#148) 'request' is assigned a value but never used. (no-unused-vars)

CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(2 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

mod/hotquestion/backup/moodle2/restore_hotquestion_activity_task.class.php
(#98) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#100) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "gherkinlint" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]


Gherkin .feature problems

(1 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]

mod/hotquestion/tests/behat/Add Hot Question Activity.feature
(#2) Feature name is already used in: mod/hotquestion/tests/behat/add_hot_question_activity.feature