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

(34 errors, 15 warnings)

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

public/local/asyntai/ajax.php
(#36) Short array syntax must be used to define arrays
(#36) Whitespace found at end of line
public/local/asyntai/classes/external.php
(#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
(#34) Import statements must not begin with a leading backslash
(#35) Import statements must not begin with a leading backslash
(#45) Missing docblock for function save_connection_parameters
(#53) Missing docblock for function save_connection
(#85) Missing docblock for function save_connection_returns
(#87) There should be a comma after the last array item in a multi-line array.
(#90) Expected 1 blank line at end of file; 3 found
public/local/asyntai/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Missing docblock for function get_reason
(#42) Expected 1 blank line at end of file; 2 found
public/local/asyntai/db/access.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#36) Expected 1 blank line at end of file; 2 found
public/local/asyntai/db/services.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#35) Expected at least 1 space before "=>"; 0 found
(#35) Expected 1 space before "=>"; 0 found
(#37) Expected 1 blank line at end of file; 4 found
public/local/asyntai/lang/en/local_asyntai.php
(#27) The string key "asyntai:manage" is not in the correct order, it should be before "privacy:metadata"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#31) The string key "connected" is not in the correct order, it should be before "status"
(#34) The string key "as" is not in the correct order, it should be before "reset"
(#36) The string key "enableddesc" is not in the correct order, it should be before "enabledtitle"
(#40) The string key "gohere" is not in the correct order, it should be before "tipdesc"
(#41) The string key "connectprompt" is not in the correct order, it should be before "gohere"
(#43) The string key "fallbacktext" is not in the correct order, it should be before "getstarted"
(#46) Unexpected comment found. Auto-fixing will not work after this comment
(#49) The string key "enabled" is not in the correct order, it should be before "saving"
(#51) The string key "couldnotsave" is not in the correct order, it should be before "savefailed"
(#51) Expected 1 blank line at end of file; 2 found
public/local/asyntai/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#47) Line exceeds maximum limit of 180 characters; contains 370 characters
(#49) Expected 1 blank line at end of file; 2 found
public/local/asyntai/manage.php
(#51) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#68) Expected 1 blank line at end of file; 2 found
public/local/asyntai/settings.php
(#35) Expected 1 blank line at end of file; 2 found
public/local/asyntai/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
(#31) Expected 1 blank line at end of file; 3 found

Javascript coding style problems

(16 errors, 20 warnings)

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

public/local/asyntai/amd/src/manage.js
(#19) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#29) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#33) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#40) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#42) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#51) Statement inside of curly braces should be on next line. (brace-style)
(#51) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#51) Empty block statement. (no-empty)
(#66) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#73) This line has a length of 176. Maximum allowed is 132. (max-len)
(#78) Statement inside of curly braces should be on next line. (brace-style)
(#78) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#80) Statement inside of curly braces should be on next line. (brace-style)
(#80) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#83) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#109) Missing JSDoc comment. (jsdoc/require-jsdoc)
(#119) Expected catch,fail,always() or return (promise/catch-or-return)
(#121) Statement inside of curly braces should be on next line. (brace-style)
(#121) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#123) Expected variable declaration to be on a new line. (one-var-declaration-per-line)
(#126) This line has a length of 199. Maximum allowed is 132. (max-len)
(#127) Each then() should return a value or throw (promise/always-return)
(#133) Avoid nesting promises. (promise/no-nesting)
(#133) Avoid nesting promises. (promise/no-nesting)
(#140) Each then() should return a value or throw (promise/always-return)
(#140) 'response' is defined but never used. (no-unused-vars)
(#144) Unexpected console statement. (no-console)
(#145) Unexpected console statement. (no-console)
(#162) Expected catch,fail,always() or return (promise/catch-or-return)
(#164) Avoid nesting promises. (promise/no-nesting)
(#164) Avoid nesting promises. (promise/no-nesting)
(#169) Each then() should return a value or throw (promise/always-return)
(#171) Each then() should return a value or throw (promise/always-return)
(#171) 'response' is defined but never used. (no-unused-vars)
(#175) Unexpected console statement. (no-console)
(#176) Unexpected console statement. (no-console)

CSS problems

(0 errors, 0 warnings)

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


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 "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, 1 warnings)

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

public/local/asyntai/templates/manage.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]