Showing 5,781 of 10,536 total issues
Avoid deeply nested control flow statements. Open
Open
if (col + c < 0 || moduleCount <= col + c) {
continue;
}
Avoid deeply nested control flow statements. Open
Open
if (matchedKeys[key]) return;
Avoid deeply nested control flow statements. Open
Open
if (dark == qrcode.isDark(row + r, col + c) ) {
sameCount += 1;
}
Avoid deeply nested control flow statements. Open
Open
if (r == -2 || r == 2 || c == -2 || c == 2
|| (r == 0 && c == 0) ) {
_modules[row + r][col + c] = true;
} else {
_modules[row + r][col + c] = false;
Avoid deeply nested control flow statements. Open
Open
if (bitIndex == -1) {
byteIndex += 1;
bitIndex = 7;
}
Avoid deeply nested control flow statements. Open
Open
if (r == 0 && c == 0) {
continue;
}
Function RegisteredHook
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function RegisteredHook(tranSvc, eventType, callback, matchCriteria, removeHookFromRegistry, options) {
Avoid deeply nested control flow statements. Open
Open
if (mask) {
dark = !dark;
}
Avoid deeply nested control flow statements. Open
Open
if (node === inertBodyElement) break;
Avoid deeply nested control flow statements. Open
Open
if (node.nodeType === 1) {
handler.end(node.nodeName.toLowerCase());
}
Avoid deeply nested control flow statements. Open
Open
for (i = 0; i < stack.length; i++) {
if ( stack[ i ].indent != m[1] ) continue;
list = stack[ i ].list;
stack.splice( i+1 );
found = true;
Function interceptor
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
var interceptor = ['$q', '$cacheFactory', '$timeout', '$rootScope', '$log', 'cfpLoadingBar', function ($q, $cacheFactory, $timeout, $rootScope, $log, cfpLoadingBar) {
Function value
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
value: function createThumbnail(file, width, height, resizeMethod, fixOrientation, callback) {
Avoid deeply nested control flow statements. Open
Open
if (!found) {
//print("not found. l:", uneval(l));
wanted_depth++;
if (wanted_depth <= stack.length) {
stack.splice(wanted_depth);
Avoid deeply nested control flow statements. Open
Open
if (angular.equals(sCopy, s)) {
chartSeries.addPoint(ptNew, false);
}
// Check if the data change was a push and shift operation
Avoid deeply nested control flow statements. Open
Open
if ( --open_parens == 0) {
consumed -= url.length - len;
url = url.substring(0, len);
}
Function open
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
infoWindow.open = function open(a1, a2, a3, a4, a5, a6) {
Function _typeof
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
- 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 buildChartDirective
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
var buildChartDirective = function ( chartType ) {
return {
restrict: 'E',
scope: {
data: "=",
- 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
Avoid deeply nested control flow statements. Open
Open
else if (c == '{') {
date = date2;
otherDate = date1;
}
else if (c == '}') {