AlbanAndrieu/nabla-servers-bower

View on GitHub

Showing 13 of 30 total issues

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

module.exports = function(grunt) {
  var localConfig;
  try {
    localConfig = require("./server/config/local.env");
  } catch (e) {
Severity: Major
Found in components/nabla-styles/Gruntfile.js - About 4 days to fix

    File Gruntfile.js has 995 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    // Generated on 2015-05-18 using
    // generator-webapp 0.5.1
    "use strict";
    
    // # Globbing
    Severity: Major
    Found in components/nabla-styles/Gruntfile.js - About 2 days to fix

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

      module.exports = function(grunt) {
        // no warning
        // no warning
        // Time how long tasks take. Can help when optimizing build times
        require('time-grunt')(grunt);
      Severity: Major
      Found in Gruntfile.js - About 1 day to fix

        File Gruntfile.js has 354 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        'use strict';
        
        //var files = require('./angularFiles').files;
        var util = require('./lib/grunt/utils.js');
        var versionInfo = require('./lib/versions/version-info');
        Severity: Minor
        Found in Gruntfile.js - About 4 hrs to fix

          Function exports has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
          Open

          module.exports = function(grunt) {
            // no warning
            // no warning
            // Time how long tasks take. Can help when optimizing build times
            require('time-grunt')(grunt);
          Severity: Minor
          Found in Gruntfile.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

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

          module.exports = function(config) {
            config.set({
              // base path, that will be used to resolve files and exclude
              basePath: '',
          
          
          Severity: Major
          Found in karma-sample-component.conf.js - About 2 hrs to fix

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

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

              Method main has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static void main(String args[]) {
                      System.out.println("- Downloader started");
                      File baseDirectory = new File(args[0]);
                      System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
              
              
              Severity: Minor
              Found in .mvn/wrapper/MavenWrapperDownloader.java - About 1 hr to fix

                Function collectErrors has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  collectErrors: function () {
                    var combined = {
                      id: 'nabla',
                      generated: new Date().toString(),
                      errors: {}
                Severity: Minor
                Found in lib/grunt/utils.js - About 1 hr to fix

                  Method main has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public static void main(String args[]) {
                          System.out.println("- Downloader started");
                          File baseDirectory = new File(args[0]);
                          System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
                  
                  
                  Severity: Minor
                  Found in .mvn/wrapper/MavenWrapperDownloader.java - About 1 hr to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function parseVersionFromPomXml has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    var parseVersionFromPomXml = function() {
                      var fs = require('fs');
                      var parseString = require('xml2js').parseString;
                      var version;
                      var pomFile = 'pom.xml';
                  Severity: Minor
                  Found in Gruntfile.js - About 1 hr to fix

                    Function exports has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                    Open

                    module.exports = function(grunt) {
                      var localConfig;
                      try {
                        localConfig = require("./server/config/local.env");
                      } catch (e) {
                    Severity: Minor
                    Found in components/nabla-styles/Gruntfile.js - About 55 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Function getCdnVersion has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                    Open

                    var getCdnVersion = function() {
                        return _(previousVersions)
                            .filter(function(tag) {
                            return semver.satisfies(tag, currentPackage.branchVersion);
                        })
                    Severity: Minor
                    Found in lib/versions/version-info.js - About 55 mins to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

                    Severity
                    Category
                    Status
                    Source
                    Language