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

(9 errors, 0 warnings)

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

lib/editor/atto/plugins/sharing/ajax.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Commas (,) must be followed by white space.
lib/editor/atto/plugins/sharing/classes/output_image.php
(#76) Opening brace should be on the same line as the declaration
lib/editor/atto/plugins/sharing/classes/privacy/provider.php
(#37) Opening brace should be on the same line as the declaration
(#40) File must end with a newline character
lib/editor/atto/plugins/sharing/lib.php
(#42) Space found before semicolon; expected ");" but found ") ;"
(#73) File must end with a newline character
lib/editor/atto/plugins/sharing/settings.php
(#30) Empty IF statement detected
lib/editor/atto/plugins/sharing/version.php
(#32) File must end with a newline character

Javascript coding style problems

(2 errors, 54 warnings)

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

lib/editor/atto/plugins/sharing/yui/src/button/js/button.js
(#33) Operator '+' must be spaced. (space-infix-ops)
(#36) Operator '+' must be spaced. (space-infix-ops)
(#36) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#36) Operator '+' must be spaced. (space-infix-ops)
(#37) Operator '+' must be spaced. (space-infix-ops)
(#40) Operator '+' must be spaced. (space-infix-ops)
(#40) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#40) Operator '+' must be spaced. (space-infix-ops)
(#41) Operator '+' must be spaced. (space-infix-ops)
(#44) Operator '+' must be spaced. (space-infix-ops)
(#44) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#44) Operator '+' must be spaced. (space-infix-ops)
(#45) Operator '+' must be spaced. (space-infix-ops)
(#45) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#45) Operator '+' must be spaced. (space-infix-ops)
(#47) Operator '+' must be spaced. (space-infix-ops)
(#47) 'M.str' is restricted from being used. Use AMD module "core/str" or M.util.get_string() (no-restricted-properties)
(#47) Operator '+' must be spaced. (space-infix-ops)
(#136) Expected space(s) after "if". (keyword-spacing)
(#138) Expected space(s) before "if". (keyword-spacing)
(#138) Expected space(s) after "if". (keyword-spacing)
(#140) Expected space(s) before "if". (keyword-spacing)
(#140) Expected space(s) after "if". (keyword-spacing)
(#144) Expected space(s) after "if". (keyword-spacing)
(#144) Use '===' to compare with null. (no-eq-null)
(#144) Operator '==' must be spaced. (space-infix-ops)
(#144) Missing space before opening brace. (space-before-blocks)
(#145) Unexpected alert. (no-alert)
(#148) A space is required after ','. (comma-spacing)
(#148) A space is required after ','. (comma-spacing)
(#148) A space is required after ','. (comma-spacing)
(#148) A space is required after ','. (comma-spacing)
(#153) Missing JSDoc for parameter 'facebook'. (valid-jsdoc)
(#153) Missing JSDoc for parameter 'twiter'. (valid-jsdoc)
(#153) Missing JSDoc for parameter 'linkedin'. (valid-jsdoc)
(#153) Missing JSDoc for parameter 'url'. (valid-jsdoc)
(#157) Expected JSDoc for 'selection' but found 'tab'. (valid-jsdoc)
(#158) Unexpected @return tag; function has no return statement. (valid-jsdoc)
(#161) A space is required after ','. (comma-spacing)
(#161) A space is required after ','. (comma-spacing)
(#161) A space is required after ','. (comma-spacing)
(#161) A space is required after ','. (comma-spacing)
(#163) Operator '=' must be spaced. (space-infix-ops)
(#164) Missing space before opening brace. (space-before-blocks)
(#165) Operator '+=' must be spaced. (space-infix-ops)
(#167) This line has a length of 135. Maximum allowed is 132. (max-len)
(#167) Operator '+' must be spaced. (space-infix-ops)
(#167) Operator '+' must be spaced. (space-infix-ops)
(#170) Missing space before opening brace. (space-before-blocks)
(#171) Operator '+=' must be spaced. (space-infix-ops)
(#173) Operator '+' must be spaced. (space-infix-ops)
(#173) Operator '+' must be spaced. (space-infix-ops)
(#178) Missing space before opening brace. (space-before-blocks)
(#179) Operator '+=' must be spaced. (space-infix-ops)
(#180) Operator '+' must be spaced. (space-infix-ops)
(#180) Operator '+' must be spaced. (space-infix-ops)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(6 errors, 0 warnings)

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

lib/editor/atto/plugins/sharing/classes/output_image.php
(#72) There is no description in phpdocs for function __construct
(#73) Phpdocs for function output_image::__construct has incomplete parameters list
lib/editor/atto/plugins/sharing/classes/privacy/provider.php
(#30) Class provider is not documented
(#33) There is no description in phpdocs for function get_reason
(#34) Invalid phpdocs tag @inheritDoc used
lib/editor/atto/plugins/sharing/version.php
(#20) Package atto_qrcode 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:yui" 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]