ajkochanowicz/Kickstrap

View on GitHub

Showing 74 of 74 total issues

Function blockquote has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    blockquote: function blockquote( block, next ) {
      if ( !block.match( /^>/m ) )
        return undefined;

      var jsonml = [];
Severity: Minor
Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

    gulp.task('test', ['bundle-tests', 'jade'], function() {
      var files = ['public/tests/index.html']
      gulp.src(files)
        .pipe(mochaPhantomJS({reporter: 'list'}))
    });
    Severity: Major
    Found in gulp/tasks/test.js and 1 other location - About 1 hr to fix
    gulp/tasks/docs/test.js on lines 9..13

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

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

    function strong_em( tag, md ) {
    
      var state_slot = tag + "_state",
          other_slot = tag == "strong" ? "em_state" : "strong_state";
    
    
    Severity: Minor
    Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

      gulp.task('docs:test', ['docs:bundle-tests', 'docs:jade'], function() {
        var files = ['docs/tests/index.html']
        gulp.src(files)
          .pipe(mochaPhantomJS({reporter: 'list'}))
      });
      Severity: Major
      Found in gulp/tasks/docs/test.js and 1 other location - About 1 hr to fix
      gulp/tasks/test.js on lines 10..14

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

      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

            for (j = 0, len1 = $menuItems.length; j < len1; j++) {
              $menuItem = $menuItems[j];
              $menuItem.classList.add('menu-item');
            }
      Severity: Major
      Found in core/js-alc/navbar.js and 3 other locations - About 1 hr to fix
      core/js-alc/tabs.js on lines 8..11
      core/js-alc/tabs.js on lines 32..35
      core/js-alc/tabs.js on lines 36..39

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

      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

                for (m = 0, len4 = $tabSet.length; m < len4; m++) {
                  _$tab = $tabSet[m];
                  _$tab.classList.remove('open');
                }
      Severity: Major
      Found in core/js-alc/tabs.js and 3 other locations - About 1 hr to fix
      core/js-alc/navbar.js on lines 17..20
      core/js-alc/tabs.js on lines 8..11
      core/js-alc/tabs.js on lines 32..35

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

      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

                for (l = 0, len3 = $paneSet.length; l < len3; l++) {
                  $pane = $paneSet[l];
                  $pane.classList.remove('open');
                }
      Severity: Major
      Found in core/js-alc/tabs.js and 3 other locations - About 1 hr to fix
      core/js-alc/navbar.js on lines 17..20
      core/js-alc/tabs.js on lines 8..11
      core/js-alc/tabs.js on lines 36..39

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

      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

          for (i = 0, len = $tabSet.length; i < len; i++) {
            $tab = $tabSet[i];
            $tab.classList.add('tab-item');
          }
      Severity: Major
      Found in core/js-alc/tabs.js and 3 other locations - About 1 hr to fix
      core/js-alc/navbar.js on lines 17..20
      core/js-alc/tabs.js on lines 32..35
      core/js-alc/tabs.js on lines 36..39

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

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

      Markdown.dialects.Maruku.block.block_meta = function block_meta( block, next ) {
        // check if the last line of the block is an meta hash
        var m = block.match( /(^|\n) {0,3}\{:\s*((?:\\\}|[^\}])*)\s*\}$/ );
        if ( !m ) return undefined;
      
      
      Severity: Minor
      Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

        gulp.task('todo', function() {
          return gulp.src(['./lib/coffee/**'])
            .pipe(todo())
            .pipe(gulp.dest('./'));
        });
        Severity: Major
        Found in gulp/tasks/todo.js and 1 other location - About 1 hr to fix
        gulp/tasks/docs/todo.js on lines 4..8

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

        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

        gulp.task('todo', function() {
          return gulp.src(['./lib/coffee/**'])
            .pipe(todo())
            .pipe(gulp.dest('./'));
        });
        Severity: Major
        Found in gulp/tasks/docs/todo.js and 1 other location - About 1 hr to fix
        gulp/tasks/todo.js on lines 4..8

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

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

        function split_meta_hash( meta_string ) {
          var meta = meta_string.split( "" ),
              parts = [ "" ],
              in_quotes = false;
        
        
        Severity: Minor
        Found in lib-docs/coffee/markdown.js - About 1 hr to fix

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

                      {
                          id: 'Ellipse',
                          type: 'ellipse',
                          rect: ['39px', '61px','128px','128px','auto', 'auto'],
                          borderRadius: ["50%", "50%", "50%", "50%"],
          Severity: Minor
          Found in raw/throttler_edge.js and 1 other location - About 45 mins to fix
          raw/throttler_edge.js on lines 37..44

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

          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

          Avoid deeply nested control flow statements.
          Open

                        if ( --open_parens == 0) {
                          consumed -= url.length - len;
                          url = url.substring(0, len);
                        }
          Severity: Major
          Found in lib-docs/coffee/markdown.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                        while ($stepsUp > -1) {
                          $targetNode = $targetNode.parentNode;
                          $stepsUp--;
                        }
            Severity: Major
            Found in core/js-alc/docs.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                              for ( i = 0; i < stack.length; i++ ) {
                                if ( stack[ i ].indent != m[1] ) continue;
                                list = stack[ i ].list;
                                stack.splice( i+1, stack.length - (i+1) );
                                found = true;
              Severity: Major
              Found in lib-docs/coffee/markdown.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                if (!found) {
                                  //print("not found. l:", uneval(l));
                                  wanted_depth++;
                                  if ( wanted_depth <= stack.length ) {
                                    stack.splice(wanted_depth, stack.length - wanted_depth);
                Severity: Major
                Found in lib-docs/coffee/markdown.js - About 45 mins to fix

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

                              {
                                  id: 'EllipseCopy',
                                  type: 'ellipse',
                                  rect: ['432px', '61px','128px','128px','auto', 'auto'],
                                  borderRadius: ["50%", "50%", "50%", "50%"],
                  Severity: Minor
                  Found in raw/throttler_edge.js and 1 other location - About 45 mins to fix
                  raw/throttler_edge.js on lines 29..36

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

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

                                  { id: "eid6", tween: [ "color", "${_Ellipse}", "background-color", 'rgba(253,215,38,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(216,205,180,1.00)'}], position: 500, duration: 250, easing: "swing" },
                  Severity: Major
                  Found in raw/throttler_edge.js and 10 other locations - About 40 mins to fix
                  raw/throttler_edge.js on lines 107..107
                  raw/throttler_edge.js on lines 108..108
                  raw/throttler_edge.js on lines 109..109
                  raw/throttler_edge.js on lines 111..111
                  raw/throttler_edge.js on lines 112..112
                  raw/throttler_edge.js on lines 114..114
                  raw/throttler_edge.js on lines 115..115
                  raw/throttler_edge.js on lines 116..116
                  raw/throttler_edge.js on lines 117..117
                  raw/throttler_edge.js on lines 118..118

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

                  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

                  gulp.task('docs:browserSync', ['build:docs'], function() {
                    browserSync.init(['./docs/**'], {
                      server: {
                        baseDir: ['docs', 'lib-docs']
                      }
                  Severity: Minor
                  Found in gulp/tasks/docs/browserSync.js and 1 other location - About 40 mins to fix
                  gulp/tasks/browserSync.js on lines 4..10

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

                  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