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

(19 errors, 8 warnings)

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

local/textinsights/classes/external.php
(#45) Opening brace should be on the same line as the declaration
(#61) Opening brace should be on the same line as the declaration
(#115) There should be a comma after the last array item in a multi-line array.
(#128) Blank line found at start of control structure
(#149) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#170) Opening brace should be on the same line as the declaration
local/textinsights/classes/privacy/provider.php
(#34) Opening brace must not be followed by a blank line
local/textinsights/lang/en/local_textinsights.php
(#29) The string key "explain" is not in the correct order, it should be before "textinsights:usevalidate"
(#32) The string key "loading" is not in the correct order, it should be before "validate"
(#33) The string key "error" is not in the correct order, it should be before "loading"
(#35) The string key "apikey" is not in the correct order, it should be before "settingheader"
(#46) The string key "ollama_settings" is not in the correct order, it should be before "openai_settings"
(#47) The string key "maxlength" is not in the correct order, it should be before "ollama_settings"
(#52) The string key "invalidaction" is not in the correct order, it should be before "textoollong"
(#53) The string key "apierror" is not in the correct order, it should be before "invalidaction"
local/textinsights/lib.php
(#33) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#34) The closing parenthesis of a multi-line control structure must be on the line after the last expression
local/textinsights/settings.php
(#56) Multi-line function call not indented correctly; expected 9 spaces but found 8
(#57) Multi-line function call not indented correctly; expected 9 spaces but found 8
(#58) Multi-line function call not indented correctly; expected 9 spaces but found 8
(#59) Empty lines are not allowed in multi-line function calls
(#59) Whitespace found at end of line
(#60) Multi-line function call not indented correctly; expected 5 spaces but found 4
(#60) Line indented incorrectly; expected at least 5 spaces, found 4
(#83) Multi-line function call not indented correctly; expected 8 spaces but found 7
(#114) Blank line found at end of control structure
(#114) Whitespace found at end of line

Javascript coding style problems

(0 errors, 14 warnings)

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

local/textinsights/amd/src/module.js
(#117) Requires a space after '{'. (block-spacing)
(#117) Statement inside of curly braces should be on next line. (brace-style)
(#117) Requires a space before '}'. (block-spacing)
(#117) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#121) Requires a space after '{'. (block-spacing)
(#121) Statement inside of curly braces should be on next line. (brace-style)
(#121) Requires a space before '}'. (block-spacing)
(#121) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#152) Unexpected space before function parentheses. (space-before-function-paren)
(#182) Unexpected space before function parentheses. (space-before-function-paren)
(#208) Requires a space after '{'. (block-spacing)
(#208) Statement inside of curly braces should be on next line. (brace-style)
(#208) Requires a space before '}'. (block-spacing)
(#208) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(1 errors, 0 warnings)

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

local/textinsights/lib.php
(#28) Phpdocs for function local_textinsights_before_standard_html_head 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, 0 warnings)

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

local/textinsights/amd/build/module.min.js.map
Uncommitted change detected.

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]