Showing 1,591 of 20,976 total issues
File jquery.simple-dtpicker.js
has 1065 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* jquery-simple-datetimepicker (jquery.simple-dtpicker.js)
* v1.12.0
* (c) Masanori Ohgita - 2014.
* https://github.com/mugifly/jquery-simple-datetimepicker
File mimetypes.php
has 999 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
return [
'123' => 'application/vnd.lotus-1-2-3',
'3dml' => 'text/vnd.in3d.3dml',
Function UploadHandlerXhr
has 491 lines of code (exceeds 25 allowed). Consider refactoring. Open
qq.UploadHandlerXhr = function(o, uploadCompleteCallback, logCallback) {
"use strict";
var options = o,
uploadComplete = uploadCompleteCallback,
Function List
has 483 lines of code (exceeds 25 allowed). Consider refactoring. Open
AC.Crud.List = function() {
var infoHandler = AC.Core.Alert.show;
var warningHandler = AC.Core.Alert.warning;
var errorHandler = AC.Core.Alert.error;
Function List
has a Cognitive Complexity of 116 (exceeds 5 allowed). Consider refactoring. Open
AC.Crud.List = function() {
var infoHandler = AC.Core.Alert.show;
var warningHandler = AC.Core.Alert.warning;
var errorHandler = AC.Core.Alert.error;
- 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 add
has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring. Open
'add': function(shortcut_combination,callback,opt) {
//Provide a set of default options
var default_options = {
'type':'keydown',
'propagate':false,
- 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
Google_Service_Plus_ItemScope
has 110 functions (exceeds 20 allowed). Consider refactoring. Open
class Google_Service_Plus_ItemScope extends Google_Collection
{
protected $aboutType = 'Google_Service_Plus_ItemScope';
protected $aboutDataType = '';
public $additionalName;
lessc
has 108 functions (exceeds 20 allowed). Consider refactoring. Open
class lessc
{
public static $VERSION = 'v0.3.9';
protected static $TRUE = ['keyword', 'true'];
protected static $FALSE = ['keyword', 'false'];
File base_facebook.php
has 835 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Copyright 2011 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
Function doFragmentDiff
has a Cognitive Complexity of 89 (exceeds 5 allowed). Consider refactoring. Open
private static function doFragmentDiff($from_text, $to_text, $delimiters)
{
// Empty delimiter means character-level diffing.
// In such case, use code path optimized for character-level
// diffing.
- 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 init
has 352 lines of code (exceeds 25 allowed). Consider refactoring. Open
init : function( options ) {
var settings = $.extend(true, {}, defaults);
settings.options = $.extend(true, settings.options, options);
File jqBootstrapValidation.js
has 737 lines of code (exceeds 250 allowed). Consider refactoring. Open
/* jqBootstrapValidation
* A plugin for automating validation on Twitter Bootstrap formatted forms.
*
* v1.3.6
*
PHPMailer
has 88 functions (exceeds 20 allowed). Consider refactoring. Open
class PHPMailer
{
/**
* The PHPMailer Version number.
*
Function draw
has 324 lines of code (exceeds 25 allowed). Consider refactoring. Open
var draw = function($picker, option, year, month, day, hour, min) {
var date = new Date();
if (hour != null) {
date = new Date(year, month, day, hour, min, 0);
Function Edit
has 323 lines of code (exceeds 25 allowed). Consider refactoring. Open
AC.Crud.Edit = function() {
var infoHandler = AC.Core.Alert.show;
var warningHandler = AC.Core.Alert.warning;
var errorHandler = AC.Core.Alert.error;
Function parseChunk
has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring. Open
protected function parseChunk()
{
if (empty($this->buffer)) {
return false;
}
- 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
File Model.php
has 698 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
class Ajde_Model extends Ajde_Object_Standard
{
const ENCRYPTION_PREFIX = '$$$ENCRYPTED$$$';
Function registerJson
has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring. Open
public function registerJson()
{
$user = new UserModel();
$returnto = Ajde::app()->getRequest()->getPostParam('returnto', false);
- 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
File ColorSpace.php
has 686 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
Color Space : v1.25 : 2009.04.20
File NodeModel.php
has 667 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* @property bool ignoreAccessControl
*/