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

(36 errors, 0 warnings)

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

mod/pdfprotect/backup/moodle2/backup_pdfprotect_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
mod/pdfprotect/backup/moodle2/backup_pdfprotect_stepslib.php
(#28) Opening brace must not be followed by a blank line
(#37) Opening parenthesis of a multi-line function call must be the last content on the line
(#37) Only one argument is allowed per line in a multi-line function call
(#38) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#38) Closing parenthesis of a multi-line function call must be on a line by itself
mod/pdfprotect/backup/moodle2/restore_pdfprotect_activity_task.class.php
(#33) Opening brace must not be followed by a blank line
(#74) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/pdfprotect/backup/moodle2/restore_pdfprotect_stepslib.php
(#28) Opening brace must not be followed by a blank line
mod/pdfprotect/classes/event/course_module_viewed.php
(#34) Opening brace must not be followed by a blank line
mod/pdfprotect/classes/output/mobile.php
(#30) Opening brace must not be followed by a blank line
mod/pdfprotect/lib.php
(#216) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#216) Opening parenthesis of a multi-line function call must be the last content on the line
(#218) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#218) Closing parenthesis of a multi-line function call must be on a line by itself
(#218) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#295) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Only one argument is allowed per line in a multi-line function call
(#295) Closing parenthesis of a multi-line function call must be on a line by itself
(#521) Blank line found at start of control structure
mod/pdfprotect/mod_form.php
(#133) Opening parenthesis of a multi-line function call must be the last content on the line
(#133) Only one argument is allowed per line in a multi-line function call
(#133) Only one argument is allowed per line in a multi-line function call
(#133) Only one argument is allowed per line in a multi-line function call
(#134) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#134) Only one argument is allowed per line in a multi-line function call
(#134) Only one argument is allowed per line in a multi-line function call
(#134) Closing parenthesis of a multi-line function call must be on a line by itself
mod/pdfprotect/view.php
(#69) Whitespace found at end of line

Javascript coding style problems

(2 errors, 2 warnings)

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

mod/pdfprotect/amd/src/view_page.js
(#19) Extra space after key 'init'. (key-spacing)
(#23) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#23) Identifier 'frame_resize' is not in camel case. (camelcase)
(#26) Missing semicolon. (@babel/semi)

CSS problems

(2 errors, 0 warnings)

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

mod/pdfprotect/styles.scss
(#6) Unexpected !important (declaration-no-important)
(#11) Unexpected !important (declaration-no-important)

PHPDocs style problems

(13 errors, 0 warnings)

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

mod/pdfprotect/backup/moodle2/restore_pdfprotect_activity_task.class.php
(#78) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#80) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#94) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#96) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/pdfprotect/backup/moodle2/restore_pdfprotect_stepslib.php
(#46) Phpdocs for function restore_pdfprotect_activity_structure_step::process_pdfprotect has incomplete parameters list
mod/pdfprotect/classes/output/mobile.php
(#35) Phpdocs for function mobile::mobile_course_view has incomplete parameters list
mod/pdfprotect/db/upgrade.php
(#28) Phpdocs for function xmldb_pdfprotect_upgrade has incomplete parameters list
mod/pdfprotect/lib.php
(#504) Phpdocs for function pdfprotect_export_contents has incomplete parameters list
(#615) Phpdocs for function pdfprotect_print_header has incomplete parameters list
(#729) Phpdocs for function pdfprotect_set_mainfile has incomplete parameters list
(#202) Inline phpdocs tag {@link get_array_of_activities()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/pdfprotect/mod_form.php
(#77) Phpdocs for function mod_pdfprotect_mod_form::data_preprocessing has incomplete parameters list
(#102) Phpdocs for function mod_pdfprotect_mod_form::validation 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]

mod/pdfprotect/templates/mobile.mustache
(#1) HTML Validation error, line 7: Attribute “webkitallowfullscreen” not allowed on element “iframe” at this point. (d><body><iframe id="iframe-123" src="https://example.com/video.mp4" style="height: 100vh; width: 100%;" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" sandbox="allow-scripts allow-forms allow-same-origin allow-modals"></ifra)
(#1) HTML Validation error, line 7: Attribute “mozallowfullscreen” not allowed on element “iframe” at this point. (d><body><iframe id="iframe-123" src="https://example.com/video.mp4" style="height: 100vh; width: 100%;" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" sandbox="allow-scripts allow-forms allow-same-origin allow-modals"></ifra)
(#1) HTML Validation info, line 7: Potentially bad value “allow-scripts allow-forms allow-same-origin allow-modals” for attribute “sandbox” on element “iframe”: Setting both “allow-scripts” and “allow-same-origin” is not recommended, because it effectively enables an embedded page to break out of all sandboxing. (d><body><iframe id="iframe-123" src="https://example.com/video.mp4" style="height: 100vh; width: 100%;" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" sandbox="allow-scripts allow-forms allow-same-origin allow-modals"></ifra)
mod/pdfprotect/templates/view_page.mustache
(#1) HTML validation skipped

Gherkin .feature problems

(0 errors, 0 warnings)

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