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

Clean up additional javascript issues found by eslint

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      eslint --format unix jstests/ src/mongo/

      Show
      eslint --format unix jstests/ src/mongo/
    • Sprint:
      TIG 11 (03/11/16)

      Description

      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]
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: