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

(743 errors, 112 warnings)

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

lib/editor/tiny/plugins/snippet/classes/constants.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class constants
(#31) Missing docblock for constant constants::M_COMPONENT
(#33) File must end with a newline character
lib/editor/tiny/plugins/snippet/classes/plugininfo.php
(#34) Missing docblock for class plugininfo
(#36) Missing docblock for function get_available_buttons
(#42) Missing docblock for function get_available_menuitems
(#48) Missing docblock for function get_plugin_configuration_for_context
(#55) Commas (,) must be followed by white space.
(#58) Expected 1 space before "="; 0 found
(#58) Expected 1 space after "="; 0 found
(#59) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) No space found before comment text; expected "// If they don't have permission don't show it" but found "//If they don't have permission don't show it"
(#77) Expected "} else {\n"; found "}else{\n"
(#81) Expected 1 space before "=>"; 0 found
(#81) Expected 1 space after "=>"; 0 found
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) No space found before comment text; expected "// init our return value" but found "//init our return value"
(#93) Expected 1 space before "="; 0 found
(#93) Expected 1 space after "="; 0 found
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) No space found before comment text; expected "// coursecontext" but found "//coursecontext"
(#96) Expected 1 space before "="; 0 found
(#96) Expected 1 space after "="; 0 found
(#98) Inline comments must start with a capital letter, digit or 3-dots sequence
(#98) No space found before comment text; expected "// snippet specific" but found "//snippet specific"
(#99) No space found before comment text; expected "// this has to be established. It will basically be an array of regular expressions" but found "//this has to be established. It will basically be an array of regular expressions"
(#100) No space found before comment text; expected "// each with a title." but found "//each with a title."
(#101) Expected 1 space before "="; 0 found
(#101) Expected 1 space after "="; 0 found
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) No space found before comment text; expected "// Get the snippet count" but found "//Get the snippet count"
(#105) Expected "if (...) {\n"; found "if(...){\n"
(#105) Commas (,) must be followed by white space.
(#107) Expected "} else {\n"; found "}else{\n"
(#111) Inline comments must start with a capital letter, digit or 3-dots sequence
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#111) No space found before comment text; expected "// put our template into a form thats easy to process in JS" but found "//put our template into a form thats easy to process in JS"
(#112) Expected "for (...) {\n"; found "for(...) {\n"
(#112) Expected 1 space before "="; 0 found
(#112) Expected 1 space after "="; 0 found
(#112) Expected 1 space after first semicolon of FOR loop; 0 found
(#112) Expected 1 space before "<"; 0 found
(#112) Expected 1 space after "<"; 0 found
(#112) Expected 1 space before "+"; 0 found
(#112) Expected 1 space after "+"; 0 found
(#112) Expected 1 space after second semicolon of FOR loop; 0 found
(#119) Expected 1 space after "="; 0 found
(#130) Expected 1 space before "="; 0 found
(#130) Expected 1 space after "="; 0 found
(#132) Expected 1 space after "="; 0 found
(#133) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#135) Expected 1 space before "="; 0 found
(#135) Expected 1 space after "="; 0 found
(#137) Expected "if (...) {\n"; found "if(...) {\n"
(#137) Commas (,) must be followed by white space.
(#139) Expected 1 space before "="; 0 found
(#139) Expected 1 space after "="; 0 found
(#144) Variable "display_name" must not contain underscores.
(#144) Commas (,) must be followed by white space.
(#144) Commas (,) must be followed by white space.
(#145) Variable "display_name" must not contain underscores.
(#145) Commas (,) must be followed by white space.
(#145) Commas (,) must be followed by white space.
(#145) Variable "display_name" must not contain underscores.
(#146) Variable "display_name" must not contain underscores.
(#146) Expected 1 space after "="; 0 found
(#146) Variable "display_name" must not contain underscores.
(#148) Expected 1 space before "=>"; 0 found
(#148) Expected 1 space after "=>"; 0 found
(#149) Expected 1 space before "=>"; 0 found
(#149) Expected 1 space after "=>"; 0 found
(#150) Expected 1 space before "=>"; 0 found
(#150) Expected 1 space after "=>"; 0 found
(#151) Expected 1 space before "=>"; 0 found
(#151) Expected 1 space after "=>"; 0 found
(#152) Expected 1 space before "=>"; 0 found
(#152) Expected 1 space after "=>"; 0 found
(#152) Variable "display_name" must not contain underscores.
(#155) Inline comments must start with a capital letter, digit or 3-dots sequence
(#155) No space found before comment text; expected "// set the template index so we can find it easily later." but found "//set the template index so we can find it easily later."
(#157) Expected 1 space before "="; 0 found
(#157) Expected 1 space after "="; 0 found
(#171) Short array syntax must be used to define arrays
(#174) Expected 1 space before "="; 0 found
(#177) Short array syntax must be used to define arrays
(#181) Missing docblock for function fetch_widget_properties
(#182) No space found before comment text; expected "// Now we just have our properties string" but found "//Now we just have our properties string"
(#183) No space found before comment text; expected "// Lets run our regular expression over them" but found "//Lets run our regular expression over them"
(#184) No space found before comment text; expected "// string should be property=value,property=value" but found "//string should be property=value,property=value"
(#185) Inline comments must end in full-stops, exclamation marks, or question marks
(#185) No space found before comment text; expected "// got this regexp from http://stackoverflow.com/questions/168171/regular-expression-for-parsing-name-value-pairs" but found "//got this regexp from http://stackoverflow.com/questions/168171/regular-expression-for-parsing-name-value-pairs"
(#187) Short array syntax must be used to define arrays
(#189) Inline comments must start with a capital letter, digit or 3-dots sequence
(#189) No space found before comment text; expected "// here we match the filter string and split into name array (matches[1]) and value array (matches[2])" but found "//here we match the filter string and split into name array (matches[1]) and value array (matches[2])"
(#190) No space found before comment text; expected "// we then add those to a name value array." but found "//we then add those to a name value array."
(#191) Short array syntax must be used to define arrays
(#195) Inline comments must start with a capital letter, digit or 3-dots sequence
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#195) This comment is 62% valid code; is this commented out code?
(#197) Inline comments must start with a capital letter, digit or 3-dots sequence
(#197) No space found before comment text; expected "// this could be done better, I am sure. WE are removing the quotes from start and end" but found "//this could be done better, I am sure. WE are removing the quotes from start and end"
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) No space found before comment text; expected "// this wil however remove multiple quotes id they exist at start and end. NG really" but found "//this wil however remove multiple quotes id they exist at start and end. NG really"
lib/editor/tiny/plugins/snippet/classes/privacy/provider.php
(#34) There must not be a space before the colon in a return type declaration
lib/editor/tiny/plugins/snippet/classes/settingstools.php
(#34) Whitespace found at end of line
(#35) Missing @copyright tag
(#35) Missing @license tag
(#35) Missing docblock for class settingstools
(#36) Opening brace should be on the same line as the declaration for class settingstools
(#37) Missing docblock for constant settingstools::TINY_SNIPPET_SNIPPET_COUNT
(#37) Line indented incorrectly; expected at least 4 spaces, found 1
(#39) Line indented incorrectly; expected 4 spaces, found 0
(#39) Missing docblock for function fetch_general_items
(#39) Expected 1 space before opening brace; found 0
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 8 spaces, found 1
(#41) Short array syntax must be used to define arrays
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Whitespace found at end of line
(#43) Spaces must be used to indent lines; tabs are not allowed
(#43) Tab found within whitespace
(#43) Line indented incorrectly; expected at least 8 spaces, found 1
(#43) Expected 1 space before "="; 0 found
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 8 spaces, found 4
(#45) Spaces must be used to indent lines; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected at least 8 spaces, found 4
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) Line indented incorrectly; expected at least 8 spaces, found 5
(#46) Commas (,) must be followed by white space.
(#48) Line indented incorrectly; expected at least 8 spaces, found 4
(#50) Line indented incorrectly; expected 4 spaces, found 0
(#52) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) No space found before comment text; expected "// make a readable snippet name for menus and lists etc" but found "//make a readable snippet name for menus and lists etc"
(#53) Missing docblock for function fetch_snippet_title
(#53) Commas (,) must be followed by white space.
(#53) Expected 1 space before opening brace; found 0
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) No space found before comment text; expected "// snippet display name" but found "//snippet display name"
(#55) Expected 1 space before "="; 0 found
(#55) Expected 1 space after "="; 0 found
(#56) Expected "if (...) {\n"; found "if(...){\n"
(#56) Commas (,) must be followed by white space.
(#59) Expected "if (...) {\n"; found "if(...){\n"
(#59) Commas (,) must be followed by white space.
(#62) Expected "if (...) {\n"; found "if(...){"
(#62) Expected 1 space before "="; 0 found
(#62) Expected 1 space after "="; 0 found
(#62) Closing brace must be on a line by itself
(#63) Commas (,) must be followed by white space.
(#68) Line indented incorrectly; expected 4 spaces, found 0
(#68) Missing docblock for function fetch_snippet_pages
(#68) Expected 1 space before opening brace; found 0
(#69) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected at least 8 spaces, found 2
(#69) Short array syntax must be used to define arrays
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Line indented incorrectly; expected at least 8 spaces, found 2
(#71) No space found before comment text; expected "// Add the snippet pages" but found "//Add the snippet pages"
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected 8 spaces, found 2
(#72) Expected "if (...) {\n"; found "if(...){\n"
(#72) Commas (,) must be followed by white space.
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 12 spaces, found 3
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected 8 spaces, found 2
(#74) Expected "} else {\n"; found "}else{\n"
(#75) Spaces must be used to indent lines; tabs are not allowed
(#75) Tab found within whitespace
(#75) Line indented incorrectly; expected at least 12 spaces, found 3
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected 8 spaces, found 2
(#77) Whitespace found at end of line
(#78) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) No space found before comment text; expected "// fetch preset data, just once so we do nto need to repeat the call a zillion times" but found "//fetch preset data, just once so we do nto need to repeat the call a zillion times"
(#80) Whitespace found at end of line
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected 8 spaces, found 2
(#81) Expected "for (...) {\n"; found "for(...){\n"
(#81) Expected 1 space before "="; 0 found
(#81) Expected 1 space after "="; 0 found
(#81) Expected 1 space after first semicolon of FOR loop; 0 found
(#81) Expected 1 space before "<="; 0 found
(#81) Expected 1 space after "<="; 0 found
(#81) Expected 1 space after second semicolon of FOR loop; 0 found
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Whitespace found at end of line
(#83) Spaces must be used to indent lines; tabs are not allowed
(#83) Tab found within whitespace
(#83) Inline comments must start with a capital letter, digit or 3-dots sequence
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) Line indented incorrectly; expected at least 12 spaces, found 4
(#83) No space found before comment text; expected "// snippet display name" but found "//snippet display name"
(#84) Expected 1 space before "="; 0 found
(#84) Expected 1 space after "="; 0 found
(#85) Expected "if (...) {\n"; found "if(...){\n"
(#85) Commas (,) must be followed by white space.
(#86) Spaces must be used to indent lines; tabs are not allowed
(#86) Tab found within whitespace
(#86) Line indented incorrectly; expected at least 16 spaces, found 4
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected 12 spaces, found 3
(#88) Expected "if (...) {\n"; found "if(...){\n"
(#88) Commas (,) must be followed by white space.
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 16 spaces, found 4
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected 12 spaces, found 9
(#90) Closing brace indented incorrectly; expected 3 spaces, found 9
(#91) Spaces must be used to indent lines; tabs are not allowed
(#91) Tab found within whitespace
(#91) Line indented incorrectly; expected 12 spaces, found 3
(#91) Expected "if (...) {\n"; found "if(...){"
(#91) Expected 1 space before "="; 0 found
(#91) Closing brace must be on a line by itself
(#92) Spaces must be used to indent lines; tabs are not allowed
(#92) Tab found within whitespace
(#92) Line indented incorrectly; expected at least 12 spaces, found 3
(#92) Commas (,) must be followed by white space.
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Whitespace found at end of line
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Inline comments must start with a capital letter, digit or 3-dots sequence
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Line indented incorrectly; expected at least 12 spaces, found 4
(#94) No space found before comment text; expected "// snippet settings Page Settings" but found "//snippet settings Page Settings"
(#94) Whitespace found at end of line
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected at least 12 spaces, found 3
(#95) Variable "settings_page" must not contain underscores.
(#95) Commas (,) must be followed by white space.
(#95) Commas (,) must be followed by white space.
(#95) Commas (,) must be followed by white space.
(#96) Whitespace found at end of line
(#96) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Line indented incorrectly; expected at least 12 spaces, found 3
(#98) Variable "settings_page" must not contain underscores.
(#99) Spaces must be used to indent lines; tabs are not allowed
(#99) Tab found within whitespace
(#99) Line indented incorrectly; expected at least 12 spaces, found 4
(#100) Spaces must be used to indent lines; tabs are not allowed
(#100) Tab found within whitespace
(#100) Line indented incorrectly; expected at least 18 spaces, found 3
(#100) Variable "settings_page" must not contain underscores.
(#101) Spaces must be used to indent lines; tabs are not allowed
(#101) Tab found within whitespace
(#101) Line indented incorrectly; expected at least 18 spaces, found 5
(#101) Commas (,) must be followed by white space.
(#101) Commas (,) must be followed by white space.
(#102) Spaces must be used to indent lines; tabs are not allowed
(#102) Tab found within whitespace
(#102) Line indented incorrectly; expected at least 18 spaces, found 3
(#102) Variable "settings_page" must not contain underscores.
(#103) Spaces must be used to indent lines; tabs are not allowed
(#103) Tab found within whitespace
(#103) Line indented incorrectly; expected at least 18 spaces, found 4
(#104) Spaces must be used to indent lines; tabs are not allowed
(#104) Tab found within whitespace
(#104) Line indented incorrectly; expected at least 18 spaces, found 3
(#104) Variable "settings_page" must not contain underscores.
(#105) Spaces must be used to indent lines; tabs are not allowed
(#105) Tab found within whitespace
(#105) Line indented incorrectly; expected at least 18 spaces, found 4
(#106) Spaces must be used to indent lines; tabs are not allowed
(#106) Tab found within whitespace
(#106) Line indented incorrectly; expected at least 18 spaces, found 3
(#106) Variable "settings_page" must not contain underscores.
(#107) Spaces must be used to indent lines; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected at least 18 spaces, found 4
(#108) Spaces must be used to indent lines; tabs are not allowed
(#108) Tab found within whitespace
(#108) Line indented incorrectly; expected at least 18 spaces, found 3
(#108) Variable "settings_page" must not contain underscores.
(#109) Spaces must be used to indent lines; tabs are not allowed
(#109) Tab found within whitespace
(#109) Line indented incorrectly; expected at least 18 spaces, found 4
(#110) Spaces must be used to indent lines; tabs are not allowed
(#110) Tab found within whitespace
(#110) Line indented incorrectly; expected at least 18 spaces, found 3
(#110) Variable "settings_page" must not contain underscores.
(#111) Spaces must be used to indent lines; tabs are not allowed
(#111) Tab found within whitespace
(#111) Line indented incorrectly; expected at least 18 spaces, found 4
(#112) Spaces must be used to indent lines; tabs are not allowed
(#112) Tab found within whitespace
(#112) Line indented incorrectly; expected at least 18 spaces, found 3
(#112) Variable "settings_page" must not contain underscores.
(#113) Spaces must be used to indent lines; tabs are not allowed
(#113) Tab found within whitespace
(#113) Line indented incorrectly; expected at least 18 spaces, found 4
(#114) Whitespace found at end of line
(#115) Spaces must be used to indent lines; tabs are not allowed
(#115) Tab found within whitespace
(#115) Line indented incorrectly; expected at least 18 spaces, found 3
(#115) Variable "settings_page" must not contain underscores.
(#116) Spaces must be used to indent lines; tabs are not allowed
(#116) Tab found within whitespace
(#116) Line indented incorrectly; expected 8 spaces, found 2
(#118) Spaces must be used to indent lines; tabs are not allowed
(#118) Tab found within whitespace
(#118) Line indented incorrectly; expected at least 8 spaces, found 2
(#119) Spaces must be used to indent lines; tabs are not allowed
(#119) Tab found within whitespace
(#119) Line indented incorrectly; expected 4 spaces, found 1
(#119) Closing brace indented incorrectly; expected 0 spaces, found 1
lib/editor/tiny/plugins/snippet/classes/snippetpresets.php
(#23) Missing @copyright tag
(#28) DocBlock missing a @package tag for class snippetpresets. Expected @package tiny_snippet
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#30) Line indented incorrectly; expected at least 4 spaces, found 3
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#39) Line exceeds 132 characters; contains 145 characters
(#43) Commas (,) must be followed by white space.
(#43) Commas (,) must be followed by white space.
(#46) Expected "if (...) {\n"; found "if(...){\n"
(#50) Expected 1 space before "="; 0 found
(#50) Expected 1 space after "="; 0 found
(#51) Expected 1 space before "="; 0 found
(#51) Expected 1 space after "="; 0 found
(#52) Commas (,) must be followed by white space.
(#76) Inline comments must start with a capital letter, digit or 3-dots sequence
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Line indented incorrectly; expected at least 8 spaces, found 4
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) No space found before comment text; expected "// build our select form" but found "//build our select form"
(#89) Short array syntax must be used to define arrays
(#90) Whitespace found at end of line
(#91) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#92) Spaces must be used to indent lines; tabs are not allowed
(#92) Tab found within whitespace
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Line indented incorrectly; expected at least 12 spaces, found 9
(#92) No space found before comment text; expected "// get the template name" but found "//get the template name"
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected 12 spaces, found 9
(#93) Expected "if (...) {\n"; found "if(...){\n"
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Line indented incorrectly; expected at least 16 spaces, found 10
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected 12 spaces, found 9
(#95) Expected "} else {\n"; found "}else{\n"
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected at least 16 spaces, found 10
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected 12 spaces, found 9
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Whitespace found at end of line
(#99) Spaces must be used to indent lines; tabs are not allowed
(#99) Tab found within whitespace
(#99) Inline comments must start with a capital letter, digit or 3-dots sequence
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Line indented incorrectly; expected at least 12 spaces, found 9
(#99) No space found before comment text; expected "// set the name" but found "//set the name"
(#100) Spaces must be used to indent lines; tabs are not allowed
(#100) Tab found within whitespace
(#100) Line indented incorrectly; expected at least 12 spaces, found 9
(#100) Expected 1 space before "="; 0 found
(#100) Expected 1 space after "="; 0 found
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) No space found before comment text; expected "// sort alphabetically the template names" but found "//sort alphabetically the template names"
(#105) Spaces must be used to indent lines; tabs are not allowed
(#105) Tab found within whitespace
(#105) Line indented incorrectly; expected at least 8 spaces, found 2
(#106) Spaces must be used to indent lines; tabs are not allowed
(#106) Tab found within whitespace
(#106) Line indented incorrectly; expected at least 8 spaces, found 2
(#106) Short array syntax must be used to define arrays
(#106) Line exceeds 132 characters; contains 167 characters
(#107) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#109) Spaces must be used to indent lines; tabs are not allowed
(#109) Tab found within whitespace
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Line indented incorrectly; expected at least 8 spaces, found 2
(#109) No space found before comment text; expected "// Add javascript handler for presets" but found "//Add javascript handler for presets"
(#110) Spaces must be used to indent lines; tabs are not allowed
(#110) Tab found within whitespace
(#110) Line indented incorrectly; expected at least 8 spaces, found 2
(#111) Spaces must be used to indent lines; tabs are not allowed
(#111) Tab found within whitespace
(#111) Line indented incorrectly; expected at least 8 spaces, found 5
(#111) Commas (,) must be followed by white space.
(#111) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#111) Expected 1 space before "=>"; 0 found
(#111) Expected 1 space after "=>"; 0 found
(#113) Spaces must be used to indent lines; tabs are not allowed
(#113) Tab found within whitespace
(#113) Line indented incorrectly; expected at least 8 spaces, found 2
(#113) Commas (,) must be followed by white space.
(#113) Commas (,) must be followed by white space.
(#113) Commas (,) must be followed by white space.
(#114) Spaces must be used to indent lines; tabs are not allowed
(#114) Tab found within whitespace
(#114) Whitespace found at end of line
(#115) Spaces must be used to indent lines; tabs are not allowed
(#115) Tab found within whitespace
(#115) Line indented incorrectly; expected at least 8 spaces, found 2
(#115) Commas (,) must be followed by white space.
(#115) Commas (,) must be followed by white space.
(#115) Commas (,) must be followed by white space.
(#115) Short array syntax must be used to define arrays
(#115) Line exceeds 132 characters; contains 153 characters
(#116) Spaces must be used to indent lines; tabs are not allowed
(#116) Tab found within whitespace
(#116) Line indented incorrectly; expected at least 8 spaces, found 3
(#117) Spaces must be used to indent lines; tabs are not allowed
(#117) Tab found within whitespace
(#117) Whitespace found at end of line
(#118) Spaces must be used to indent lines; tabs are not allowed
(#118) Tab found within whitespace
(#118) Line indented incorrectly; expected at least 8 spaces, found 2
(#119) Spaces must be used to indent lines; tabs are not allowed
(#119) Tab found within whitespace
(#119) Line indented incorrectly; expected at least 8 spaces, found 3
(#120) Spaces must be used to indent lines; tabs are not allowed
(#120) Tab found within whitespace
(#120) Line indented incorrectly; expected at least 8 spaces, found 3
(#120) Commas (,) must be followed by white space.
(#121) Spaces must be used to indent lines; tabs are not allowed
(#121) Tab found within whitespace
(#121) Line indented incorrectly; expected 4 spaces, found 1
(#121) Closing brace indented incorrectly; expected 4 spaces, found 1
(#122) Whitespace found at end of line
(#123) Line indented incorrectly; expected 4 spaces, found 8
(#123) Missing docblock for function parse_preset_template
(#123) Expected 1 space before opening brace; found 0
(#124) Expected 1 space before "="; 0 found
(#124) Expected 1 space after "="; 0 found
(#126) Line indented incorrectly; expected 8 spaces, found 12
(#126) Expected "while (...) {\n"; found "while(...){\n"
(#128) Line indented incorrectly; expected 8 spaces, found 12
(#129) Variable "preset_object" must not contain underscores.
(#130) Line indented incorrectly; expected 8 spaces, found 12
(#130) Expected "if (...) {\n"; found "if(...){\n"
(#130) Variable "preset_object" must not contain underscores.
(#130) Variable "preset_object" must not contain underscores.
(#131) Variable "preset_object" must not contain underscores.
(#132) Line indented incorrectly; expected 8 spaces, found 12
(#132) Expected "} else {\n"; found "}else{\n"
(#134) Line indented incorrectly; expected 8 spaces, found 12
(#135) Line indented incorrectly; expected 4 spaces, found 8
(#138) Line indented incorrectly; expected 4 spaces, found 8
(#138) Missing docblock for function fetch_presets
(#138) Expected 1 space before opening brace; found 0
(#139) Commas (,) must be followed by white space.
(#140) Spaces must be used to indent lines; tabs are not allowed
(#140) Tab found within whitespace
(#140) Inline comments must start with a capital letter, digit or 3-dots sequence
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) Line indented incorrectly; expected at least 8 spaces, found 3
(#140) No space found before comment text; expected "// init return array" but found "//init return array"
(#141) Short array syntax must be used to define arrays
(#142) Expected 1 space before "="; 0 found
(#142) Expected 1 space after "="; 0 found
(#142) Short array syntax must be used to define arrays
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) No space found before comment text; expected "// we search the snippets "presets" and the themes "snippet" folders for presets" but found "//we search the snippets "presets" and the themes "snippet" folders for presets"
(#145) Variable "snippet_presets_dir" must not contain underscores.
(#145) Expected 1 space before "="; 0 found
(#145) Expected 1 space after "="; 0 found
(#146) Variable "theme_snippets_dir" must not contain underscores.
(#146) Expected 1 space before "="; 0 found
(#146) Expected 1 space after "="; 0 found
(#147) Line indented incorrectly; expected 8 spaces, found 12
(#147) Expected "if (...) {\n"; found "if(...) {\n"
(#147) Variable "snippet_presets_dir" must not contain underscores.
(#148) Variable "snippet_presets_dir" must not contain underscores.
(#149) Line indented incorrectly; expected 8 spaces, found 12
(#150) Line indented incorrectly; expected 8 spaces, found 12
(#150) Expected "if (...) {\n"; found "if(...) {\n"
(#150) Variable "theme_snippets_dir" must not contain underscores.
(#151) Variable "theme_snippets_dir" must not contain underscores.
(#152) Line indented incorrectly; expected 8 spaces, found 12
(#153) Line indented incorrectly; expected 8 spaces, found 12
(#153) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#154) Line indented incorrectly; expected 12 spaces, found 16
(#155) Line indented incorrectly; expected 16 spaces, found 20
(#157) Line indented incorrectly; expected 20 spaces, found 24
(#159) Line indented incorrectly; expected 20 spaces, found 24
(#160) Line indented incorrectly; expected 16 spaces, found 20
(#161) Line indented incorrectly; expected 12 spaces, found 16
(#162) Line indented incorrectly; expected 8 spaces, found 12
(#164) Spaces must be used to indent lines; tabs are not allowed
(#164) Tab found within whitespace
(#164) Line indented incorrectly; expected 4 spaces, found 2
(#164) Closing brace indented incorrectly; expected 8 spaces, found 2
(#165) Spaces must be used to indent lines; tabs are not allowed
(#165) Tab found within whitespace
(#165) Whitespace found at end of line
(#166) Spaces must be used to indent lines; tabs are not allowed
(#166) Tab found within whitespace
(#166) Line indented incorrectly; expected 4 spaces, found 2
(#166) Missing docblock for function set_preset_to_config
(#166) Expected 1 space before opening brace; found 0
(#167) Spaces must be used to indent lines; tabs are not allowed
(#167) Tab found within whitespace
(#167) Line indented incorrectly; expected at least 8 spaces, found 3
(#167) Short array syntax must be used to define arrays
(#168) Spaces must be used to indent lines; tabs are not allowed
(#168) Tab found within whitespace
(#168) Line indented incorrectly; expected at least 8 spaces, found 3
(#168) Expected 1 space before "="; 0 found
(#168) Expected 1 space after "="; 0 found
(#169) Spaces must be used to indent lines; tabs are not allowed
(#169) Tab found within whitespace
(#169) Line indented incorrectly; expected at least 8 spaces, found 3
(#169) Expected 1 space before "="; 0 found
(#169) Expected 1 space after "="; 0 found
(#170) Spaces must be used to indent lines; tabs are not allowed
(#170) Tab found within whitespace
(#170) Line indented incorrectly; expected at least 8 spaces, found 3
(#170) Expected 1 space before "="; 0 found
(#170) Expected 1 space after "="; 0 found
(#171) Spaces must be used to indent lines; tabs are not allowed
(#171) Tab found within whitespace
(#171) Line indented incorrectly; expected at least 8 spaces, found 3
(#171) Expected 1 space before "="; 0 found
(#171) Expected 1 space after "="; 0 found
(#172) Spaces must be used to indent lines; tabs are not allowed
(#172) Tab found within whitespace
(#172) Line indented incorrectly; expected at least 8 spaces, found 3
(#172) Expected 1 space before "="; 0 found
(#172) Expected 1 space after "="; 0 found
(#173) Spaces must be used to indent lines; tabs are not allowed
(#173) Tab found within whitespace
(#173) Line indented incorrectly; expected at least 8 spaces, found 3
(#173) Expected 1 space before "="; 0 found
(#173) Expected 1 space after "="; 0 found
(#174) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#175) Spaces must be used to indent lines; tabs are not allowed
(#175) Tab found within whitespace
(#175) Whitespace found at end of line
(#176) Spaces must be used to indent lines; tabs are not allowed
(#176) Tab found within whitespace
(#176) Line indented incorrectly; expected 8 spaces, found 3
(#176) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#176) Expected 1 space before "=>"; 0 found
(#176) Expected 1 space after "=>"; 0 found
(#176) Expected 1 space before "=>"; 0 found
(#176) Expected 1 space after "=>"; 0 found
(#177) Spaces must be used to indent lines; tabs are not allowed
(#177) Tab found within whitespace
(#177) Line indented incorrectly; expected 12 spaces, found 4
(#177) Expected "if (...) {\n"; found "if(...){\n"
(#177) Commas (,) must be followed by white space.
(#178) Spaces must be used to indent lines; tabs are not allowed
(#178) Tab found within whitespace
(#178) Line indented incorrectly; expected at least 16 spaces, found 5
(#178) Expected 1 space before "="; 0 found
(#178) Expected 1 space after "="; 0 found
(#179) Spaces must be used to indent lines; tabs are not allowed
(#179) Tab found within whitespace
(#179) Line indented incorrectly; expected 12 spaces, found 4
(#179) Expected "} else {\n"; found "}else{\n"
(#180) Spaces must be used to indent lines; tabs are not allowed
(#180) Tab found within whitespace
(#180) Line indented incorrectly; expected at least 16 spaces, found 5
(#180) Expected 1 space before "="; 0 found
(#180) Expected 1 space after "="; 0 found
(#181) Spaces must be used to indent lines; tabs are not allowed
(#181) Tab found within whitespace
(#181) Line indented incorrectly; expected 12 spaces, found 4
(#182) Spaces must be used to indent lines; tabs are not allowed
(#182) Tab found within whitespace
(#182) Line indented incorrectly; expected at least 12 spaces, found 4
(#183) Spaces must be used to indent lines; tabs are not allowed
(#183) Tab found within whitespace
(#183) Line indented incorrectly; expected 8 spaces, found 3
(#184) Spaces must be used to indent lines; tabs are not allowed
(#184) Tab found within whitespace
(#184) Line indented incorrectly; expected 4 spaces, found 2
(#185) File must end with a newline character
lib/editor/tiny/plugins/snippet/classes/snippettable.php
(#23) Missing @copyright tag
(#28) DocBlock missing a @package tag for class snippettable. Expected @package tiny_snippet
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#35) Line exceeds 132 characters; contains 145 characters
(#41) Expected 1 space before "="; 0 found
(#41) Expected 1 space after "="; 0 found
(#42) Expected 1 space before "="; 0 found
(#42) Expected 1 space after "="; 0 found
(#43) Commas (,) must be followed by white space.
(#67) Inline comments must start with a capital letter, digit or 3-dots sequence
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Line indented incorrectly; expected at least 8 spaces, found 4
(#78) Variable "snippet_details" must not contain underscores.
(#79) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#84) Short array syntax must be used to define arrays
(#88) There should be a comma after the last array item in a multi-line array.
(#90) Short array syntax must be used to define arrays
(#90) Commas (,) must be followed by white space.
(#90) Commas (,) must be followed by white space.
(#90) Commas (,) must be followed by white space.
(#91) Short array syntax must be used to define arrays
(#92) Commas (,) must be followed by white space.
(#92) There should be a comma after the last array item in a multi-line array.
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) No space found before comment text; expected "// loop through snippets and add to table" but found "//loop through snippets and add to table"
(#96) Variable "snippet_details" must not contain underscores.
(#98) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#106) This comment is 69% valid code; is this commented out code?
(#106) Line indented incorrectly; expected at least 12 spaces, found 8
(#110) Line indented incorrectly; expected at least 12 spaces, found 8
(#111) Short array syntax must be used to define arrays
(#112) Commas (,) must be followed by white space.
(#112) There should be a comma after the last array item in a multi-line array.
(#117) Variable "snippet_table" must not contain underscores.
(#117) Expected 1 space before "="; 0 found
(#118) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#120) Spaces must be used to indent lines; tabs are not allowed
(#120) Tab found within whitespace
(#120) Line indented incorrectly; expected at least 8 spaces, found 2
(#121) Spaces must be used to indent lines; tabs are not allowed
(#121) Tab found within whitespace
(#121) Line indented incorrectly; expected at least 8 spaces, found 3
(#121) Variable "snippet_table" must not contain underscores.
(#122) Spaces must be used to indent lines; tabs are not allowed
(#122) Tab found within whitespace
(#122) Line indented incorrectly; expected at least 8 spaces, found 3
(#122) Commas (,) must be followed by white space.
(#123) Spaces must be used to indent lines; tabs are not allowed
(#123) Tab found within whitespace
(#123) Line indented incorrectly; expected 4 spaces, found 1
(#123) Closing brace indented incorrectly; expected 4 spaces, found 1
(#124) Whitespace found at end of line
(#127) Line indented incorrectly; expected 4 spaces, found 5
(#127) Missing docblock for function fetch_snippet_details
(#127) Expected 1 space before opening brace; found 0
(#129) Spaces must be used to indent lines; tabs are not allowed
(#129) Tab found within whitespace
(#129) Line indented incorrectly; expected at least 8 spaces, found 3
(#129) Short array syntax must be used to define arrays
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) No space found before comment text; expected "// Add the snippet pages" but found "//Add the snippet pages"
(#132) Line indented incorrectly; expected 8 spaces, found 12
(#132) Expected "if (...) {\n"; found "if(...){\n"
(#132) Commas (,) must be followed by white space.
(#134) Line indented incorrectly; expected 8 spaces, found 12
(#134) Expected "} else {\n"; found "}else{\n"
(#136) Line indented incorrectly; expected 8 spaces, found 12
(#138) Line indented incorrectly; expected 8 spaces, found 12
(#138) Expected "for (...) {\n"; found "for(...) {\n"
(#138) Expected 1 space before "="; 0 found
(#138) Expected 1 space after "="; 0 found
(#138) Expected 1 space after first semicolon of FOR loop; 0 found
(#138) Expected 1 space before "<="; 0 found
(#138) Expected 1 space after "<="; 0 found
(#138) Expected 1 space after second semicolon of FOR loop; 0 found
(#139) Variable "snippet_details" must not contain underscores.
(#140) Variable "snippet_details" must not contain underscores.
(#142) Variable "snippet_details" must not contain underscores.
(#143) Line indented incorrectly; expected 12 spaces, found 16
(#143) Expected "if (...) {\n"; found "if(...){\n"
(#143) Commas (,) must be followed by white space.
(#144) Variable "snippet_details" must not contain underscores.
(#145) Line indented incorrectly; expected 12 spaces, found 16
(#146) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#148) Variable "snippet_details" must not contain underscores.
(#148) Expected 1 space after "="; 0 found
(#149) Line indented incorrectly; expected 12 spaces, found 16
(#149) Expected "if (...) {\n"; found "if(...) {\n"
(#149) Commas (,) must be followed by white space.
(#150) Variable "snippet_details" must not contain underscores.
(#151) Line indented incorrectly; expected 12 spaces, found 16
(#153) Variable "snippet_details" must not contain underscores.
(#153) Short array syntax must be used to define arrays
(#153) Expected 1 space before "=>"; 0 found
(#153) Line exceeds 132 characters; contains 138 characters
(#154) Expected 1 space before "="; 0 found
(#154) Expected 1 space after "="; 0 found
(#154) Variable "snippet_details" must not contain underscores.
(#155) Line indented incorrectly; expected 8 spaces, found 12
(#157) Spaces must be used to indent lines; tabs are not allowed
(#157) Tab found within whitespace
(#157) Line indented incorrectly; expected 4 spaces, found 2
(#157) Closing brace indented incorrectly; expected 5 spaces, found 2
(#158) File must end with a newline character
lib/editor/tiny/plugins/snippet/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#38) There should be a comma after the last array item in a multi-line array.
(#39) There should be a comma after the last array item in a multi-line array.
(#47) There should be a comma after the last array item in a multi-line array.
lib/editor/tiny/plugins/snippet/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 4 spaces, found 1
(#32) Short array syntax must be used to define arrays
(#32) Commas (,) must be followed by white space.
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 4 spaces, found 1
(#33) Expected 1 space before "="; 0 found
(#33) Expected 1 space after "="; 0 found
(#34) Spaces must be used to indent lines; tabs are not allowed
(#34) Tab found within whitespace
(#34) Line indented incorrectly; expected 4 spaces, found 1
(#34) Expected "foreach (...) {\n"; found "foreach(...){\t\t\t\n"
(#34) Spaces must be used for alignment; tabs are not allowed
(#34) Tab found within whitespace
(#34) Whitespace found at end of line
(#35) Spaces must be used to indent lines; tabs are not allowed
(#35) Tab found within whitespace
(#35) Line indented incorrectly; expected 8 spaces, found 2
(#35) Expected "if (...) {\n"; found "if(...){\n"
(#35) Commas (,) must be followed by white space.
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected at least 12 spaces, found 3
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Line indented incorrectly; expected at least 12 spaces, found 3
(#37) No space found before comment text; expected "// set the config" but found "//set the config"
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 12 spaces, found 3
(#38) Commas (,) must be followed by white space.
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected 8 spaces, found 2
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected 4 spaces, found 1
(#40) Spaces must be used for alignment; tabs are not allowed
(#40) Whitespace found at end of line
lib/editor/tiny/plugins/snippet/lang/en/tiny_snippet.php
(#34) The string key "createsnippet" is not in the correct order, it should be before "snippet:visible"
(#36) The string key "browse" is not in the correct order, it should be before "settings"
(#38) The string key "nothingtoinsert" is not in the correct order, it should be before "visible"
(#39) The string key "dialogtitle" is not in the correct order, it should be before "nothingtoinsert"
(#41) The string key "cancel" is not in the correct order, it should be before "insert"
(#43) The string key "defaultflavor" is not in the correct order, it should be before "enterflavor"
(#46) The string key "chooseinsert" is not in the correct order, it should be before "nofieldsheader"
(#47) The string key "snippet:visible" is duplicated
(#49) The string key "privacy:metadata" is duplicated
(#50) The string key "insert" is duplicated
(#51) The string key "back" is not in the correct order, it should be before "snippet:use"
(#54) The string key "snippet" is not in the correct order, it should be before "widgetsselector_instructions"
(#56) The string key "snippetinstructions" is not in the correct order, it should be before "snippetname"
(#59) The string key "defaults" is not in the correct order, it should be before "snippetversion"
(#60) The string key "bundle" is not in the correct order, it should be before "defaults"
(#63) The string key "presets" is not in the correct order, it should be before "snippetcount_desc"
(#66) The string key "generalsettings" is not in the correct order, it should be before "snippetpageheading"
lib/editor/tiny/plugins/snippet/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Line 7 of the opening comment must start "//".
(#13) Line 12 of the opening comment must start "//".
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#30) Line indented incorrectly; expected at least 4 spaces, found 1
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) No space found before comment text; expected "// use this to put it all in a category" but found "//use this to put it all in a category"
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 4 spaces, found 1
(#33) Variable "tiny_category" must not contain underscores.
(#33) Expected 1 space before "="; 0 found
(#33) Expected 1 space after "="; 0 found
(#34) Variable "tiny_category" must not contain underscores.
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) No space found before comment text; expected "// use this to put it all on one page" but found "//use this to put it all on one page"
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Line indented incorrectly; expected at least 4 spaces, found 3
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) No space found before comment text; expected "// General settings" but found "//General settings"
(#41) Variable "general_settings" must not contain underscores.
(#41) Commas (,) must be followed by white space.
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) No space found before comment text; expected "// add basic items to page, snippet count really" but found "//add basic items to page, snippet count really"
(#44) Variable "general_items" must not contain underscores.
(#44) Expected 1 space after "="; 2 found
(#45) Variable "general_items" must not contain underscores.
(#45) Variable "general_item" must not contain underscores.
(#46) Variable "general_settings" must not contain underscores.
(#46) Variable "general_item" must not contain underscores.
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) No space found before comment text; expected "// add table of templates to page" but found "//add table of templates to page"
(#50) Variable "snippettable_item" must not contain underscores.
(#50) Expected 1 space after "="; 2 found
(#52) Variable "general_settings" must not contain underscores.
(#52) Variable "snippettable_item" must not contain underscores.
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) No space found before comment text; expected "// add page to category" but found "//add page to category"
(#55) Variable "tiny_category" must not contain underscores.
(#55) Commas (,) must be followed by white space.
(#55) Variable "general_settings" must not contain underscores.
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) No space found before comment text; expected "// add Snippets pages to category (hidden from nav)" but found "//add Snippets pages to category (hidden from nav)"
(#58) Variable "snippet_pages" must not contain underscores.
(#58) Expected 1 space after "="; 2 found
(#59) Variable "snippet_pages" must not contain underscores.
(#59) Variable "snippet_page" must not contain underscores.
(#60) Variable "tiny_category" must not contain underscores.
(#60) Variable "snippet_page" must not contain underscores.
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) No space found before comment text; expected "// set the default return to null" but found "//set the default return to null"
(#64) Expected 1 space before "="; 0 found
(#64) Expected 1 space after "="; 0 found
(#66) File must end with a newline character
lib/editor/tiny/plugins/snippet/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) No space found before comment text; expected "// Moodle 4.1.0" but found "//Moodle 4.1.0"

Javascript coding style problems

(261 errors, 182 warnings)

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

lib/editor/tiny/plugins/snippet/amd/src/commands.js
(#31) Identifier 'widget_selector' is not in camel case. (camelcase)
(#38) 'handleAction' is assigned a value but never used. (no-unused-vars)
(#70) Expected space(s) after "if". (keyword-spacing)
(#76) Identifier 'widget_selector' is not in camel case. (camelcase)
(#84) Identifier 'widget_selector' is not in camel case. (camelcase)
lib/editor/tiny/plugins/snippet/amd/src/configuration.js
(#24) Expected space(s) before "from". (keyword-spacing)
lib/editor/tiny/plugins/snippet/amd/src/plugin.js
(#33) Promise executor functions should not be async. (no-async-promise-executor)
lib/editor/tiny/plugins/snippet/amd/src/template_presets_amd.js
(#2) A space is required after ','. (comma-spacing)
(#10) Unexpected tab character. (no-tabs)
(#10) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#11) Unexpected tab character. (no-tabs)
(#11) Trailing spaces not allowed. (no-trailing-spaces)
(#11) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#12) Unexpected tab character. (no-tabs)
(#12) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#12) A space is required after ','. (comma-spacing)
(#12) A space is required after ','. (comma-spacing)
(#12) A space is required after ','. (comma-spacing)
(#14) Unexpected tab character. (no-tabs)
(#14) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#15) Unexpected tab character. (no-tabs)
(#15) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#15) Unexpected tab character. (no-tabs)
(#17) Unexpected tab character. (no-tabs)
(#17) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#18) Unexpected tab character. (no-tabs)
(#18) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#19) Unexpected tab character. (no-tabs)
(#19) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#20) Unexpected tab character. (no-tabs)
(#20) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#21) Unexpected tab character. (no-tabs)
(#21) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#22) Unexpected tab character. (no-tabs)
(#22) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#23) Unexpected tab character. (no-tabs)
(#23) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#24) Unexpected tab character. (no-tabs)
(#24) Trailing spaces not allowed. (no-trailing-spaces)
(#24) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#25) Unexpected tab character. (no-tabs)
(#25) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#25) Missing space before opening brace. (space-before-blocks)
(#26) Unexpected tab character. (no-tabs)
(#26) Operator '=' must be spaced. (space-infix-ops)
(#27) Unexpected tab character. (no-tabs)
(#27) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#28) Unexpected tab character. (no-tabs)
(#28) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#28) Unexpected space before function parentheses. (space-before-function-paren)
(#29) Unexpected tab character. (no-tabs)
(#29) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#29) Operator '=' must be spaced. (space-infix-ops)
(#30) Unexpected tab character. (no-tabs)
(#30) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#31) Unexpected tab character. (no-tabs)
(#31) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#32) Unexpected tab character. (no-tabs)
(#32) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#33) Unexpected tab character. (no-tabs)
(#33) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#34) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#34) Unexpected tab character. (no-tabs)
(#34) Unreachable code. (no-unreachable)
(#35) Unexpected tab character. (no-tabs)
(#35) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#36) Unexpected tab character. (no-tabs)
(#36) Trailing spaces not allowed. (no-trailing-spaces)
(#36) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#37) Unexpected tab character. (no-tabs)
(#37) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#37) Missing space before opening brace. (space-before-blocks)
(#38) Unexpected tab character. (no-tabs)
(#39) Unexpected tab character. (no-tabs)
(#39) Expected space(s) after "if". (keyword-spacing)
(#39) Operator '==' must be spaced. (space-infix-ops)
(#39) Requires a space after '{'. (block-spacing)
(#39) Statement inside of curly braces should be on next line. (brace-style)
(#39) Missing space before opening brace. (space-before-blocks)
(#39) Requires a space before '}'. (block-spacing)
(#39) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#40) Unexpected tab character. (no-tabs)
(#40) A space is required after ','. (comma-spacing)
(#41) Unexpected tab character. (no-tabs)
(#41) Trailing spaces not allowed. (no-trailing-spaces)
(#42) Unexpected tab character. (no-tabs)
(#43) Unexpected tab character. (no-tabs)
(#44) Unexpected tab character. (no-tabs)
(#44) ["key"] is better written in dot notation. (dot-notation)
(#46) Unexpected tab character. (no-tabs)
(#47) Unexpected tab character. (no-tabs)
(#48) Unexpected tab character. (no-tabs)
(#49) Unexpected tab character. (no-tabs)
(#50) Unexpected tab character. (no-tabs)
(#50) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#51) Unexpected tab character. (no-tabs)
(#52) Unexpected tab character. (no-tabs)
(#53) Unexpected tab character. (no-tabs)
(#54) Unexpected tab character. (no-tabs)
(#54) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#56) Unexpected tab character. (no-tabs)
(#56) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#56) Unexpected space before function parentheses. (space-before-function-paren)
(#57) Unexpected tab character. (no-tabs)
(#57) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#57) Comments should not begin with a lowercase character. (capitalized-comments)
(#57) Expected space or tab after '//' in comment. (spaced-comment)
(#58) Unexpected tab character. (no-tabs)
(#58) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#60) Unexpected tab character. (no-tabs)
(#60) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#60) Comments should not begin with a lowercase character. (capitalized-comments)
(#60) Expected space or tab after '//' in comment. (spaced-comment)
(#61) Unexpected tab character. (no-tabs)
(#61) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#61) Expected space(s) after "if". (keyword-spacing)
(#61) Requires a space after '{'. (block-spacing)
(#61) Statement inside of curly braces should be on next line. (brace-style)
(#61) Missing space before opening brace. (space-before-blocks)
(#61) Requires a space before '}'. (block-spacing)
(#61) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#62) Unexpected tab character. (no-tabs)
(#62) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#62) Expected space(s) after "if". (keyword-spacing)
(#62) Operator '==' must be spaced. (space-infix-ops)
(#62) Missing space before opening brace. (space-before-blocks)
(#63) Unexpected tab character. (no-tabs)
(#63) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#63) Unexpected tab character. (no-tabs)
(#63) Comments should not begin with a lowercase character. (capitalized-comments)
(#63) Expected space or tab after '//' in comment. (spaced-comment)
(#64) Unexpected tab character. (no-tabs)
(#64) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#64) Expected space(s) before "else". (keyword-spacing)
(#64) Expected space(s) after "else". (keyword-spacing)
(#65) Unexpected tab character. (no-tabs)
(#65) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#65) Comments should not begin with a lowercase character. (capitalized-comments)
(#65) Expected space or tab after '//' in comment. (spaced-comment)
(#66) Unexpected tab character. (no-tabs)
(#66) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#66) Unexpected tab character. (no-tabs)
(#66) Multiple spaces found before '='. (no-multi-spaces)
(#66) Operator '=' must be spaced. (space-infix-ops)
(#67) Unexpected tab character. (no-tabs)
(#67) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#68) Unexpected tab character. (no-tabs)
(#68) Trailing spaces not allowed. (no-trailing-spaces)
(#68) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#69) Unexpected tab character. (no-tabs)
(#69) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#70) Unexpected tab character. (no-tabs)
(#70) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#70) Unexpected space before function parentheses. (space-before-function-paren)
(#71) Unexpected tab character. (no-tabs)
(#71) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#71) Comments should not begin with a lowercase character. (capitalized-comments)
(#72) Unexpected tab character. (no-tabs)
(#72) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#72) Expected space or tab after '//' in comment. (spaced-comment)
(#73) Unexpected tab character. (no-tabs)
(#73) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#73) Expected space or tab after '//' in comment. (spaced-comment)
(#74) Unexpected tab character. (no-tabs)
(#74) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#75) Unexpected tab character. (no-tabs)
(#75) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#76) Unexpected tab character. (no-tabs)
(#76) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#76) Expected space(s) before "else". (keyword-spacing)
(#76) Expected space(s) after "else". (keyword-spacing)
(#77) Unexpected tab character. (no-tabs)
(#77) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#77) Unexpected tab character. (no-tabs)
(#77) Expected space(s) after "switch". (keyword-spacing)
(#77) Missing space before opening brace. (space-before-blocks)
(#78) Unexpected tab character. (no-tabs)
(#78) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#78) Unexpected tab character. (no-tabs)
(#79) Unexpected tab character. (no-tabs)
(#79) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#79) Unexpected tab character. (no-tabs)
(#79) Operator '=' must be spaced. (space-infix-ops)
(#80) Unexpected tab character. (no-tabs)
(#80) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#80) Unexpected tab character. (no-tabs)
(#81) Unexpected tab character. (no-tabs)
(#81) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#81) Unexpected tab character. (no-tabs)
(#82) Unexpected tab character. (no-tabs)
(#82) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#82) Unexpected tab character. (no-tabs)
(#82) Operator '=' must be spaced. (space-infix-ops)
(#83) Unexpected tab character. (no-tabs)
(#83) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#83) Unexpected tab character. (no-tabs)
(#84) Unexpected tab character. (no-tabs)
(#84) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#85) Unexpected tab character. (no-tabs)
(#85) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#86) Unexpected tab character. (no-tabs)
(#86) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#88) Unexpected tab character. (no-tabs)
(#88) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#90) Unexpected tab character. (no-tabs)
(#90) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#90) Missing space before opening brace. (space-before-blocks)
(#91) Unexpected tab character. (no-tabs)
(#91) A space is required after ','. (comma-spacing)
(#91) A space is required after ','. (comma-spacing)
(#92) Unexpected tab character. (no-tabs)
(#92) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#93) Unexpected tab character. (no-tabs)
(#93) Trailing spaces not allowed. (no-trailing-spaces)
(#94) Unexpected tab character. (no-tabs)
(#94) Comments should not begin with a lowercase character. (capitalized-comments)
(#95) Unexpected tab character. (no-tabs)
(#96) Unexpected tab character. (no-tabs)
(#97) Unexpected tab character. (no-tabs)
(#97) Operator '=' must be spaced. (space-infix-ops)
(#97) ["templateindex"] is better written in dot notation. (dot-notation)
(#98) Unexpected tab character. (no-tabs)
(#98) Operator '=' must be spaced. (space-infix-ops)
(#99) Unexpected tab character. (no-tabs)
(#100) Unexpected tab character. (no-tabs)
(#101) Unexpected tab character. (no-tabs)
(#103) Unexpected tab character. (no-tabs)
(#104) Unexpected tab character. (no-tabs)
(#104) Comments should not begin with a lowercase character. (capitalized-comments)
(#104) Expected space or tab after '//' in comment. (spaced-comment)
(#105) Unexpected tab character. (no-tabs)
(#105) Missing space before opening brace. (space-before-blocks)
(#106) Unexpected tab character. (no-tabs)
(#106) ["templateindex"] is better written in dot notation. (dot-notation)
(#106) A space is required after ','. (comma-spacing)
(#107) Unexpected tab character. (no-tabs)
(#108) Unexpected tab character. (no-tabs)
(#108) Trailing spaces not allowed. (no-trailing-spaces)
(#109) Unexpected tab character. (no-tabs)
(#109) Comments should not begin with a lowercase character. (capitalized-comments)
(#109) Expected space or tab after '//' in comment. (spaced-comment)
(#110) Unexpected tab character. (no-tabs)
(#110) Operator '=' must be spaced. (space-infix-ops)
(#110) ["templateindex"] is better written in dot notation. (dot-notation)
(#111) Unexpected tab character. (no-tabs)
(#111) Trailing spaces not allowed. (no-trailing-spaces)
(#112) Unexpected tab character. (no-tabs)
(#112) Comments should not begin with a lowercase character. (capitalized-comments)
(#112) Expected space or tab after '//' in comment. (spaced-comment)
(#113) Unexpected tab character. (no-tabs)
(#114) Unexpected tab character. (no-tabs)
(#114) ["templateindex"] is better written in dot notation. (dot-notation)
(#115) Unexpected tab character. (no-tabs)
(#116) Unexpected tab character. (no-tabs)
(#116) Trailing spaces not allowed. (no-trailing-spaces)
(#117) Unexpected tab character. (no-tabs)
(#117) Trailing spaces not allowed. (no-trailing-spaces)
(#118) Unexpected tab character. (no-tabs)
(#118) Comments should not begin with a lowercase character. (capitalized-comments)
(#118) Expected space or tab after '//' in comment. (spaced-comment)
(#119) Unexpected tab character. (no-tabs)
(#120) Unexpected tab character. (no-tabs)
(#120) Trailing spaces not allowed. (no-trailing-spaces)
(#121) Unexpected tab character. (no-tabs)
(#122) Unexpected tab character. (no-tabs)
(#123) Unexpected tab character. (no-tabs)
(#124) Unexpected tab character. (no-tabs)
(#124) Trailing spaces not allowed. (no-trailing-spaces)
(#125) Unexpected tab character. (no-tabs)
(#126) Unexpected tab character. (no-tabs)
(#126) Trailing spaces not allowed. (no-trailing-spaces)
(#127) Unexpected tab character. (no-tabs)
(#128) Unexpected tab character. (no-tabs)
(#129) Unexpected tab character. (no-tabs)
(#130) Unexpected tab character. (no-tabs)
(#130) Trailing spaces not allowed. (no-trailing-spaces)
(#131) Unexpected tab character. (no-tabs)
(#133) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#133) Unexpected tab character. (no-tabs)
(#133) Comments should not begin with a lowercase character. (capitalized-comments)
(#133) Expected space or tab after '//' in comment. (spaced-comment)
(#134) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#134) Unexpected tab character. (no-tabs)
(#135) Unexpected tab character. (no-tabs)
(#135) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#135) Expected space or tab after '//' in comment. (spaced-comment)
(#136) Unexpected tab character. (no-tabs)
(#136) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#136) Expected space or tab after '//' in comment. (spaced-comment)
(#137) Unexpected tab character. (no-tabs)
(#137) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#137) Expected space or tab after '//' in comment. (spaced-comment)
(#137) Trailing spaces not allowed. (no-trailing-spaces)
(#138) Unexpected tab character. (no-tabs)
(#138) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#138) Expected space or tab after '//' in comment. (spaced-comment)
(#139) Unexpected tab character. (no-tabs)
(#139) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#140) Unexpected tab character. (no-tabs)
(#140) Trailing spaces not allowed. (no-trailing-spaces)
(#140) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#141) Unexpected tab character. (no-tabs)
(#141) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#141) Comments should not begin with a lowercase character. (capitalized-comments)
(#141) Expected space or tab after '//' in comment. (spaced-comment)
(#142) Unexpected tab character. (no-tabs)
(#142) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#142) Expected space(s) after "if". (keyword-spacing)
(#142) Missing space before opening brace. (space-before-blocks)
(#143) Unexpected tab character. (no-tabs)
(#143) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#143) Unexpected tab character. (no-tabs)
(#144) Unexpected tab character. (no-tabs)
(#144) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#144) Unexpected tab character. (no-tabs)
(#145) Unexpected tab character. (no-tabs)
(#145) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#146) Unexpected tab character. (no-tabs)
(#146) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#146) Trailing spaces not allowed. (no-trailing-spaces)
(#147) Unexpected tab character. (no-tabs)
(#147) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#148) Unexpected tab character. (no-tabs)
(#148) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#149) Unexpected tab character. (no-tabs)
(#149) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#149) Expected space(s) after "if". (keyword-spacing)
(#149) Missing space before opening brace. (space-before-blocks)
(#150) Unexpected tab character. (no-tabs)
(#150) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#150) Unexpected tab character. (no-tabs)
(#150) ["templateindex"] is better written in dot notation. (dot-notation)
(#150) A space is required after ','. (comma-spacing)
(#151) Unexpected tab character. (no-tabs)
(#151) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#152) Unexpected tab character. (no-tabs)
(#152) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#153) Unexpected tab character. (no-tabs)
(#153) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#154) Unexpected tab character. (no-tabs)
(#154) Trailing spaces not allowed. (no-trailing-spaces)
(#155) Unexpected tab character. (no-tabs)
(#155) Mixed spaces and tabs. (no-mixed-spaces-and-tabs)
(#155) Unexpected alert. (no-alert)
(#156) Unexpected tab character. (no-tabs)
(#156) Comments should not begin with a lowercase character. (capitalized-comments)
(#156) Expected space or tab after '//' in comment. (spaced-comment)
(#157) Unexpected tab character. (no-tabs)
(#157) Comments should not begin with a lowercase character. (capitalized-comments)
(#157) Expected space or tab after '//' in comment. (spaced-comment)
(#158) Unexpected tab character. (no-tabs)
(#159) Unexpected tab character. (no-tabs)
(#160) Unexpected tab character. (no-tabs)
(#160) Comments should not begin with a lowercase character. (capitalized-comments)
(#160) Expected space or tab after '//' in comment. (spaced-comment)
(#161) Unexpected tab character. (no-tabs)
lib/editor/tiny/plugins/snippet/amd/src/widget_selector.js
(#29) 'prefetchStrings' is defined but never used. (no-unused-vars)
(#29) 'prefetchTemplates' is defined but never used. (no-unused-vars)
(#51) A space is required after ','. (comma-spacing)
(#55) Comments should not begin with a lowercase character. (capitalized-comments)
(#55) Expected space or tab after '//' in comment. (spaced-comment)
(#60) Missing space before opening brace. (space-before-blocks)
(#74) Missing space before opening brace. (space-before-blocks)
(#82) Operator '=' must be spaced. (space-infix-ops)
(#85) Comments should not begin with a lowercase character. (capitalized-comments)
(#85) Expected space or tab after '//' in comment. (spaced-comment)
(#87) Expected space or tab after '//' in comment. (spaced-comment)
(#93) Expected space or tab after '//' in comment. (spaced-comment)
(#96) Comments should not begin with a lowercase character. (capitalized-comments)
(#96) Expected space or tab after '//' in comment. (spaced-comment)
(#98) 'templateindex' declared on line 114 column 21 is used outside of binding context. (block-scoped-var)
(#99) 'widget' declared on line 115 column 21 is used outside of binding context. (block-scoped-var)
(#99) 'templateindex' declared on line 114 column 21 is used outside of binding context. (block-scoped-var)
(#101) 'widget' declared on line 115 column 21 is used outside of binding context. (block-scoped-var)
(#102) 'templateindex' declared on line 114 column 21 is used outside of binding context. (block-scoped-var)
(#106) Comments should not begin with a lowercase character. (capitalized-comments)
(#106) Expected space or tab after '//' in comment. (spaced-comment)
(#107) 'widget' declared on line 115 column 21 is used outside of binding context. (block-scoped-var)
(#111) Expected space or tab after '//' in comment. (spaced-comment)
(#114) 'templateindex' is already defined. (no-redeclare)
(#114) 'templateindex' declared on line 98 column 21 is used outside of binding context. (block-scoped-var)
(#115) 'widget' is already defined. (no-redeclare)
(#115) 'widget' declared on line 99 column 21 is used outside of binding context. (block-scoped-var)
(#115) 'templateindex' declared on line 98 column 21 is used outside of binding context. (block-scoped-var)
(#116) 'widget' declared on line 99 column 21 is used outside of binding context. (block-scoped-var)
(#117) 'templateindex' declared on line 98 column 21 is used outside of binding context. (block-scoped-var)
(#121) Comments should not begin with a lowercase character. (capitalized-comments)
(#121) Expected space or tab after '//' in comment. (spaced-comment)
(#122) 'widget' declared on line 99 column 21 is used outside of binding context. (block-scoped-var)
(#123) Comments should not begin with a lowercase character. (capitalized-comments)
(#123) Expected space or tab after '//' in comment. (spaced-comment)
(#125) Comments should not begin with a lowercase character. (capitalized-comments)
(#125) Expected space or tab after '//' in comment. (spaced-comment)
(#130) Expected space or tab after '//' in comment. (spaced-comment)
(#134) Comments should not begin with a lowercase character. (capitalized-comments)
(#134) Expected space or tab after '//' in comment. (spaced-comment)
(#135) 'widget' declared on line 99 column 21 is used outside of binding context. (block-scoped-var)
(#135) 'widget' declared on line 115 column 21 is used outside of binding context. (block-scoped-var)
(#138) Comments should not begin with a lowercase character. (capitalized-comments)
(#138) Expected space or tab after '//' in comment. (spaced-comment)
(#140) Comments should not begin with a lowercase character. (capitalized-comments)
(#140) Expected space or tab after '//' in comment. (spaced-comment)
(#166) Each then() should return a value or throw (promise/always-return)
(#166) Unexpected space before function parentheses. (space-before-function-paren)
(#166) 'js' is defined but never used. (no-unused-vars)
(#171) Comments should not begin with a lowercase character. (capitalized-comments)
(#171) Expected space or tab after '//' in comment. (spaced-comment)
(#172) Expected space or tab after '//' in comment. (spaced-comment)
(#173) Expected space or tab after '//' in comment. (spaced-comment)
(#177) Comments should not begin with a lowercase character. (capitalized-comments)
(#177) Expected space or tab after '//' in comment. (spaced-comment)
(#180) Comments should not begin with a lowercase character. (capitalized-comments)
(#180) Expected space or tab after '//' in comment. (spaced-comment)
(#181) Operator '=' must be spaced. (space-infix-ops)
(#182) Operator '=' must be spaced. (space-infix-ops)
(#184) Unexpected space before function parentheses. (space-before-function-paren)
(#184) Requires a space after '{'. (block-spacing)
(#184) Statement inside of curly braces should be on next line. (brace-style)
(#184) Missing space before opening brace. (space-before-blocks)
(#184) Requires a space before '}'. (block-spacing)
(#184) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#199) Comments should not begin with a lowercase character. (capitalized-comments)
(#199) Expected space or tab after '//' in comment. (spaced-comment)
(#202) Comments should not begin with a lowercase character. (capitalized-comments)
(#202) Expected space or tab after '//' in comment. (spaced-comment)
(#205) Comments should not begin with a lowercase character. (capitalized-comments)
(#205) Expected space or tab after '//' in comment. (spaced-comment)
(#206) Operator '=' must be spaced. (space-infix-ops)
(#206) Multiple spaces found before '+'. (no-multi-spaces)
(#206) Multiple spaces found before ''px''. (no-multi-spaces)
(#207) Operator '=' must be spaced. (space-infix-ops)
(#221) Expected space or tab after '//' in comment. (spaced-comment)
(#222) Multiple spaces found before 'that'. (no-multi-spaces)
(#223) Expected space(s) after "if". (keyword-spacing)
(#223) Missing space before opening brace. (space-before-blocks)
(#235) More than 2 blank lines not allowed. (no-multiple-empty-lines)
(#270) Trailing spaces not allowed. (no-trailing-spaces)
(#271) Comments should not begin with a lowercase character. (capitalized-comments)
(#271) Expected space or tab after '//' in comment. (spaced-comment)
(#274) Comments should not begin with a lowercase character. (capitalized-comments)
(#274) Expected space or tab after '//' in comment. (spaced-comment)
(#299) Comments should not begin with a lowercase character. (capitalized-comments)
(#299) Expected space or tab after '//' in comment. (spaced-comment)

CSS problems

(10 errors, 5 warnings)

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

lib/editor/tiny/plugins/snippet/styles.css
(#37) Expected single space before "{" (block-opening-brace-space-before)
(#48) Expected single space before "{" (block-opening-brace-space-before)
(#52) Expected single space before "{" (block-opening-brace-space-before)
(#7) Expected "#73AD21" to be "#73ad21" (color-hex-case)
(#8) Expected "#73AD21" to be "#73ad21" (color-hex-case)
(#10) Expected "#CBF2DC" to be "#cbf2dc" (color-hex-case)
(#34) Expected "#0000FF" to be "#0000ff" (color-hex-case)
(#34) Expected "#0000FF" to be "#00F" (color-hex-length)
(#2) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#3) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#9) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#10) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#11) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#12) 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)

PHPDocs style problems

(7 errors, 0 warnings)

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

lib/editor/tiny/plugins/snippet/classes/plugininfo.php
(#167) Phpdocs for function plugininfo::fetch_widget_variables has incomplete parameters list
lib/editor/tiny/plugins/snippet/classes/snippetpresets.php
(#39) Phpdocs for function snippetpresets::__construct has incomplete parameters list
(#71) Phpdocs for function snippetpresets::write_setting has incomplete parameters list
(#80) Phpdocs for function snippetpresets::output_html has incomplete parameters list
lib/editor/tiny/plugins/snippet/classes/snippettable.php
(#35) Phpdocs for function snippettable::__construct has incomplete parameters list
(#62) Phpdocs for function snippettable::write_setting has incomplete parameters list
(#71) Phpdocs for function snippettable::output_html 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]

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, 2 warnings)

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

lib/editor/tiny/plugins/snippet/templates/widgetoptions.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 4: Empty heading. (l-align"><h4 class="tiny_snippet_widget_instructions_title"></h4>)
lib/editor/tiny/plugins/snippet/templates/widgetselector.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]