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

(71 errors, 12 warnings)

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

lib/editor/atto/plugins/question/db/access.php
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#34) Spaces must be used to indent lines; tabs are not allowed
(#34) Tab found within whitespace
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
lib/editor/atto/plugins/question/lib.php
(#34) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#53) This comment is 75% valid code; is this commented out code?
(#54) Spaces must be used to indent lines; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected at least 4 spaces, found 1
(#55) Spaces must be used to indent lines; tabs are not allowed
(#55) Tab found within whitespace
(#55) Inline comments must start with a capital letter, digit or 3-dots sequence
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Line indented incorrectly; expected at least 4 spaces, found 1
(#55) No space found before comment text; expected "// coursecontext" but found "//coursecontext"
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 4 spaces, found 1
(#56) Expected 1 space before "="; 0 found
(#56) Expected 1 space after "="; 0 found
(#56) Spaces must be used for alignment; tabs are not allowed
(#56) Tab found within whitespace
(#56) Whitespace found at end of line
(#57) Spaces must be used for alignment; tabs are not allowed
(#57) Tab found within whitespace
(#57) Whitespace found at end of line
(#58) Spaces must be used for alignment; tabs are not allowed
(#58) Tab found within whitespace
(#58) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Line indented incorrectly; expected at least 4 spaces, found 1
(#58) No space found before comment text; expected "// usercontextid" but found "//usercontextid"
(#59) Spaces must be used for alignment; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 4 spaces, found 1
(#59) Expected 1 space before "="; 0 found
(#59) Expected 1 space after "="; 0 found
(#60) Spaces must be used for alignment; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 4 spaces, found 1
(#60) Expected 1 space before "="; 0 found
(#60) Expected 1 space after "="; 0 found
(#61) Spaces must be used for alignment; tabs are not allowed
(#61) Tab found within whitespace
(#61) Whitespace found at end of line
(#62) Spaces must be used for alignment; tabs are not allowed
(#62) Tab found within whitespace
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Line indented incorrectly; expected at least 4 spaces, found 1
(#62) No space found before comment text; expected "// config our array of data" but found "//config our array of data"
(#63) Spaces must be used for alignment; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 4 spaces, found 1
(#64) Spaces must be used for alignment; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 4 spaces, found 1
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Spaces must be used for alignment; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected 4 spaces, found 1
(#67) Expected "if (...) {\n"; found "if(...){\n"
(#68) Spaces must be used for alignment; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected at least 8 spaces, found 2
(#68) Expected 1 space before "="; 0 found
(#68) Expected 1 space after "="; 0 found
(#69) Closing brace indented incorrectly; expected 1 spaces, found 4
(#70) Whitespace found at end of line
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) No space found before comment text; expected "// add our disabled param" but found "//add our disabled param"
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Variable "def_config" must not contain underscores.
(#76) Variable "def_config" must not contain underscores.
(#76) Whitespace found at end of line
(#77) Variable "def_config" must not contain underscores.
(#77) Whitespace found at end of line
lib/editor/atto/plugins/question/version.php
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Expected 1 space before "=>"; 0 found
(#34) Expected 1 space after "=>"; 0 found

Javascript coding style problems

(6 errors, 44 warnings)

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

lib/editor/atto/plugins/question/yui/src/button/js/button.js
(#65) Trailing spaces not allowed. (no-trailing-spaces)
(#73) Trailing spaces not allowed. (no-trailing-spaces)
(#81) Missing space before opening brace. (space-before-blocks)
(#86) Missing space before value for key 'icon'. (key-spacing)
(#100) Missing space before opening brace. (space-before-blocks)
(#101) Expected space(s) after "return". (keyword-spacing)
(#104) Missing JSDoc for parameter 'e'. (valid-jsdoc)
(#112) Infix operators must be spaced. (space-infix-ops)
(#120) Expected space or tab after '//' in comment. (spaced-comment)
(#120) Comments should not begin with a lowercase character (capitalized-comments)
(#121) Expected space or tab after '//' in comment. (spaced-comment)
(#122) Expected space(s) after "if". (keyword-spacing)
(#122) Missing space before opening brace. (space-before-blocks)
(#123) A space is required after ','. (comma-spacing)
(#123) Infix operators must be spaced. (space-infix-ops)
(#126) Comments should not begin with a lowercase character (capitalized-comments)
(#126) Expected space or tab after '//' in comment. (spaced-comment)
(#129) Multiple spaces found before 'Y'. (no-multi-spaces)
(#132) Expected space or tab after '//' in comment. (spaced-comment)
(#132) Comments should not begin with a lowercase character (capitalized-comments)
(#156) Duplicate key 'component'. (no-dupe-keys)
(#157) Duplicate key 'defaultflavor'. (no-dupe-keys)
(#158) Expected space or tab after '//' in comment. (spaced-comment)
(#158) Comments should not begin with a lowercase character (capitalized-comments)
(#166) Missing JSDoc for parameter 'e'. (valid-jsdoc)
(#171) Extra space after key '_doInsert'. (key-spacing)
(#171) Missing space before opening brace. (space-before-blocks)
(#177) Identifier 'error_message' is not in camel case. (camelcase)
(#177) Infix operators must be spaced. (space-infix-ops)
(#178) Identifier 'error_found' is not in camel case. (camelcase)
(#180) Comments should not begin with a lowercase character (capitalized-comments)
(#187) Identifier 'error_message' is not in camel case. (camelcase)
(#188) Identifier 'error_found' is not in camel case. (camelcase)
(#189) Expected space or tab after '//' in comment. (spaced-comment)
(#189) Comments should not begin with a lowercase character (capitalized-comments)
(#192) Comments should not begin with a lowercase character (capitalized-comments)
(#199) Identifier 'error_message' is not in camel case. (camelcase)
(#200) Identifier 'error_found' is not in camel case. (camelcase)
(#201) Comments should not begin with a lowercase character (capitalized-comments)
(#201) Expected space or tab after '//' in comment. (spaced-comment)
(#209) Identifier 'error_message' is not in camel case. (camelcase)
(#210) Identifier 'error_found' is not in camel case. (camelcase)
(#211) Comments should not begin with a lowercase character (capitalized-comments)
(#213) Trailing spaces not allowed. (no-trailing-spaces)
(#214) Comments should not begin with a lowercase character (capitalized-comments)
(#223) Comments should not begin with a lowercase character (capitalized-comments)
(#224) Identifier 'error_found' is not in camel case. (camelcase)
(#226) Trailing spaces not allowed. (no-trailing-spaces)
(#229) Identifier 'error_message' is not in camel case. (camelcase)
(#237) There should be no space after '{'. (object-curly-spacing)

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]

lib/editor/atto/plugins/question/lib.php
(#30) Phpdocs for function atto_question_strings_for_js has incomplete parameters list
(#49) Phpdocs for function atto_question_params_for_js has incomplete parameters list

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]

Task "eslint:yui" failed. Use --force to continue.
Problems running grunt

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]