Commons:User scripts/reports/MediaWiki:ExcerptTree.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This is the report page for MediaWiki:ExcerptTree.js. It is bot-maintained. All manual changes might be overwritten.

jshint[edit]

  1. ISSUE: line 26 character 29: 'spread/rest operator' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz). - Evidence: matches = [ ...content.matchAll( regexp ) ];
  2. ISSUE: line 26 character 59: Expected an assignment or function call and instead saw an expression. - Evidence: matches = [ ...content.matchAll( regexp ) ];
  3. ISSUE: line 31 character 70: 'arrow function syntax (=>)' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz). - Evidence: var params = match[1].split( '|' ).filter( param => /=/.test( param ) === false ); // Remove all named params

esprima[edit]

  1. ERROR: Cannot parse line 26 column 17: Unexpected token .