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

(35 errors, 7 warnings)

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

mod/data/field/jsignature/field.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Inline doc block comments are not allowed; use "// Comment." instead
(#28) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#28) Scope modifier not specified for member variable "$type"
(#61) Must use "self::" for local static member reference
(#74) Variable "signatureParser" must be all lower-case
(#75) Variable "svgGenerator" must be all lower-case
(#76) Variable "svgGenerator" must be all lower-case
(#76) Variable "signatureParser" must be all lower-case
(#101) Visibility must be declared on method "define_default_field"
(#116) Opening brace should be on the same line as the declaration
(#134) Visibility must be declared on method "display_browse_field"
(#137) Expected 1 space before "=>"; 0 found
(#137) Expected 1 space after "=>"; 0 found
(#137) Expected 1 space before "=>"; 0 found
(#137) Expected 1 space after "=>"; 0 found
(#151) Visibility must be declared on method "display_search_field"
(#155) Expected 1 space before "==="; 0 found
(#155) Expected 1 space after "==="; 0 found
(#155) Expected 1 space before ":"; 0 found
(#155) Expected 1 space after ":"; 0 found
(#156) Expected 1 space before "==="; 0 found
(#156) Expected 1 space after "==="; 0 found
(#156) Expected 1 space before ":"; 0 found
(#156) Expected 1 space after ":"; 0 found
(#165) Visibility must be declared on method "parse_search_field"
(#174) Visibility must be declared on method "generate_sql"
(#177) Expected 1 space before "="; 0 found
(#177) Expected 1 space after "="; 0 found
(#196) Visibility must be declared on method "export_text_value"
(#207) Visibility must be declared on method "name"
mod/data/field/jsignature/img.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
mod/data/field/jsignature/lang/en/datafield_jsignature.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/data/field/jsignature/lib.php
(#1) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#2) The opening <?php tag must be followed by exactly one newline.
(#4) Inline comments must start with a capital letter, digit or 3-dots sequence
(#4) Inline comments must end in full-stops, exclamation marks, or question marks
(#4) This comment is 75% valid code; is this commented out code?
(#4) No space found before comment text; expected "// echo 'x';" but found "//echo 'x';"
mod/data/field/jsignature/version.php
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(8 errors, 8 warnings)

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

mod/data/field/jsignature/amd/src/jsignature.js
(#1) Unexpected space before function parentheses. (space-before-function-paren)
(#3) Unexpected space before function parentheses. (space-before-function-paren)
(#3) Identifier 'field_id' is not in camel case. (camelcase)
(#4) Identifier 'field_id' is not in camel case. (camelcase)
(#4) A space is required after ','. (comma-spacing)
(#5) Missing semicolon. (babel/semi)
(#6) Identifier 'field_id' is not in camel case. (camelcase)
(#10) Extra space after key 'sizeRatio'. (key-spacing)
(#15) Missing semicolon. (babel/semi)
(#17) Missing semicolon. (babel/semi)
(#19) Unexpected space before function parentheses. (space-before-function-paren)
(#20) Missing semicolon. (babel/semi)
(#21) Missing semicolon. (babel/semi)
(#22) Missing semicolon. (babel/semi)
(#24) Missing semicolon. (babel/semi)
(#25) Missing semicolon. (babel/semi)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(16 errors, 5 warnings)

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

mod/data/field/jsignature/cli/installhacks.php
(#17) No one-line description found in phpdocs for file
(#18) Package datafield is not valid
mod/data/field/jsignature/field.class.php
(#2) Empty line found after PHP open tag
(#25) Class data_field_jsignature is not documented
(#18) No one-line description found in phpdocs for file
(#33) Phpdocs for function data_field_jsignature::get_download_image_url has incomplete parameters list
(#83) Phpdocs for function data_field_jsignature::get_raster_image has incomplete parameters list
(#112) Phpdocs for function data_field_jsignature::display_add_field has incomplete parameters list
(#171) Phpdocs for function data_field_jsignature::generate_sql has incomplete parameters list
(#111) Not recommended phpdocs tag @global used
(#129) Not recommended phpdocs tag @global used
(#31) Inline phpdocs tag not enclosed with curly brackets @see found
(#45) Inline phpdocs tag not enclosed with curly brackets @see found
(#19) Package datafield is not valid
mod/data/field/jsignature/img.php
(#17) No one-line description found in phpdocs for file
(#18) Package datafield is not valid
mod/data/field/jsignature/lang/en/datafield_jsignature.php
(#2) Empty line found after PHP open tag
(#21) Package datafield is not valid
mod/data/field/jsignature/lib.php
(#2) Empty line found after PHP open tag
(#) File-level phpdocs block is not found
mod/data/field/jsignature/version.php
(#20) Package datafield is not valid

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

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


Gherkin .feature problems

(0 errors, 0 warnings)

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