Showing 1,982 of 1,982 total issues

Function permuteHelperAST has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function permuteHelperAST(file, metadata, id, localBindings, getDependency) {
Severity: Minor
Found in packages/babel-helpers/src/index.js - About 35 mins to fix

    Function push has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      mutatorMap: Object,
      node: Object,
      kind: string,
      file,
      scope?,
    Severity: Minor
    Found in packages/babel-helper-define-map/src/index.js - About 35 mins to fix

      Function constructExportCall has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        path,
        exportIdent,
        exportNames,
        exportValues,
        exportStarTarget,
      Severity: Minor
      Found in packages/babel-plugin-transform-modules-systemjs/src/index.js - About 35 mins to fix

        Function default has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          node: Object,
          nodes: Array<Object>,
          file,
          scope: Scope,
          allowedSingleIdent?: boolean,
        Severity: Minor
        Found in packages/babel-helper-explode-assignable-expression/src/index.js - About 35 mins to fix

          Function traverseSimpleImpl has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            node: Object,
            enter: ?Function,
            exit: ?Function,
            state: ?T,
            ancestors: TraversalAncestors,
          Severity: Minor
          Found in packages/babel-types/src/traverse/traverse.js - About 35 mins to fix

            Function transformPrivateNamesUsage has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              ref,
              path,
              privateNamesMap,
              loose,
              state,
            Severity: Minor
            Found in packages/babel-helper-create-class-features-plugin/src/fields.js - About 35 mins to fix

              Function replaceThisContext has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function replaceThisContext(path, ref, superRef, file, loose) {
              Severity: Minor
              Found in packages/babel-helper-create-class-features-plugin/src/fields.js - About 35 mins to fix

                Function getCachedValueOrWait has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                  asyncContext: boolean,
                  callCache: CacheMap<ArgT, ResultT, SideChannel>,
                  futureCache: CacheMap<ArgT, Lock<ResultT>, SideChannel>,
                  arg: ArgT,
                  data: SideChannel,
                Severity: Minor
                Found in packages/babel-core/src/config/caching.js - About 35 mins to fix

                  Function mergeExtendsChain has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                    chain: ConfigChain,
                    opts: ValidatedOptions,
                    dirname: string,
                    context: ConfigContext,
                    files: Set<ConfigFile>,
                  Severity: Minor
                  Found in packages/babel-core/src/config/config-chain.js - About 35 mins to fix

                    Function createDescriptors has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                      type: "plugin" | "preset",
                      items: PluginList,
                      dirname: string,
                      alias: string,
                      ownPass?: boolean,
                    Severity: Minor
                    Found in packages/babel-core/src/config/config-descriptors.js - About 35 mins to fix

                      Function buildOverrideEnvDescriptors has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        { dirname, options },
                        alias,
                        descriptors,
                        index,
                        envName,
                      Severity: Minor
                      Found in packages/babel-core/src/config/config-chain.js - About 35 mins to fix

                        Function checkNoUnwrappedItemOptionPairs has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                          lastItem: UnloadedDescriptor,
                          thisItem: UnloadedDescriptor,
                          type: "plugin" | "preset",
                          index: number,
                          e: Error,
                        Severity: Minor
                        Found in packages/babel-core/src/config/validation/options.js - About 35 mins to fix

                          Function loadOneConfig has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                            names: string[],
                            dirname: string,
                            envName: string,
                            caller: CallerMetadata | void,
                            previousConfig?: ConfigFile | null = null,
                          Severity: Minor
                          Found in packages/babel-core/src/config/files/configuration.js - About 35 mins to fix

                            Function traverse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              parent: Object | Array<Object>,
                              opts?: Object,
                              scope?: Object,
                              state: Object,
                              parentPath: Object,
                            Severity: Minor
                            Found in packages/babel-traverse/src/index.js - About 35 mins to fix

                              Function buildHelper has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                runtimeName,
                                pkgDirname,
                                helperFilename,
                                helperName,
                                { esm, corejs }
                              Severity: Minor
                              Found in packages/babel-plugin-transform-runtime/scripts/build-dist.js - About 35 mins to fix

                                Function convertBlockScopedToVar has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                  path,
                                  node,
                                  parent,
                                  scope,
                                  moveBindingsToParent = false,
                                Severity: Minor
                                Found in packages/babel-plugin-transform-block-scoping/src/index.js - About 35 mins to fix

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                        if (
                                          path.isFunctionExpression() &&
                                          path.has("id") &&
                                          !path.get("id").node[t.NOT_LOCAL_BINDING]
                                        ) {
                                  Severity: Minor
                                  Found in packages/babel-traverse/src/scope/index.js and 1 other location - About 35 mins to fix
                                  packages/babel-traverse/src/scope/index.js on lines 263..269

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                        if (this.state.pos >= this.length) {
                                          throw this.raise(this.state.start, Errors.UnterminatedString);
                                        }
                                  Severity: Major
                                  Found in packages/babel-parser/src/tokenizer/index.js and 3 other locations - About 35 mins to fix
                                  packages/babel-parser/src/plugins/jsx/index.js on lines 98..100
                                  packages/babel-parser/src/plugins/jsx/index.js on lines 158..160
                                  packages/babel-parser/src/tokenizer/index.js on lines 1261..1263

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Identical blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                      if (
                                        path.isFunctionExpression() &&
                                        path.has("id") &&
                                        !path.get("id").node[t.NOT_LOCAL_BINDING]
                                      ) {
                                  Severity: Minor
                                  Found in packages/babel-traverse/src/scope/index.js and 1 other location - About 35 mins to fix
                                  packages/babel-traverse/src/scope/index.js on lines 809..815

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 4 locations. Consider refactoring.
                                  Open

                                          if (this.state.pos >= this.length) {
                                            throw this.raise(this.state.start, JsxErrors.UnterminatedJsxContent);
                                          }
                                  Severity: Major
                                  Found in packages/babel-parser/src/plugins/jsx/index.js and 3 other locations - About 35 mins to fix
                                  packages/babel-parser/src/plugins/jsx/index.js on lines 158..160
                                  packages/babel-parser/src/tokenizer/index.js on lines 1227..1229
                                  packages/babel-parser/src/tokenizer/index.js on lines 1261..1263

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 47.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language