Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(2 errors, 105 warnings)

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

mod/stickynotes/lang/en/stickynotes.php
(#29) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#32) The string key "modulenameplural" is duplicated
(#33) The string key "missingidandcmid" is not in the correct order, it should be before "pluginadministration"
(#36) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "stickynotes:createnote" is not in the correct order, it should be before "stickynotes:view"
(#42) The string key "stickynotes:deleteanynote" is not in the correct order, it should be before "stickynotes:updateownnote"
(#46) The string key "stickynotes:viewauthor" is not in the correct order, it should be before "stickynotes:vote"
(#47) The string key "stickynotes:export" is not in the correct order, it should be before "stickynotes:viewauthor"
(#49) Unexpected comment found. Auto-fixing will not work after this comment
(#54) The string key "votenone" is not in the correct order, it should be before "votetype_help"
(#55) The string key "votelike" is not in the correct order, it should be before "votenone"
(#56) The string key "limitstickynotes" is not in the correct order, it should be before "votelike"
(#60) The string key "limitvotes" is not in the correct order, it should be before "maxstickynoteserror"
(#66) The string key "colors" is not in the correct order, it should be before "viewauthor_help"
(#70) The string key "choosecolors" is not in the correct order, it should be before "rotate_help"
(#79) The string key "settings_notes" is not in the correct order, it should be before "settings_votes"
(#80) The string key "displaystickycaption" is not in the correct order, it should be before "settings_notes"
(#86) The string key "completionstickynotesenabled" is not in the correct order, it should be before "seeallnotes_help"
(#88) The string key "completionstickynotesdetail:notes" is not in the correct order, it should be before "completionstickynotesgroup"
(#90) Unexpected comment found. Auto-fixing will not work after this comment
(#91) The string key "color1" is not in the correct order, it should be before "completionstickynotesdetail:notes"
(#110) Unexpected comment found. Auto-fixing will not work after this comment
(#113) The string key "maximumchars" is not in the correct order, it should be before "validate"
(#115) The string key "changecolumn" is not in the correct order, it should be before "title"
(#119) The string key "deletecolumn" is not in the correct order, it should be before "deletenotesure"
(#121) The string key "cannotgetnote" is not in the correct order, it should be before "deletecolumnsure"
(#122) The string key "cannotgetcolumn" is not in the correct order, it should be before "cannotgetnote"
(#123) The string key "cannotcreatenote" is not in the correct order, it should be before "cannotgetcolumn"
(#125) The string key "cannotdeletenote" is not in the correct order, it should be before "cannotupdatenote"
(#131) The string key "createnote_title" is not in the correct order, it should be before "erroremptytitle"
(#133) The string key "choosecolorbuttons" is not in the correct order, it should be before "updatenote_title"
(#134) The string key "after" is not in the correct order, it should be before "choosecolorbuttons"
(#140) The string key "activelock" is not in the correct order, it should be before "selectorder"
(#144) Unexpected comment found. Auto-fixing will not work after this comment
(#147) The string key "createcolumn" is not in the correct order, it should be before "editnote"
(#149) The string key "buttondisplaystickycaption" is not in the correct order, it should be before "titledisplaystickycaption"
(#155) Unexpected comment found. Auto-fixing will not work after this comment
(#160) The string key "create_note_pix" is not in the correct order, it should be before "max_notes_reached_pix"
(#161) The string key "create_column_pix" is not in the correct order, it should be before "create_note_pix"
(#163) The string key "delete_column_pix" is not in the correct order, it should be before "edit_column_pix"
(#165) The string key "delete_note_pix" is not in the correct order, it should be before "edit_note_pix"
(#167) The string key "createnotelocked" is not in the correct order, it should be before "move_cross_pix"
(#170) Unexpected comment found. Auto-fixing will not work after this comment
(#171) The string key "eventnotecreated" is not in the correct order, it should be before "votelockedpix"
(#173) The string key "eventnotedeleted" is not in the correct order, it should be before "eventnoteupdated"
(#175) Unexpected comment found. Auto-fixing will not work after this comment
(#178) Unexpected comment found. Auto-fixing will not work after this comment
(#182) The string key "removeallresponse" is not in the correct order, it should be before "resetstickynotesvotes"
(#186) Unexpected comment found. Auto-fixing will not work after this comment
(#187) The string key "privacy:metadata:stickynotes_note" is not in the correct order, it should be before "removevotesresponse"
(#190) The string key "privacy:metadata:stickynotes_note:stickycolid" is not in the correct order, it should be before "privacy:metadata:stickynotes_note:stickyid"
(#192) The string key "privacy:metadata:stickynotes_note:message" is not in the correct order, it should be before "privacy:metadata:stickynotes_note:userid"
(#201) The string key "privacy:metadata:stickynotes_vote:timecreated" is not in the correct order, it should be before "privacy:metadata:stickynotes_vote:vote"
mod/stickynotes/lang/fr/stickynotes.php
(#29) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#32) The string key "modulenameplural" is duplicated
(#33) The string key "missingidandcmid" is not in the correct order, it should be before "pluginadministration"
(#36) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "stickynotes:createnote" is not in the correct order, it should be before "stickynotes:view"
(#42) The string key "stickynotes:deleteanynote" is not in the correct order, it should be before "stickynotes:updateownnote"
(#46) The string key "stickynotes:viewauthor" is not in the correct order, it should be before "stickynotes:vote"
(#47) The string key "stickynotes:export" is not in the correct order, it should be before "stickynotes:viewauthor"
(#49) Unexpected comment found. Auto-fixing will not work after this comment
(#54) The string key "votenone" is not in the correct order, it should be before "votetype_help"
(#55) The string key "votelike" is not in the correct order, it should be before "votenone"
(#56) The string key "limitstickynotes" is not in the correct order, it should be before "votelike"
(#60) The string key "limitvotes" is not in the correct order, it should be before "maxstickynoteserror"
(#66) The string key "colors" is not in the correct order, it should be before "viewauthor_help"
(#70) The string key "choosecolors" is not in the correct order, it should be before "rotate_help"
(#79) The string key "settings_notes" is not in the correct order, it should be before "settings_votes"
(#80) The string key "displaystickycaption" is not in the correct order, it should be before "settings_notes"
(#86) The string key "completionstickynotesenabled" is not in the correct order, it should be before "seeallnotes_help"
(#88) The string key "completionstickynotesdetail:notes" is not in the correct order, it should be before "completionstickynotesgroup"
(#90) Unexpected comment found. Auto-fixing will not work after this comment
(#91) The string key "color1" is not in the correct order, it should be before "completionstickynotesdetail:notes"
(#110) Unexpected comment found. Auto-fixing will not work after this comment
(#113) The string key "maximumchars" is not in the correct order, it should be before "validate"
(#115) The string key "changecolumn" is not in the correct order, it should be before "title"
(#119) The string key "deletecolumn" is not in the correct order, it should be before "deletenotesure"
(#121) The string key "cannotgetnote" is not in the correct order, it should be before "deletecolumnsure"
(#122) The string key "cannotgetcolumn" is not in the correct order, it should be before "cannotgetnote"
(#123) The string key "cannotcreatenote" is not in the correct order, it should be before "cannotgetcolumn"
(#125) The string key "cannotdeletenote" is not in the correct order, it should be before "cannotupdatenote"
(#131) The string key "createnote_title" is not in the correct order, it should be before "erroremptytitle"
(#133) The string key "choosecolorbuttons" is not in the correct order, it should be before "updatenote_title"
(#134) The string key "after" is not in the correct order, it should be before "choosecolorbuttons"
(#140) The string key "activelock" is not in the correct order, it should be before "selectorder"
(#144) Unexpected comment found. Auto-fixing will not work after this comment
(#147) The string key "createcolumn" is not in the correct order, it should be before "editnote"
(#149) The string key "buttondisplaystickycaption" is not in the correct order, it should be before "titledisplaystickycaption"
(#155) Unexpected comment found. Auto-fixing will not work after this comment
(#160) The string key "create_note_pix" is not in the correct order, it should be before "max_notes_reached_pix"
(#161) The string key "create_column_pix" is not in the correct order, it should be before "create_note_pix"
(#163) The string key "delete_column_pix" is not in the correct order, it should be before "edit_column_pix"
(#165) The string key "delete_note_pix" is not in the correct order, it should be before "edit_note_pix"
(#167) The string key "createnotelocked" is not in the correct order, it should be before "move_cross_pix"
(#170) Unexpected comment found. Auto-fixing will not work after this comment
(#171) The string key "eventnotecreated" is not in the correct order, it should be before "votelockedpix"
(#173) The string key "eventnotedeleted" is not in the correct order, it should be before "eventnoteupdated"
(#175) Unexpected comment found. Auto-fixing will not work after this comment
(#178) Unexpected comment found. Auto-fixing will not work after this comment
(#182) The string key "removeallresponse" is not in the correct order, it should be before "resetstickynotesvotes"
(#186) Unexpected comment found. Auto-fixing will not work after this comment
(#187) The string key "privacy:metadata:stickynotes_note" is not in the correct order, it should be before "removevotesresponse"
(#190) The string key "privacy:metadata:stickynotes_note:stickycolid" is not in the correct order, it should be before "privacy:metadata:stickynotes_note:stickyid"
(#192) The string key "privacy:metadata:stickynotes_note:message" is not in the correct order, it should be before "privacy:metadata:stickynotes_note:userid"
(#201) The string key "privacy:metadata:stickynotes_vote:timecreated" is not in the correct order, it should be before "privacy:metadata:stickynotes_vote:vote"
mod/stickynotes/view.php
(#304) Line exceeds 132 characters; contains 162 characters

Javascript coding style problems

(4 errors, 8 warnings)

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

mod/stickynotes/amd/src/dragndrop.js
(#20) @package should be empty. (jsdoc/empty-tags)
(#35) 'sortable' is assigned a value but never used. (no-unused-vars)
(#40) Unexpected space before function parentheses. (space-before-function-paren)
(#40) Expected space or tab after '/**' in comment. (spaced-comment)
(#52) There should be no space after '{'. (@babel/object-curly-spacing)
mod/stickynotes/assets/js_select.js
(#13) Comments should not begin with a lowercase character. (capitalized-comments)
(#15) Comments should not begin with a lowercase character. (capitalized-comments)
(#23) Comments should not begin with a lowercase character. (capitalized-comments)
(#32) Unexpected console statement. (no-console)
(#33) Comments should not begin with a lowercase character. (capitalized-comments)
(#33) Expected space or tab after '//' in comment. (spaced-comment)
(#44) Unexpected console statement. (no-console)

CSS problems

(27 errors, 5 warnings)

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

mod/stickynotes/styles.css
(#135) Unknown property `user-drag` (csstree/validator)
(#134) Expected single space before "{" (block-opening-brace-space-before)
(#63) Expected "#EEE" to be "#eee" (color-hex-case)
(#67) Expected "#FFF" to be "#fff" (color-hex-case)
(#114) Expected "#EEE" to be "#eee" (color-hex-case)
(#57) Expected "#dddd33" to be "#dd3" (color-hex-length)
(#58) Expected "#dddd33" to be "#dd3" (color-hex-length)
(#22) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#23) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#24) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#28) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#29) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#30) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#34) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#35) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#39) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#40) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#45) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#46) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#15) Expected single space after "," in a single-line function (function-comma-space-after)
(#15) Expected single space after "," in a single-line function (function-comma-space-after)
(#15) Expected single space after "," in a single-line function (function-comma-space-after)
(#135) Unexpected unknown property "user-drag" (property-no-unknown)
(#21) Expected newline after "," (selector-list-comma-newline-after)
(#27) Expected newline after "," (selector-list-comma-newline-after)
(#27) Expected newline after "," (selector-list-comma-newline-after)
(#33) Expected newline after "," (selector-list-comma-newline-after)
(#44) Expected newline after "," (selector-list-comma-newline-after)
(#93) Expected newline after "," (selector-list-comma-newline-after)
(#78) Expected indentation of 4 spaces (indentation)
(#79) Expected indentation of 4 spaces (indentation)
(#88) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(6 errors, 0 warnings)

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

mod/stickynotes/externallib.php
(#117) Phpdocs for function mod_stickynotes_external::get_notes_column_select has incomplete parameters list
mod/stickynotes/lib.php
(#445) Phpdocs for function insert_stickynote has incomplete parameters list
(#567) Phpdocs for function delete_stickynote has incomplete parameters list
(#712) Phpdocs for function stickynotes_reset_course_form_definition has incomplete parameters list
(#730) Phpdocs for function stickynotes_reset_course_form_defaults has incomplete parameters list
(#909) Phpdocs for function update_lock has incomplete parameters list

Update savepoints problems

(1 errors, 0 warnings)

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

mod/stickynotes/db/upgrade.php
version 2023101707 has wrong savepoint call with version 2023112307

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 "eslint:amd" 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, 1 warnings)

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

mod/stickynotes/templates/notes_list.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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