Commons:User scripts/users namespace/reports/User:Wesalius/SVGedit.js
This is the report page for User:Wesalius/SVGedit.js. It is bot-maintained. All manual changes might be overwritten.
jshint edit
- ISSUE:
line 34 character 84
: Expected '{' and instead saw 'return'. - Evidence:if (conf.wgNamespaceNumber !== NS_FILE || !/\.svg$/.test(conf.wgPageName)) return svgEdit.log('Not a SVG-file. Aborting initialization.');
- ISSUE:
line 35 character 31
: Expected '{' and instead saw 'return'. - Evidence:if (mw.user.isAnon()) return svgEdit.log('Anonymous users cannot upload files. Aborting initialization.');
- ISSUE:
line 36 character 102
: Expected '{' and instead saw 'return'. - Evidence:if (conf.wgRevisionId < 1 || $('.filehistory').find('td.filehistory-selected').length === 0) return svgEdit.log('Page or file does not exist.');
- ISSUE:
line 44 character 50
: Expected '{' and instead saw 'svgEdit'. - Evidence:if (mw.util.getParamValue('svgrawedit')) svgEdit.run();
- ISSUE:
line 48 character 71
: Expected '{' and instead saw 'mw'. - Evidence:if (null === mw.loader.getState('mediawiki.commons.MwJSBot')) mw.loader.implement('mediawiki.commons.MwJSBot', ["//commons.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Rillke/MwJSBot.js"], { /*no styles*/
- ISSUE:
line 123 character 22
: Expected '{' and instead saw 'summary'. - Evidence:if (summary) summary += ' // ';
- ISSUE:
line 96 character 27
: 'MwJSBot' is not defined. - Evidence:svgEdit.bot = new MwJSBot();