Commons:User scripts/users namespace/reports/User:Lucas Werkmeister/ACDC.js

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

This is the report page for User:Lucas Werkmeister/ACDC.js. It is bot-maintained. All manual changes might be overwritten.

jshint[edit]

  1. ISSUE: line 15 character 9: Expected ')' to match '(' from line 15 and instead saw 'function'. - Evidence: ( async function ( mw, $ ) {
  2. ISSUE: line 15 character 27: Missing semicolon. - Evidence: ( async function ( mw, $ ) {
  3. ISSUE: line 26 character 26: Missing semicolon. - Evidence: const require = await mw.loader.using( [
  4. ISSUE: line 44 character 26: Expected ':' and instead saw ','. - Evidence: { StatementWidget, AddPropertyWidget } = require( 'wikibase.mediainfo.statements' );
  5. ISSUE: line 44 character 48: Bad assignment. - Evidence: { StatementWidget, AddPropertyWidget } = require( 'wikibase.mediainfo.statements' );
  6. ISSUE: line 44 character 49: Missing semicolon. - Evidence: { StatementWidget, AddPropertyWidget } = require( 'wikibase.mediainfo.statements' );
  7. ISSUE: line 46 character 10: Missing semicolon. - Evidence: async function titlesToEntityIds( titles ) {
  8. ISSUE: line 46 character 11: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: async function titlesToEntityIds( titles ) {
  9. ISSUE: line 52 character 35: Missing semicolon. - Evidence: const response = await api.get( { action: 'query', titles: someTitles, formatversion: 2 } ),
  10. ISSUE: line 59 character 10: Missing semicolon. - Evidence: async function entityIdsToData( entityIds, props ) {
  11. ISSUE: line 59 character 11: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: async function entityIdsToData( entityIds, props ) {
  12. ISSUE: line 65 character 35: Missing semicolon. - Evidence: const response = await api.get( { action: 'wbgetentities', ids: someEntityIds, props, formatversion: 2 } );
  13. ISSUE: line 65 character 97: Expected ':' and instead saw ','. - Evidence: const response = await api.get( { action: 'wbgetentities', ids: someEntityIds, props, formatversion: 2 } );
  14. ISSUE: line 65 character 112: Expected '}' to match '{' from line 65 and instead saw ':'. - Evidence: const response = await api.get( { action: 'wbgetentities', ids: someEntityIds, props, formatversion: 2 } );
  15. ISSUE: line 65 character 114: Expected ')' and instead saw '2'. - Evidence: const response = await api.get( { action: 'wbgetentities', ids: someEntityIds, props, formatversion: 2 } );
  16. ISSUE: line 65 character 118: Expected an identifier and instead saw ')'. - Evidence: const response = await api.get( { action: 'wbgetentities', ids: someEntityIds, props, formatversion: 2 } );
  17. ISSUE: line 68 character 15: Creating global 'for' variable. Should be 'for (var const ...'. - Evidence: for ( const data of Object.values( entityData ) ) {
  18. ISSUE: line 68 character 21: Expected 'of' and instead saw 'data'. - Evidence: for ( const data of Object.values( entityData ) ) {
  19. ISSUE: line 68 character 29: Expected ')' to match '(' from line 68 and instead saw 'Object'. - Evidence: for ( const data of Object.values( entityData ) ) {
  20. ISSUE: line 68 character 35: Expected an identifier and instead saw '.'. - Evidence: for ( const data of Object.values( entityData ) ) {
  21. ISSUE: line 68 character 36: Missing semicolon. - Evidence: for ( const data of Object.values( entityData ) ) {
  22. ISSUE: line 68 character 56: Missing semicolon. - Evidence: for ( const data of Object.values( entityData ) ) {
  23. ISSUE: line 68 character 57: Expected an identifier and instead saw ')'. - Evidence: for ( const data of Object.values( entityData ) ) {
  24. ISSUE: line 68 character 58: Missing semicolon. - Evidence: for ( const data of Object.values( entityData ) ) {
  25. ISSUE: line 70 character 45: This character may get silently deleted by one or more browsers. - Evidence: // treat missing entities (i. e. no structured data yet) as having empty statements
  26. ISSUE: line 247 character 54: Expected '(' and instead saw '{'. - Evidence: this.pagePileButton.on( 'click', async () => {
  27. ISSUE: line 248 character 13: Expected an identifier and instead saw 'this' (a reserved word). - Evidence: this.menuPopup.toggle( false );
  28. ISSUE: line 248 character 17: Expected ')' to match '{' from line 247 and instead saw '.'. - Evidence: this.menuPopup.toggle( false );
  29. ISSUE: line 248 character 43: Expected ')' and instead saw ';'. - Evidence: this.menuPopup.toggle( false );
  30. ISSUE: line 248 character 44: Missing semicolon. - Evidence: this.menuPopup.toggle( false );
  31. ISSUE: line 249 character 37: Missing semicolon. - Evidence: const pagePileId = await OO.ui.prompt( 'PagePile ID:', { // TODO i18n
  32. ISSUE: line 260 character 18: Missing semicolon. - Evidence: await this.loadPagePile( pagePileId );
  33. ISSUE: line 261 character 11: Expected an identifier and instead saw ')'. - Evidence: } );
  34. ISSUE: line 262 character 5: Expected '(end)' and instead saw '}'. - Evidence: }

esprima[edit]

  1. ERROR: Cannot parse line 15 column 9: Unexpected token function