Showing 7 of 22 total issues
File method_all.js
has 2114 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var nock = require('nock');
nock('http://localhost:8800')
.get('/services/test-github-issues/password/manager/get?key=github')
.reply(200, {
File method_all_with_all_props.js
has 2114 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var nock = require('nock');
nock('http://localhost:8800')
.get('/services/test-github-issues/password/manager/get?key=github')
.reply(200, {
File method_all_state_closed.js
has 1703 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var nock = require('nock');
nock('http://localhost:8800')
.get('/services/test-github-issues/password/manager/get?key=github')
.reply(200, {
File method_all_state_open.js
has 676 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var nock = require('nock');
nock('http://localhost:8800')
.get('/services/test-github-issues/password/manager/get?key=github')
.reply(200, {
Function exports
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
// Show elapsed time at the end
//require('time-grunt')(grunt);
// Load all grunt tasks
require('load-grunt-tasks')(grunt);
Function callWithCache
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.callWithCache = function (id, get, callback) {
exports.memoryCache.wrap(id, function (setInMemoryCache) {
var eTag, writeToCacheAndReturn;
writeToCacheAndReturn = function (response) {
Function getCredentials
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
exports.getCredentials = function (params, callback) {
var service, project, serviceParams, key;
service = this.defaultCredentialService;
project = params.config.name;
- 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"