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

(241 errors, 27 warnings)

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

mod/assign/submission/cincopa/classes/observers.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#32) Line indented incorrectly; expected 0 spaces, found 1
(#40) Line exceeds 132 characters; contains 146 characters
(#43) Expected "if (...) {\n"; found "if(...) {\n"
(#44) Line exceeds 132 characters; contains 144 characters
(#46) Expected "if (...) {\n"; found "if(...) {\n"
(#48) Line exceeds 132 characters; contains 142 characters
(#53) File must end with a newline character
(#53) Line indented incorrectly; expected 0 spaces, found 1
mod/assign/submission/cincopa/classes/output/mobile.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) Expected 1 space before opening brace; found 2
(#10) Line exceeds 132 characters; contains 139 characters
(#15) Variable "defaultView" must be all lower-case
(#18) Expected "if (...) {\n"; found "if(...) {\n"
(#27) Variable "defaultView" must be all lower-case
(#27) Line exceeds maximum limit of 180 characters; contains 239 characters
(#30) Whitespace found at end of line within string
(#31) Line exceeds 132 characters; contains 143 characters
(#31) Whitespace found at end of line within string
(#32) Whitespace found at end of line within string
(#33) Whitespace found at end of line within string
(#34) Whitespace found at end of line within string
(#35) Whitespace found at end of line within string
(#36) Whitespace found at end of line within string
(#37) Whitespace found at end of line within string
(#38) Whitespace found at end of line within string
(#39) Whitespace found at end of line within string
(#40) Whitespace found at end of line within string
(#41) Whitespace found at end of line within string
(#42) Whitespace found at end of line within string
(#43) Whitespace found at end of line within string
(#44) Whitespace found at end of line within string
(#45) Whitespace found at end of line within string
(#46) Line exceeds 132 characters; contains 133 characters
(#46) Whitespace found at end of line within string
(#47) Whitespace found at end of line within string
(#48) Whitespace found at end of line within string
(#49) Line exceeds 132 characters; contains 139 characters
(#49) Whitespace found at end of line within string
(#50) Whitespace found at end of line within string
(#51) Whitespace found at end of line within string
(#52) Whitespace found at end of line within string
(#53) Whitespace found at end of line within string
(#54) Whitespace found at end of line within string
(#55) Whitespace found at end of line within string
(#56) Whitespace found at end of line within string
(#57) Whitespace found at end of line within string
(#58) Whitespace found at end of line within string
(#59) Whitespace found at end of line within string
(#60) Whitespace found at end of line within string
(#61) Whitespace found at end of line within string
(#62) Whitespace found at end of line within string
(#63) Whitespace found at end of line within string
(#64) Line exceeds maximum limit of 180 characters; contains 181 characters
(#64) Whitespace found at end of line within string
(#65) Whitespace found at end of line within string
(#66) Whitespace found at end of line within string
(#67) Whitespace found at end of line within string
(#68) Whitespace found at end of line within string
(#69) Line exceeds 132 characters; contains 169 characters
(#69) Whitespace found at end of line within string
(#70) Whitespace found at end of line within string
(#71) Whitespace found at end of line within string
(#72) Whitespace found at end of line within string
(#73) Whitespace found at end of line within string
(#74) Whitespace found at end of line within string
(#75) Whitespace found at end of line within string
(#76) Whitespace found at end of line within string
(#77) Whitespace found at end of line within string
(#78) Whitespace found at end of line within string
(#79) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
(#82) Whitespace found at end of line within string
(#83) Whitespace found at end of line within string
(#84) Whitespace found at end of line within string
(#85) Whitespace found at end of line within string
(#86) Whitespace found at end of line within string
(#87) Whitespace found at end of line within string
(#88) Whitespace found at end of line within string
(#89) Whitespace found at end of line within string
(#90) Whitespace found at end of line within string
(#91) Whitespace found at end of line within string
(#92) Whitespace found at end of line within string
(#93) Whitespace found at end of line within string
(#94) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#99) Whitespace found at end of line within string
(#102) Whitespace found at end of line
(#104) File must end with a newline character
mod/assign/submission/cincopa/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#26) Whitespace found at end of line
mod/assign/submission/cincopa/db/events.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) File must end with a newline character
mod/assign/submission/cincopa/db/mobile.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#4) Inline comments must end in full-stops, exclamation marks, or question marks
(#7) Inline comments must end in full-stops, exclamation marks, or question marks
(#8) Inline comments must end in full-stops, exclamation marks, or question marks
(#25) File must end with a newline character
mod/assign/submission/cincopa/lang/en/assignsubmission_cincopa.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#36) File must end with a newline character
mod/assign/submission/cincopa/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#58) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Logical operator "and" is prohibited; use "&&" instead
(#68) Logical operator "or" is prohibited; use "||" instead
(#71) Whitespace found at end of line
mod/assign/submission/cincopa/locallib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Opening brace should be on the same line as the declaration for class assign_submission_cincopa
(#49) Opening brace should be on the same line as the declaration
(#62) Opening brace should be on the same line as the declaration
(#65) Opening brace should be on the same line as the declaration
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) No space found before comment text; expected "// $handler = \core_course\customfield\course_handler::create();" but found "//$handler = \core_course\customfield\course_handler::create();"
(#79) Variable "courseToken" must be all lower-case
(#80) Variable "courseAssetTypes" must be all lower-case
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Variable "courseToken" must be all lower-case
(#86) Variable "courseToken" must be all lower-case
(#88) Expected "if (...) {\n"; found "if(...) {\n"
(#88) Variable "courseAssetTypes" must be all lower-case
(#89) Variable "courseAssetTypes" must be all lower-case
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Expected "if (...) {\n"; found "if(...) {\n"
(#99) Expected "if (...) {\n"; found "if(...) {\n"
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Whitespace found at end of line
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) No space found before comment text; expected "// If M3.4 or higher we can hide unneeded elements" but found "//If M3.4 or higher we can hide unneeded elements"
(#116) Whitespace found at end of line
(#119) Opening brace should be on the same line as the declaration
(#138) Opening brace should be on the same line as the declaration
(#145) Variable "defaultView" must be all lower-case
(#152) Expected "if (...) {\n"; found "if(...) {\n"
(#153) Variable "allowedAssets" must be all lower-case
(#155) Variable "allowedAssets" must be all lower-case
(#157) Variable "defaultView" must be all lower-case
(#157) Variable "allowedAssets" must be all lower-case
(#157) Line exceeds maximum limit of 180 characters; contains 344 characters
(#164) Whitespace found at end of line
(#170) Opening brace should be on the same line as the declaration
(#179) Whitespace found at end of line
(#185) Opening brace should be on the same line as the declaration
(#202) Whitespace found at end of line
(#207) Opening brace should be on the same line as the declaration
(#222) Line exceeds 132 characters; contains 169 characters
(#222) Whitespace found at end of line within string
(#223) Whitespace found at end of line within string
(#224) Whitespace found at end of line within string
(#225) Whitespace found at end of line within string
(#226) Line exceeds 132 characters; contains 134 characters
(#226) Whitespace found at end of line within string
(#227) Whitespace found at end of line within string
(#228) Whitespace found at end of line within string
(#229) Whitespace found at end of line within string
(#230) Whitespace found at end of line within string
(#231) Whitespace found at end of line within string
(#232) Whitespace found at end of line within string
(#233) Whitespace found at end of line within string
(#234) Whitespace found at end of line within string
(#235) Whitespace found at end of line within string
(#236) Whitespace found at end of line within string
(#237) Whitespace found at end of line within string
(#238) Whitespace found at end of line within string
(#239) Whitespace found at end of line within string
(#240) Whitespace found at end of line within string
(#241) Whitespace found at end of line within string
(#242) Whitespace found at end of line within string
(#243) Whitespace found at end of line within string
(#244) Whitespace found at end of line within string
(#245) Whitespace found at end of line within string
(#246) Whitespace found at end of line within string
(#247) Whitespace found at end of line within string
(#248) Whitespace found at end of line within string
(#249) Whitespace found at end of line within string
(#250) Line exceeds 132 characters; contains 156 characters
(#250) Whitespace found at end of line within string
(#251) Whitespace found at end of line within string
(#252) Whitespace found at end of line within string
(#253) Whitespace found at end of line within string
(#254) Whitespace found at end of line within string
(#255) Whitespace found at end of line within string
(#256) Whitespace found at end of line within string
(#257) Whitespace found at end of line within string
(#258) Whitespace found at end of line within string
(#259) Line exceeds 132 characters; contains 174 characters
(#259) Whitespace found at end of line within string
(#260) Whitespace found at end of line within string
(#261) Whitespace found at end of line within string
(#262) Whitespace found at end of line within string
(#263) Whitespace found at end of line within string
(#264) Whitespace found at end of line within string
(#265) Whitespace found at end of line within string
(#275) Whitespace found at end of line
(#280) Opening brace should be on the same line as the declaration
mod/assign/submission/cincopa/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Line exceeds maximum limit of 180 characters; contains 260 characters
mod/assign/submission/cincopa/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Spaces must be used for alignment; tabs are not allowed
(#27) Tab found within whitespace
(#28) Spaces must be used for alignment; tabs are not allowed
(#28) Tab found within whitespace
(#29) Spaces must be used for alignment; tabs are not allowed
(#29) Tab found within whitespace

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(12 errors, 7 warnings)

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

mod/assign/submission/cincopa/classes/observers.php
(#32) Class assignsubmission_cincopa_observers is not documented
(#33) Function assignsubmission_cincopa_observers::submission_updated is not documented
mod/assign/submission/cincopa/classes/output/mobile.php
(#7) Package is not specified for class mobile. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#7) Class mobile is not documented
(#8) Function mobile::mobile_submission_edit is not documented
mod/assign/submission/cincopa/db/mobile.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
mod/assign/submission/cincopa/lang/en/assignsubmission_cincopa.php
(#2) Empty line found after PHP open tag
mod/assign/submission/cincopa/lib.php
(#39) Function assignsubmission_cincopa_pluginfile is not documented
mod/assign/submission/cincopa/locallib.php
(#2) Empty line found after PHP open tag
(#42) Class assign_submission_cincopa is not documented
(#64) Function assign_submission_cincopa::get_cp_course_metadata is not documented
(#163) There is no description in phpdocs for function save
(#178) There is no description in phpdocs for function view_summary
(#274) There is no description in phpdocs for function is_empty
(#276) Phpdocs for function assign_submission_cincopa::is_empty has incomplete parameters list
(#56) Not recommended phpdocs tag @global used
(#56) Not recommended phpdocs tag @global used

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

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 17 warnings)

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

mod/assign/submission/cincopa/templates/mobile_view_page.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: Attribute “*ngif” is not serializable as XML 1.0. (d><body><div style="height: auto !important" id="mainDiv" *ngIf="!edit"> <)
(#1) HTML Validation error, line 3: Attribute “*ngif” not allowed on element “div” at this point. (d><body><div style="height: auto !important" id="mainDiv" *ngIf="!edit"> <)
(#1) HTML Validation info, line 4: Attribute “*ngif” is not serializable as XML 1.0. (dit"> <div style="height: auto !important;" *ngIf="currentToken"> )
(#1) HTML Validation error, line 4: Attribute “*ngif” not allowed on element “div” at this point. (dit"> <div style="height: auto !important;" *ngIf="currentToken"> )
(#1) HTML Validation info, line 5: Attribute “*ngif” is not serializable as XML 1.0. (> <div style="height: auto !important; width: 100%" *ngIf="hasAssignmentSubmitted"> )
(#1) HTML Validation error, line 5: Attribute “*ngif” not allowed on element “div” at this point. (> <div style="height: auto !important; width: 100%" *ngIf="hasAssignmentSubmitted"> )
(#1) HTML Validation info, line 9: Attribute “*ngif” is not serializable as XML 1.0. (/div> <div style="height: auto !important;" *ngIf="!currentToken"> )
(#1) HTML Validation error, line 9: Attribute “*ngif” not allowed on element “div” at this point. (/div> <div style="height: auto !important;" *ngIf="!currentToken"> )
(#1) HTML Validation info, line 10: Attribute “*ngif” is not serializable as XML 1.0. (> <div style="height: auto !important; width: 100%" *ngIf="hasAssignmentSubmitted"> )
(#1) HTML Validation error, line 10: Attribute “*ngif” not allowed on element “div” at this point. (> <div style="height: auto !important; width: 100%" *ngIf="hasAssignmentSubmitted"> )
(#1) HTML Validation info, line 15: Attribute “*ngif” is not serializable as XML 1.0. (v></div><div style="height: 400px" *ngIf="edit"> <)
(#1) HTML Validation error, line 15: Attribute “*ngif” not allowed on element “div” at this point. (v></div><div style="height: 400px" *ngIf="edit"> <)
(#1) HTML Validation info, line 16: Attribute “*ngif” is not serializable as XML 1.0. (dit"> <div *ngIf="currentToken" style="height: 400px; width: 92%"> )
(#1) HTML Validation error, line 16: Attribute “*ngif” not allowed on element “div” at this point. (dit"> <div *ngIf="currentToken" style="height: 400px; width: 92%"> )
(#1) HTML Validation info, line 19: Attribute “*ngif” is not serializable as XML 1.0. (/div> <div *ngIf="!currentToken" style="height: 400px; width: 92%"> )
(#1) HTML Validation error, line 19: Attribute “*ngif” not allowed on element “div” at this point. (/div> <div *ngIf="!currentToken" style="height: 400px; width: 92%"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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