rofrischmann/fela

View on GitHub

Showing 41 of 41 total issues

File eslint_vx.x.x.js has 1845 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// flow-typed signature: 470f4f8e06492465d32c88bab53d4c5b
// flow-typed version: <<STUB>>/eslint_v^3.14.0/flow_v0.38.0

/**
 * This is an autogenerated libdef stub for:
Severity: Major
Found in flow-typed/npm/eslint_vx.x.x.js - About 5 days to fix

    File eslint-plugin-jsx-a11y_vx.x.x.js has 993 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // flow-typed signature: 375a6266fd32da8b90ac29a1bf47c6ca
    // flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^3.0.2/flow_v0.38.0
    
    /**
     * This is an autogenerated libdef stub for:
    Severity: Major
    Found in flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js - About 2 days to fix

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

      // flow-typed signature: 898fc9205f942f10e1958989fc3958fb
      // flow-typed version: <<STUB>>/babel-eslint_v^7.1.1/flow_v0.38.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Major
      Found in flow-typed/npm/babel-eslint_vx.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/eslint-config-airbnb_vx.x.x.js on lines 1..74

      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 226.

      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 2 locations. Consider refactoring.
      Open

      // flow-typed signature: aaa88b740f3bd9ac16a0bdb3f0a89338
      // flow-typed version: <<STUB>>/eslint-config-airbnb_v^14.0.0/flow_v0.38.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Major
      Found in flow-typed/npm/eslint-config-airbnb_vx.x.x.js and 1 other location - About 1 day to fix
      flow-typed/npm/babel-eslint_vx.x.x.js on lines 1..74

      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 226.

      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 2 locations. Consider refactoring.
      Open

      // flow-typed signature: 72f0f4e25d2dcbf01dcc51e2592c34ce
      // flow-typed version: <<STUB>>/gh-pages_v^0.11.0/flow_v0.38.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Major
      Found in flow-typed/npm/gh-pages_vx.x.x.js and 1 other location - About 6 hrs to fix
      flow-typed/npm/babel-plugin-transform-dev-warning_vx.x.x.js on lines 1..61

      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 164.

      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 2 locations. Consider refactoring.
      Open

      // flow-typed signature: a91b8744dde66259c7bb6c1e8368422d
      // flow-typed version: <<STUB>>/babel-plugin-transform-dev-warning_v^0.1.0/flow_v0.38.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Major
      Found in flow-typed/npm/babel-plugin-transform-dev-warning_vx.x.x.js and 1 other location - About 6 hrs to fix
      flow-typed/npm/gh-pages_vx.x.x.js on lines 1..61

      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 164.

      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

      File eslint-plugin-react_vx.x.x.js has 393 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // flow-typed signature: 39d1796ef278e389cee6176d862601a2
      // flow-typed version: <<STUB>>/eslint-plugin-react_v^6.9.0/flow_v0.38.0
      
      /**
       * This is an autogenerated libdef stub for:
      Severity: Minor
      Found in flow-typed/npm/eslint-plugin-react_vx.x.x.js - About 5 hrs to fix

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

        // flow-typed signature: 02d507ed1a82883079f1814c3a3ef0bd
        // flow-typed version: <<STUB>>/rollup-plugin-commonjs_v2.2.1/flow_v0.38.0
        
        /**
         * This is an autogenerated libdef stub for:
        Severity: Major
        Found in flow-typed/npm/rollup-plugin-commonjs_vx.x.x.js and 2 other locations - About 5 hrs to fix
        flow-typed/npm/cross-env_vx.x.x.js on lines 1..54
        flow-typed/npm/rollup-plugin-babel_vx.x.x.js on lines 1..54

        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 136.

        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 3 locations. Consider refactoring.
        Open

        // flow-typed signature: 7aa3edb7ab183674432fb52ccb10acb5
        // flow-typed version: <<STUB>>/cross-env_v^1.0.8/flow_v0.38.0
        
        /**
         * This is an autogenerated libdef stub for:
        Severity: Major
        Found in flow-typed/npm/cross-env_vx.x.x.js and 2 other locations - About 5 hrs to fix
        flow-typed/npm/rollup-plugin-babel_vx.x.x.js on lines 1..54
        flow-typed/npm/rollup-plugin-commonjs_vx.x.x.js on lines 1..54

        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 136.

        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 3 locations. Consider refactoring.
        Open

        // flow-typed signature: 948d57d280caa5d5150c22dbfcbbb4bc
        // flow-typed version: <<STUB>>/rollup-plugin-babel_v2.4.0/flow_v0.38.0
        
        /**
         * This is an autogenerated libdef stub for:
        Severity: Major
        Found in flow-typed/npm/rollup-plugin-babel_vx.x.x.js and 2 other locations - About 5 hrs to fix
        flow-typed/npm/cross-env_vx.x.x.js on lines 1..54
        flow-typed/npm/rollup-plugin-commonjs_vx.x.x.js on lines 1..54

        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 136.

        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

        File rollup_vx.x.x.js has 321 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        // flow-typed signature: 0a687318db3265f5a0c10e9905a23a69
        // flow-typed version: <<STUB>>/rollup_v0.26.3/flow_v0.38.0
        
        /**
         * This is an autogenerated libdef stub for:
        Severity: Minor
        Found in flow-typed/npm/rollup_vx.x.x.js - About 3 hrs to fix

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

              return {
                _className: renderer.cache[0],
                fontSize: `${fontSize}px`,
                width: `${width}px`,
                ':hover': {
          Severity: Major
          Found in benchmark/rule-optimisation/cases/optimized.js and 1 other location - About 2 hrs to fix
          benchmark/rule-optimisation/cases/preprocessed.js on lines 24..34

          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 93.

          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

              return {
                _className: renderer.cache[0],
                fontSize: `${fontSize}px`,
                width: `${width}px`,
                ':hover': {
          Severity: Major
          Found in benchmark/rule-optimisation/cases/preprocessed.js and 1 other location - About 2 hrs to fix
          benchmark/rule-optimisation/cases/optimized.js on lines 23..33

          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 93.

          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 3 locations. Consider refactoring.
          Open

              return {
                _className: 'a b c d e',
                fontSize: `${fontSize}px`,
                width: `${width}px`,
                ':hover': {
          Severity: Major
          Found in benchmark/rule-optimisation/cases/extracted.js and 2 other locations - About 2 hrs to fix
          benchmark/rule-optimisation/cases/precompiled.js on lines 56..66
          benchmark/rule-optimisation/cases/rehydrated.js on lines 27..37

          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 85.

          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 3 locations. Consider refactoring.
          Open

              return {
                _className: 'a b c d e',
                fontSize: `${fontSize}px`,
                width: `${width}px`,
                ':hover': {
          Severity: Major
          Found in benchmark/rule-optimisation/cases/rehydrated.js and 2 other locations - About 2 hrs to fix
          benchmark/rule-optimisation/cases/extracted.js on lines 9..19
          benchmark/rule-optimisation/cases/precompiled.js on lines 56..66

          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 85.

          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 3 locations. Consider refactoring.
          Open

              return {
                _className: 'a b c d e',
                fontSize: `${fontSize}px`,
                width: `${width}px`,
                ':hover': {
          Severity: Major
          Found in benchmark/rule-optimisation/cases/precompiled.js and 2 other locations - About 2 hrs to fix
          benchmark/rule-optimisation/cases/extracted.js on lines 9..19
          benchmark/rule-optimisation/cases/rehydrated.js on lines 27..37

          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 85.

          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

          Function precompiled has 60 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export default function precompiled() {
            const renderer = createRenderer({ plugins: [...webPreset] })
            const rule = ({ fontSize, width }) => {
              if (!renderer.cache[0]) {
                renderer.cache['backgroundColorblack'] = {
          Severity: Major
          Found in benchmark/rule-optimisation/cases/precompiled.js - About 2 hrs to fix

            File eslint-plugin-import_vx.x.x.js has 261 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            // flow-typed signature: 84c5e55bff091cbd9594af11fc665d9e
            // flow-typed version: <<STUB>>/eslint-plugin-import_v^2.2.0/flow_v0.38.0
            
            /**
             * This is an autogenerated libdef stub for:
            Severity: Minor
            Found in flow-typed/npm/eslint-plugin-import_vx.x.x.js - About 2 hrs to fix

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

              // flow-typed signature: fbf3a5fa9a853d529753c7c2a09c20e4
              // flow-typed version: <<STUB>>/rollup-plugin-uglify_v0.3.1/flow_v0.38.0
              
              /**
               * This is an autogenerated libdef stub for:
              Severity: Major
              Found in flow-typed/npm/rollup-plugin-uglify_vx.x.x.js and 2 other locations - About 2 hrs to fix
              flow-typed/npm/babel-plugin-add-module-exports_vx.x.x.js on lines 1..40
              flow-typed/npm/unitless-css-property_vx.x.x.js on lines 1..40

              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 80.

              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 3 locations. Consider refactoring.
              Open

              // flow-typed signature: 3774f13ffe7f6a4a8b15b0c6a2a3b4a6
              // flow-typed version: <<STUB>>/babel-plugin-add-module-exports_v^0.2.1/flow_v0.38.0
              
              /**
               * This is an autogenerated libdef stub for:
              Severity: Major
              Found in flow-typed/npm/babel-plugin-add-module-exports_vx.x.x.js and 2 other locations - About 2 hrs to fix
              flow-typed/npm/rollup-plugin-uglify_vx.x.x.js on lines 1..40
              flow-typed/npm/unitless-css-property_vx.x.x.js on lines 1..40

              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 80.

              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