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

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

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

jshint[edit]

  1. ISSUE: line 15 character 28: Use '===' to compare with 'null'. - Evidence: if ( document.cookie == null || document.cookie.length == 0
  2. ISSUE: line 15 character 62: Use '===' to compare with '0'. - Evidence: if ( document.cookie == null || document.cookie.length == 0
  3. ISSUE: line 16 character 24: Use '===' to compare with 'null'. - Evidence: || cookie_name == null || cookie_name.length == 0)
  4. ISSUE: line 16 character 54: Use '===' to compare with '0'. - Evidence: || cookie_name == null || cookie_name.length == 0)
  5. ISSUE: line 31 character 14: Use '===' to compare with 'null'. - Evidence: if (form == null || form.elements == null || form.elements.length == 0) return;
  6. ISSUE: line 31 character 39: Use '===' to compare with 'null'. - Evidence: if (form == null || form.elements == null || form.elements.length == 0) return;
  7. ISSUE: line 31 character 71: Use '===' to compare with '0'. - Evidence: if (form == null || form.elements == null || form.elements.length == 0) return;
  8. ISSUE: line 49 character 31: Expected a 'break' statement before 'case'. - Evidence: single_select = true;
  9. ISSUE: line 54 character 33: Use '===' to compare with 'null'. - Evidence: if (element_value == null) {
  10. ISSUE: line 67 character 29: Use '===' to compare with 'null'. - Evidence: if (element_value == null) element_value = "";
  11. ISSUE: line 73 character 25: Use '!==' to compare with 'null'. - Evidence: if (element_value != null) {
  12. ISSUE: line 75 character 23: Use '===' to compare with 'null'. - Evidence: if (this_item == null || this_item.length == 0) this_item = element.name;
  13. ISSUE: line 75 character 51: Use '===' to compare with '0'. - Evidence: if (this_item == null || this_item.length == 0) this_item = element.name;
  14. ISSUE: line 77 character 24: Use '===' to compare with 'null'. - Evidence: if (cookie_val == null || cookie_val.length == 0)
  15. ISSUE: line 77 character 53: Use '===' to compare with '0'. - Evidence: if (cookie_val == null || cookie_val.length == 0)
  16. ISSUE: line 83 character 20: Use '!==' to compare with 'null'. - Evidence: if (cookie_val != null) {
  17. ISSUE: line 85 character 44: Use '!==' to compare with 'null'. - Evidence: + (cookie_attributes != null ? cookie_attributes : "");
  18. ISSUE: line 114 character 21: Do not use Number as a constructor. - Evidence: value = new Number (val);
  19. ISSUE: line 120 character 26: 'j' is already defined. - Evidence: for (var j = 0; j < numbers.length; j++)
  20. ISSUE: line 121 character 28: Do not use Number as a constructor. - Evidence: value[j] = new Number (numbers[j]);
  21. ISSUE: line 136 character 2: Missing semicolon. - Evidence: } // end FormRestorer