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

(27 errors, 30 warnings)

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

local/onenote/classes/api/base.php
(#42) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#355) There must not be a space before the colon in a return type declaration
(#405) Commas (,) must be followed by white space.
(#421) Commas (,) must be followed by white space.
(#434) Commas (,) must be followed by white space.
(#566) A comma after the last array item in a single-line array is not allowed.
(#566) Commas (,) must be followed by white space.
local/onenote/classes/api/o365.php
(#34) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
local/onenote/classes/privacy/provider.php
(#30) Import statements must not begin with a leading backslash
(#31) Import statements must not begin with a leading backslash
(#32) Import statements must not begin with a leading backslash
(#33) Import statements must not begin with a leading backslash
(#39) Duplicate interface name "local_onenote\privacy\local_onenote_userlist" found; first defined in /var/lib/jenkins/git_repositories/prechecker/local/onenote/classes/privacy/provider.php on line 36
(#42) Space found before semicolon; expected "};" but found "}\n\n ;"
(#57) There must not be a space before the colon in a return type declaration
(#59) A comma after the last array item in a single-line array is not allowed.
(#59) Commas (,) must be followed by white space.
(#61) Commas (,) must be followed by white space.
(#61) Commas (,) must be followed by white space.
(#80) There must not be a space before the colon in a return type declaration
(#201) There must not be a space before the colon in a return type declaration
(#203) A comma after the last array item in a single-line array is not allowed.
(#203) Commas (,) must be followed by white space.
local/onenote/classes/utils.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#50) The use of function print_r() is forbidden
local/onenote/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#49) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#86) Line exceeds 132 characters; contains 133 characters
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
local/onenote/tests/generator/lib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
local/onenote/tests/onenoteapi_test.php
(#52) PHPUnit testcase name "local_onenote_onenoteapi_testcase" does not match file name "onenoteapi_test"
(#52) PHPUnit class "local_onenote_onenoteapi_testcase" does not have any namespace. It is recommended to add it to the "local_onenote" namespace, using more levels if needed, in order to match the code being tested
(#83) There must not be a space before the colon in a return type declaration
(#146) Test method test_createtempfolder() is missing any coverage information, own or at class level
(#157) Test method test_renderactionbutton() is missing any coverage information, own or at class level
(#179) Test method test_isteacher() is missing any coverage information, own or at class level
(#193) Test method test_getitemlist() is missing any coverage information, own or at class level
(#224) Test method test_sizelimits() is missing any coverage information, own or at class level
(#273) Test method test_downloadpagehtml() is missing any coverage information, own or at class level
(#327) Line exceeds 132 characters; contains 134 characters
(#338) Test method test_getpage() is missing any coverage information, own or at class level
(#395) Test method test_downloadpage() is missing any coverage information, own or at class level
local/onenote/tests/privacy_provider_test.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Import statements must not begin with a leading backslash
(#43) PHPUnit testcase name "local_onenote_privacy_testcase" does not match file name "privacy_provider_test"
(#43) PHPUnit class "local_onenote_privacy_testcase" does not have any namespace. It is recommended to add it to the "local_onenote" namespace, using more levels if needed, in order to match the code being tested
(#47) There must not be a space before the colon in a return type declaration
(#56) Test method test_get_contexts_for_userid() is missing any coverage information, own or at class level
(#75) Test method test_get_users_in_context() is missing any coverage information, own or at class level
(#107) Test method test_export_user_data() is missing any coverage information, own or at class level
(#133) Test method test_delete_data_for_all_users_in_context() is missing any coverage information, own or at class level
(#164) Test method test_delete_data_for_user() is missing any coverage information, own or at class level
(#196) Test method test_delete_data_for_users() is missing any coverage information, own or at class level
(#261) Commas (,) must be followed by white space.
(#272) There must not be a space before the colon in a return type declaration
(#289) There must not be a space before the colon in a return type declaration

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

(4 errors, 2 warnings)

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

local/onenote/styles.css
(#17) Unexpected !important (declaration-no-important)
(#3) Unexpected unit (length-zero-no-unit)
(#10) Unexpected unit (length-zero-no-unit)
(#2) Expected indentation of 4 spaces (indentation)
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(0 errors, 0 warnings)

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


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 "stylelint:css" 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]