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) {
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
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);
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');
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);
- Read upRead up
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: '',
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: '',
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());
Function collectErrors
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
collectErrors: function () {
var combined = {
id: 'nabla',
generated: new Date().toString(),
errors: {}
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());
- Read upRead up
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';
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) {
- Read upRead up
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);
})
- Read upRead up
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"