aMarCruz/jspreproc

View on GitHub
Merge pull request #9 from aMarCruz/dev #200
Alberto Martínez authored 5f31820d
errored00:00:28
An engine encountered an error
E10 Error

We had trouble running the eslint engine.

The engine's output shown below may indicate the cause of the error.

If not, please contact us so we can investigate further.

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: 'engines' has been deprecated, please use 'plugins' instead
WARNING: 'exclude_paths' has been deprecated, please use 'exclude_patterns' instead
WARNING: 'ratings' has been deprecated, and will not be used
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-eslint:b1476
b1476: Pulling from codeclimate/codeclimate-eslint
a2abf6c4d29d: Pulling fs layer
716b0e096692: Pulling fs layer
d65f0cc0c2e2: Pulling fs layer
c7fbf3401fad: Pulling fs layer
811ff2aaa8ce: Pulling fs layer
6961ed5764f3: Pulling fs layer
77321725071c: Pulling fs layer
e5ddd6d9acb6: Pulling fs layer
176840c42401: Pulling fs layer
414f407f492d: Pulling fs layer
7023f3ea382b: Pulling fs layer
af2390cc3e5d: Pulling fs layer
8bc34c14ff5d: Pulling fs layer
50a05621282c: Pulling fs layer
543da683a9cb: Pulling fs layer
c7fbf3401fad: Waiting
811ff2aaa8ce: Waiting
6961ed5764f3: Waiting
77321725071c: Waiting
e5ddd6d9acb6: Waiting
176840c42401: Waiting
414f407f492d: Waiting
7023f3ea382b: Waiting
af2390cc3e5d: Waiting
8bc34c14ff5d: Waiting
50a05621282c: Waiting
543da683a9cb: Waiting
716b0e096692: Verifying Checksum
716b0e096692: Download complete
c7fbf3401fad: Verifying Checksum
c7fbf3401fad: Download complete
a2abf6c4d29d: Verifying Checksum
a2abf6c4d29d: Download complete
811ff2aaa8ce: Verifying Checksum
811ff2aaa8ce: Download complete
d65f0cc0c2e2: Verifying Checksum
d65f0cc0c2e2: Download complete
6961ed5764f3: Verifying Checksum
6961ed5764f3: Download complete
77321725071c: Verifying Checksum
176840c42401: Verifying Checksum
176840c42401: Download complete
e5ddd6d9acb6: Verifying Checksum
e5ddd6d9acb6: Download complete
414f407f492d: Verifying Checksum
414f407f492d: Download complete
7023f3ea382b: Verifying Checksum
7023f3ea382b: Download complete
8bc34c14ff5d: Verifying Checksum
8bc34c14ff5d: Download complete
543da683a9cb: Verifying Checksum
543da683a9cb: Download complete
50a05621282c: Verifying Checksum
50a05621282c: Download complete
af2390cc3e5d: Verifying Checksum
af2390cc3e5d: Download complete
a2abf6c4d29d: Pull complete
716b0e096692: Pull complete
d65f0cc0c2e2: Pull complete
c7fbf3401fad: Pull complete
811ff2aaa8ce: Pull complete
6961ed5764f3: Pull complete
77321725071c: Pull complete
e5ddd6d9acb6: Pull complete
176840c42401: Pull complete
414f407f492d: Pull complete
7023f3ea382b: Pull complete
af2390cc3e5d: Pull complete
8bc34c14ff5d: Pull complete
50a05621282c: Pull complete
543da683a9cb: Pull complete
Digest: sha256:1927fd540edeebf51540dffc05058271fdf3caec4291ef07f3c1dd0947431add
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-eslint:b1476
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
7
eslint
eslint engine documentation
View output
/usr/src/app/lib/validate_config.js:17
        throw e;
        ^
YAMLException: Cannot read config file: /code/.eslintrc
Error: duplicated mapping key at line 196, column 37:
        no-extra-parens: 2              # disallow wrapping of non-IIFE  ... 
                                        ^
    at generateError (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:162:10)
    at throwError (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:168:9)
    at storeMappingPair (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:305:7)
    at readBlockMapping (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1066:9)
    at composeNode (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1327:12)
    at readBlockMapping (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1057:11)
    at composeNode (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1327:12)
    at readDocument (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1489:3)
    at loadDocuments (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1545:5)
    at load (/usr/local/node_modules/js-yaml/lib/js-yaml/loader.js:1562:19) {
  reason: 'duplicated mapping key',
  mark: Mark {
    name: null,
    buffer: "# extends: 'eslint:recommended'\n" +
      '\n' +
      'root: true\n' +
      '\n' +
      'env:\n' +
      '\n' +
      '    ###########################################################################\n' +
      '    #                                                                         #\n' +
      '    #   ENVIRONMENT: if you write code that will be executed in one of the    #\n' +
      '    #   following environments, the value for that environment should be      #\n' +
      '    #   set to true.                                                          #\n' +
      '    #                                                                         #\n' +
      '    ###########################################################################\n' +
      '\n' +
      '    browser: false\n' +
      '    es6: false\n' +
      '    node: true\n' +
      '\n' +
      'ecmaFeatures:\n' +
      '    #modules: true\n' +
      '    #blockBindings: true\n' +
      '\n' +
      'globals:\n' +
      '\n' +
      '    ###########################################################################\n' +
      '    #                                                                         #\n' +
      '    #   GLOBALS: ESLint will assume the following variables are declared      #\n' +
      '    #   globally; other variables will require explicit declaration.          #\n' +
      '    #                                                                         #\n' +
      '    ###########################################################################\n' +
      '\n' +
      '    require: true\n' +
      '\n' +
      'rules:\n' +
      '\n' +
      '    ###########################################################################\n' +
      '    #                                                                         #\n' +
      '    #   POSSIBLE ERRORS: these rules point out areas where you might have     #\n' +
      '    #   made mistakes.                                                        #\n' +
      '    #                                                                         #\n' +
      '    ###########################################################################\n' +
      '\n' +
      '    no-console: 0               # disallow use of console\n' +
      '    comma-dangle: 2             # disallow trailing commas in object literals\n' +
      '    no-cond-assign: 2           # disallow assignment in conditional expressions\n' +
      '    no-constant-condition: 2    # disallow use of constant expressions in conditions\n' +
      '    no-control-regex: 2         # disallow control characters in regular expressions\n' +
      '    no-debugger: 2              # disallow use of debugger\n' +
      '    no-dupe-args: 2             # disallow duplicate arguments in functions\n' +
      '    no-dupe-keys: 2             # disallow duplicate keys when creating object literals\n' +
      '    no-duplicate-case: 2        # disallow a duplicate case label\n' +
      '    no-empty-character-class: 2 # disallow the use of empty character classes in regular expressions\n' +
      '    no-empty: 2                 # disallow empty statements\n' +
      '    no-ex-assign: 2             # disallow assigning to the exception in a catch block\n' +
      '    no-extra-boolean-cast: 2    # disallow double-negation boolean casts in a boolean context\n' +
      '    no-extra-parens: 1          # disallow unnecessary parentheses\n' +
      '    no-extra-semi: 2            # disallow unnecessary semicolons\n' +
      '    no-func-assign: 2           # disallow overwriting functions written as function declarations\n' +
      '    no-inner-declarations: 2    # disallow function or variable declarations in nested blocks\n' +
      '    no-invalid-regexp: 2        # disallow invalid regular expression strings in the RegExp constructor\n' +
      '    no-irregular-whitespace: 2  # disallow irregular whitespace outside of strings and comments\n' +
      '    no-negated-in-lhs: 2        # disallow negation of the left operand of an in expression\n' +
      '    no-obj-calls: 2             # disallow the use of object properties of the global object (Math and JSON) as functions\n' +
      '    no-regex-spaces: 1          # disallow multiple spaces in a regular expression literal\n' +
      '    no-sparse-arrays: 2         # disallow sparse arrays\n' +
      '    no-unreachable: 2           # disallow unreachable statements after a return, throw, continue, or break statement\n' +
      '    use-isnan: 2                # disallow comparisons with the value NaN\n' +
      '    valid-jsdoc: [2, { "requireReturn": false }] # ensure JSDoc comments are valid, returns optional in void functions\n' +
      '    valid-typeof: 2             # ensure that the results of typeof are compared against a valid string\n' +
      '    no-unexpected-multiline: 2  # Avoid code that looks like two expressions but is actually one\n' +
      '\n' +
      '    ###########################################################################\n' +
      '    #                                                                         #\n' +
      '    #   BEST PRACTICES: these rules are designed to prevent you from making   #\n' +
      '    #   mistakes. They either prescribe a better way of doing something or    #\n' +
      '    #   help you avoid pitfalls.                                              #\n' +
      '    #                                                                         #\n' +
      '    ###########################################################################\n' +
      '\n' +
      '    block-scoped-var: 2         # treat var statements as if they were block scoped\n' +
      '    complexity: [1, 9]          # specify the maximum cyclomatic complexity allowed in a program\n' +
      '    consistent-return: 1        # require return statements to either always or never specify values\n' +
      '    curly: 0                    # specify curly brace conventions for all control statements\n' +
      '    default-case: 1             # require default case in switch statements\n' +
      '    dot-notation: 1             # encourages use of dot notation whenever possible\n' +
      '    eqeqeq: [2, "smart"]        # require the use of === and !==\n' +
      '    guard-for-in: 1             # make sure for-in loops have an if statement\n' +
      '    no-alert: 2                 # disallow the use of alert, confirm, and prompt\n' +
      '    no-caller: 2                # disallow use of arguments.caller or arguments.callee\n' +
      '    no-div-regex: 2             # disallow division operators explicitly at beginning of regular expression\n' +
      '    no-else-return: 1           # disallow else after a return in an if\n' +
      '    no-empty-label: 2           # disallow use of labels for anything other then loops and switches\n' +
      '    no-eq-null: 0               # disallow comparisons to null without a type-checking operator\n' +
      '    no-eval: 2                  # disallow use of eval()\n' +
      '    no-extend-native: 2         # disallow adding to native types\n' +
      '    no-extra-bind: 2            # disallow unnecessary function binding\n' +
      '    no-fallthrough: 2           # disallow fallthrough of case statements\n' +
      '    no-floating-decimal: 2      # disallow the use of leading or trailing decimal points in numeric literals\n' +
      '    no-implied-eval: 2          # disallow use of eval()-like methods\n' +
      '    no-iterator: 2              # disallow usage of __iterator__ property\n' +
      '    no-labels: 2                # disallow use of labeled statements\n' +
      '    no-lone-blocks: 2           # disallow unnecessary nested blocks\n' +
      '    no-loop-func: 2             # disallow creation of functions within loops\n' +
      '    #no-multi-spaces: 0         # disallow use of multiple spaces\n' +
      '    no-multi-str: 2             # disallow use of multiline strings\n' +
      '    no-native-reassign: 2       # disallow reassignments of native objects\n' +
      '    no-new: 2                   # disallow use of new operator when not part of the assignment or comparison\n' +
      '    no-new-func: 2              # disallow use of new operator for Function object\n' +
      '    no-new-wrappers: 2          # disallows creating new instances of String,Number, and Boolean\n' +
      '    no-octal: 2                 # disallow use of octal literals\n' +
      '    no-octal-escape: 2          # disallow use of octal escape sequences in string literals\n' +
      '    no-proto: 2                 # disallow usage of __proto__ property\n' +
      '    no-redeclare: 2             # disallow declaring the same variable more then once\n' +
      '    no-return-assign: 2         # disallow use of assignment in return statement\n' +
      '    no-script-url: 2            # disallow use of javascript urls.\n' +
      '    no-self-compare: 2          # disallow comparisons where both sides are exactly the same\n' +
      '    no-sequences: 2             # disallow use of comma operator\n' +
      '    no-unused-expressions: 1    # disallow usage of expressions in statement position\n' +
      '    no-void: 2                  # disallow use of void operator\n' +
      '    no-warning-comments: 0      # disallow usage of configurable warning terms in comments\n' +
      '    no-with: 2                  # disallow use of the with statement\n' +
      '    radix: 2                    # require use of the second argument for parseInt()\n' +
      '    wrap-iife: [2, "inside"]    # require immediate function invocation to be wrapped in parentheses\n' +
      '    yoda: [2, "never"]          # require or disallow Yoda conditions\n' +
      '\n' +
      '    ###########################################################################\n' +
      '    #                                                                         #\n' +
      '    #   STRICT MODE: these rules relate to using strict mode.                 #\n' +
      '    #                                                                         #\n' +
      '    ###########################################################################\n' +
      '\n' +
      '    #strict: [2, "global"]      # require run in strict mode\n' +
      '    #strict: 2                  # require strict mode\n' +
      '\n' +
      '    ###########################################################################\n' +
      '    #                                                                         #\n' +
      '    #   VARIABLES: these rules have to do with variable declarations.         #\n' +
      '    #                                                                         #\n' +
      '    ###########################################################################\n' +
      '\n' +
      '    no-catch-shadow: 2          # disallow the catch clause parameter name being the same as a variable in the outer scope\n' +
      '    no-delete-var: 2            # disallow deletion of variables\n' +
      '    no-label-var: 2             # disallow labels that share a name with a variable\n' +
      '    no-shadow: 2                # disallow declaration of variables already declared in the outer scope\n' +
      '    no-shadow-restricted-names: 2 # disallow shadowing of names such as arguments\n' +
      '    no-undef: 2                 # disallow use of undeclared variables unless mentioned in a             block\n' +
      '    no-undef-init: 1            # disallow use of undefined when initializing variables\n' +
      '    no-undefined: 2             # disallow use of undefined variable\n' +
      '    no-unused-'... 4703 more characters,
    position: 13527,
    line: 195,
    column: 36
  }
}

Node.js v17.3.0