Showing 350 of 970 total issues
Function onEndTransitionFn
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var onEndTransitionFn = function( ev ) {
if( support.transitions ) {
if( ev.propertyName.indexOf( 'transform' ) === -1 ) return false;
this.removeEventListener( transEndEventName, onEndTransitionFn );
}
Function map
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
map : function (mappedMin, mappedMax) {
var input = this._array;
var output = this._array;
var min = input[0];
Function _parseRanges
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_parseRanges : function (index) {
var rangesStr = index.split(/\s*,\s*/);
// Parse range of each axis
var ranges = [];
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function legacyPushPage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
legacyPushPage: function(callback) {
var
distance = $module.width(),
direction = module.get.direction(),
properties = {}
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function text
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
text: function() {
if( module.is.textEnabled() ) {
if(module.is.disabled() ) {
module.verbose('Changing text to disabled text', text.hover);
module.update.text(text.disabled);
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function display
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
display: function() {
var
title = settings.name + ':',
totalTime = 0
;
Function pack
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
shape, series, seriesIndex, data, dataIndex, name, special, special2
Function agregar_adjudicacion
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
def agregar_adjudicacion(request):
if request.method != 'POST':
return JsonResponse({'error': 'Método inválido.'}, status=405)
codigo_institucion = request.POST.get('codigo_institucion')
- 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"