rofrischmann/fela

View on GitHub

Showing 24 of 24 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

      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

        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/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 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 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/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

          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

          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

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

              // flow-typed signature: 8a1d5147a0d7527cc6f338a678839eb4
              // flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.30.0/flow_v0.38.0
              
              /**
               * This is an autogenerated libdef stub for:
              Severity: Minor
              Found in flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js - About 2 hrs to fix

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

                  testSuite.on('complete', function() {
                    beautifyBenchmark.log()
                    console.log(`Fastest is: ${this.filter('fastest').map('name')}`)
                  })
                Severity: Major
                Found in benchmark/rehydration/index.js and 1 other location - About 1 hr to fix
                benchmark/rule-optimisation/index.js on lines 30..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 63.

                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

                  testSuite.on('complete', function() {
                    beautifyBenchmark.log()
                    console.log(`Fastest is: ${this.filter('fastest').map('name')}`)
                  })
                Severity: Major
                Found in benchmark/rule-optimisation/index.js and 1 other location - About 1 hr to fix
                benchmark/rehydration/index.js on lines 19..22

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

                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 rehydrated has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export default function rehydrated() {
                  const renderer = createRenderer({ plugins: [...webPreset] })
                  const rule = ({ fontSize, width }) => {
                    if (!renderer.cache[0]) {
                      renderer.cache = {
                Severity: Minor
                Found in benchmark/rule-optimisation/cases/rehydrated.js - About 1 hr to fix

                  Function preprocessed has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export default function preprocessed() {
                    const renderer = createRenderer({ plugins: [...webPreset] })
                  
                    const rule = ({ fontSize, width }) => {
                      if (!renderer.cache[0]) {
                  Severity: Minor
                  Found in benchmark/rule-optimisation/cases/preprocessed.js - About 1 hr to fix

                    Function optimized has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export default function optimized() {
                      const renderer = createRenderer({ plugins: [...webPreset] })
                      const rule = ({ fontSize, width }) => {
                        if (!renderer.cache[0]) {
                          renderer.cache[0] = renderer.renderRule(() => ({
                    Severity: Minor
                    Found in benchmark/rule-optimisation/cases/optimized.js - About 1 hr to fix

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

                          cache[declarationReference] = {
                            type: 'RULE',
                            className,
                            selector: className + pseudo,
                            declaration: property + value,
                      Severity: Major
                      Found in benchmark/rehydration/cases/declarationRegex.js and 1 other location - About 1 hr to fix
                      benchmark/rehydration/cases/propertyValueRegex.js on lines 14..21

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

                      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

                          cache[declarationReference] = {
                            type: 'RULE',
                            className,
                            selector: className + pseudo,
                            declaration: property + value,
                      Severity: Major
                      Found in benchmark/rehydration/cases/propertyValueRegex.js and 1 other location - About 1 hr to fix
                      benchmark/rehydration/cases/declarationRegex.js on lines 12..19

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

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

                            renderer.cache['backgroundColorblack'] = {
                              type: 'RULE_TYPE',
                              selector: '.a',
                              className: 'a',
                              declaration: 'background-color:black',
                      Severity: Major
                      Found in benchmark/rule-optimisation/cases/precompiled.js and 4 other locations - About 35 mins to fix
                      benchmark/rule-optimisation/cases/precompiled.js on lines 18..25
                      benchmark/rule-optimisation/cases/precompiled.js on lines 26..33
                      benchmark/rule-optimisation/cases/precompiled.js on lines 34..41
                      benchmark/rule-optimisation/cases/precompiled.js on lines 42..49

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

                      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