Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22850

Clean up additional javascript issues found by eslint

    • Fully Compatible
    • ALL
    • Hide
      eslint --format unix jstests/ src/mongo/
      Show
      eslint --format unix jstests/ src/mongo/
    • TIG 11 (03/11/16)

      The following issues were found that will cause problems with clang-format:

      jstests/core/numberlong.js:38:7: Missing semicolon. [Error/semi]
      jstests/core/numberlong.js:65:7: Missing semicolon. [Error/semi]
      jstests/noPassthrough/js_protection.js:60:67: Missing semicolon. [Error/semi]
      jstests/readonly/lib/read_only_test.js:67:2: Unnecessary semicolon. [Error/no-extra-semi]
      jstests/readonly/lib/read_only_test.js:85:2: Unnecessary semicolon. [Error/no-extra-semi]
      

      Additionally the following issues were missed in the last clean up pass:

      /jstests/concurrency/fsm_libs/fsm.js:34:32: Arrow function should not return assignment. [Error/no-return-assign]
      src/mongo/shell/servers.js:857:17: unnecessary '.apply()'. [Error/no-useless-call]
      

            Assignee:
            michael.grundy Michael Grundy
            Reporter:
            michael.grundy Michael Grundy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: