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

  1. 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.');
  2. 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.');
  3. 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.');
  4. ISSUE: line 44 character 50: Expected '{' and instead saw 'svgEdit'. - Evidence: if (mw.util.getParamValue('svgrawedit')) svgEdit.run();
  5. 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*/
  6. ISSUE: line 123 character 22: Expected '{' and instead saw 'summary'. - Evidence: if (summary) summary += ' // ';
  7. ISSUE: line 96 character 27: 'MwJSBot' is not defined. - Evidence: svgEdit.bot = new MwJSBot();