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

(0 errors, 18 warnings)

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

lib/editor/tiny/plugins/aic/lang/en/tiny_aic.php
(#30) The string key "header" is not in the correct order, it should be before "pluginname"
(#31) The string key "button_title" is not in the correct order, it should be before "header"
(#32) The string key "apikey" is not in the correct order, it should be before "button_title"
(#36) The string key "assistantname" is not in the correct order, it should be before "promptdesc"
(#40) The string key "sourceoftruth" is not in the correct order, it should be before "usernamedesc"
(#42) The string key "showlabels" is not in the correct order, it should be before "sourceoftruthdesc"
(#43) The string key "advanced" is not in the correct order, it should be before "showlabels"
(#49) The string key "maxlength" is not in the correct order, it should be before "temperaturedesc"
(#53) The string key "frequency" is not in the correct order, it should be before "toppdesc"
(#55) The string key "allowed_role" is not in the correct order, it should be before "frequencydesc"
(#61) The string key "add_to_editor" is not in the correct order, it should be before "presencedesc"
(#63) The string key "generate" is not in the correct order, it should be before "placeholder"
(#65) The string key "error" is not in the correct order, it should be before "textlength"
(#68) The string key "allowed_admin" is not in the correct order, it should be before "help"
(#72) The string key "aicplaceholder" is not in the correct order, it should be before "draft"
(#76) The string key "privacy:metadata" is not in the correct order, it should be before "thinking"
(#77) The string key "card_heading" is not in the correct order, it should be before "privacy:metadata"
(#78) The string key "aigenerationfailed" is not in the correct order, it should be before "card_heading"

Javascript coding style problems

(1 errors, 47 warnings)

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

lib/editor/tiny/plugins/aic/amd/src/commands.js
(#24) There should be no space after '{'. (@babel/object-curly-spacing)
(#24) Identifier 'get_string' is not in camel case. (camelcase)
(#24) Identifier 'get_strings' is not in camel case. (camelcase)
(#24) There should be no space before '}'. (@babel/object-curly-spacing)
(#25) There should be no space after '{'. (@babel/object-curly-spacing)
(#25) There should be no space before '}'. (@babel/object-curly-spacing)
(#26) There should be no space after '{'. (@babel/object-curly-spacing)
(#26) There should be no space before '}'. (@babel/object-curly-spacing)
(#37) Unexpected space before function parentheses. (space-before-function-paren)
(#42) There should be no space after '{'. (@babel/object-curly-spacing)
(#42) There should be no space before '}'. (@babel/object-curly-spacing)
(#43) There should be no space after '{'. (@babel/object-curly-spacing)
(#43) There should be no space before '}'. (@babel/object-curly-spacing)
(#44) There should be no space after '{'. (@babel/object-curly-spacing)
(#44) There should be no space before '}'. (@babel/object-curly-spacing)
(#45) There should be no space after '{'. (@babel/object-curly-spacing)
(#45) There should be no space before '}'. (@babel/object-curly-spacing)
(#46) There should be no space after '{'. (@babel/object-curly-spacing)
(#46) There should be no space before '}'. (@babel/object-curly-spacing)
(#47) There should be no space after '{'. (@babel/object-curly-spacing)
(#47) There should be no space before '}'. (@babel/object-curly-spacing)
(#48) There should be no space after '{'. (@babel/object-curly-spacing)
(#48) There should be no space before '}'. (@babel/object-curly-spacing)
(#49) There should be no space after '{'. (@babel/object-curly-spacing)
(#49) There should be no space before '}'. (@babel/object-curly-spacing)
(#107) Unexpected space before function parentheses. (space-before-function-paren)
(#184) Operator '+' must be spaced. (space-infix-ops)
(#184) Operator '+' must be spaced. (space-infix-ops)
(#191) Operator '+' must be spaced. (space-infix-ops)
(#191) Operator '+' must be spaced. (space-infix-ops)
(#196) Operator '+' must be spaced. (space-infix-ops)
(#196) Operator '+' must be spaced. (space-infix-ops)
(#206) Unexpected space before function parentheses. (space-before-function-paren)
(#226) Unexpected space before function parentheses. (space-before-function-paren)
lib/editor/tiny/plugins/aic/amd/src/configuration.js
(#24) There should be no space after '{'. (@babel/object-curly-spacing)
(#24) There should be no space before '}'. (@babel/object-curly-spacing)
(#25) There should be no space after '{'. (@babel/object-curly-spacing)
(#25) There should be no space before '}'. (@babel/object-curly-spacing)
lib/editor/tiny/plugins/aic/amd/src/plugin.js
(#24) There should be no space after '{'. (@babel/object-curly-spacing)
(#24) There should be no space before '}'. (@babel/object-curly-spacing)
(#25) There should be no space after '{'. (@babel/object-curly-spacing)
(#25) There should be no space before '}'. (@babel/object-curly-spacing)
(#27) There should be no space after '{'. (@babel/object-curly-spacing)
(#27) There should be no space before '}'. (@babel/object-curly-spacing)
(#28) There should be no space after '{'. (@babel/object-curly-spacing)
(#28) There should be no space before '}'. (@babel/object-curly-spacing)
(#32) Promise executor functions should not be async. (no-async-promise-executor)
(#32) Unexpected space before function parentheses. (space-before-function-paren)

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]

lib/editor/tiny/plugins/aic/classes/ai.php
(#90) Phpdocs for function ai::format_response_card 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, 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, 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]