javiercejudo/javiercejudo.com

View on GitHub

Showing 12 of 12 total issues

Function exports has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(karma) {
  'use strict';

  var
    env = process.env,
Severity: Major
Found in karma.conf.js - About 4 hrs to fix

    Function exports has 85 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(grunt) {
      grunt.loadNpmTasks('grunt-modernizr');
      grunt.loadNpmTasks('grunt-karma');
      grunt.loadNpmTasks('grunt-docular');
    
    
    Severity: Major
    Found in Gruntfile.js - About 3 hrs to fix

      File SecretaryProblemCtrl.js has 307 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*global angular:true, browser:true */
      
      (function (angular) {
        'use strict';
      
      
      Severity: Minor
      Found in js/controllers/SecretaryProblemCtrl.js - About 3 hrs to fix

        Function generateItemValue has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  $scope.generateItemValue = function (index) {
                    var game = $scope.game;
                    var items = game.items;
                    var numDigits = game.numDigitsThis;
                    var willBeMax;
        Severity: Minor
        Found in js/controllers/SecretaryProblemCtrl.js - About 1 hr to fix

          Function automaticGame has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    $scope.automaticGame = function (n, numberOfGames) {
                      var game = $scope.game;
                      var strategy;
                      var itemIndex;
                      var gameIndex;
          Severity: Minor
          Found in js/controllers/SecretaryProblemCtrl.js - About 1 hr to fix

            Function exports has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            module.exports = function(karma) {
              karma.set({
                // base path, that will be used to resolve files and exclude
                basePath: '.',
            
            
            Severity: Minor
            Found in karma-e2e.conf.js - About 1 hr to fix

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

                return gulp.src(appJsScripts)
                  .pipe(concat("app.js"))
                  .pipe(uglify())
                  .pipe(gulp.dest(paths.tmp));
              Severity: Minor
              Found in gulp-tasks/javascript.js and 1 other location - About 55 mins to fix
              gulp-tasks/javascript.js on lines 13..16

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

              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

                return gulp.src(topJsScripts)
                  .pipe(concat("top.js"))
                  .pipe(uglify())
                  .pipe(gulp.dest(paths.assets));
              Severity: Minor
              Found in gulp-tasks/javascript.js and 1 other location - About 55 mins to fix
              gulp-tasks/javascript.js on lines 39..42

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

              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

                publisher = awspublish.create({
                  params: {
                    Bucket: 'jc-build'
                  },
                  accessKeyId: process.env.S3_KEY,
              Severity: Major
              Found in gulp-tasks/publish.js and 3 other locations - About 55 mins to fix
              gulp-tasks/publish.js on lines 54..60
              gulp-tasks/publish.js on lines 82..88
              gulp-tasks/publish.js on lines 107..113

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

              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

                publisher = awspublish.create({
                  params: {
                    Bucket: 'jc-firebase'
                  },
                  accessKeyId: process.env.S3_KEY,
              Severity: Major
              Found in gulp-tasks/publish.js and 3 other locations - About 55 mins to fix
              gulp-tasks/publish.js on lines 22..28
              gulp-tasks/publish.js on lines 54..60
              gulp-tasks/publish.js on lines 82..88

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

              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

                publisher = awspublish.create({
                  params: {
                    Bucket: 'jc-build'
                  },
                  accessKeyId: process.env.S3_KEY,
              Severity: Major
              Found in gulp-tasks/publish.js and 3 other locations - About 55 mins to fix
              gulp-tasks/publish.js on lines 22..28
              gulp-tasks/publish.js on lines 82..88
              gulp-tasks/publish.js on lines 107..113

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

              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

                publisher = awspublish.create({
                  params: {
                    Bucket: 'jc-wraith-shots'
                  },
                  accessKeyId: process.env.S3_KEY,
              Severity: Major
              Found in gulp-tasks/publish.js and 3 other locations - About 55 mins to fix
              gulp-tasks/publish.js on lines 22..28
              gulp-tasks/publish.js on lines 54..60
              gulp-tasks/publish.js on lines 107..113

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

              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