Showing 1,591 of 20,976 total issues
File Plus.php
has 2926 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
File phpqrcode.php
has 2575 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/*
* PHP QR Code encoder
*
File Cssmin.php
has 2547 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
class Ajde_Resource_Local_Compressor_Css_Cssmin extends CssMin
{
private $_contents;
Function Wysiwyg
has 1409 lines of code (exceeds 25 allowed). Consider refactoring. Open
function Wysiwyg() {
// - the item is added by this.ui.appendControls and then appendItem
// - click triggers this.triggerControl
// cmd or[key] - designMode exec function name
// tags - activates control for these tags (@see checkTargets)
File jwysiwyg.js
has 2432 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* WYSIWYG - jQuery plugin 0.97
* (0.97.2 - From infinity)
*
* Copyright (c) 2008-2009 Juan M Martinez, 2010-2011 Akzhan Abdulin and all contributors
Function Sizzle
has 1355 lines of code (exceeds 25 allowed). Consider refactoring. Open
(function( window ) {
var i,
support,
Expr,
Function Sizzle
has 1355 lines of code (exceeds 25 allowed). Consider refactoring. Open
(function( window ) {
var i,
support,
Expr,
File selectize.js
has 2379 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* sifter.js
* Copyright (c) 2013 Brian Reavis & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
File tree.jquery.js
has 2363 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Generated by CoffeeScript 1.6.3
/*
Copyright 2013 Marco Braak
Licensed under the Apache License, Version 2.0 (the "License");
File class.phpmailer.php
has 1893 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5.0.0
* Version 5.2.7.
File jquery-ui.js
has 1705 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*! jQuery UI - v1.11.4 - 2015-05-29
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, sortable.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
Function apply
has a Cognitive Complexity of 213 (exceeds 5 allowed). Consider refactoring. Open
public function apply(array &$tokens)
{
if (!isset($this->configuration['BasePath']) || !is_dir($this->configuration['BasePath'])) {
CssMin::triggerError(new CssError(__FILE__, __LINE__,
__METHOD__.': Base path <code>'.($this->configuration['BasePath'] ? $this->configuration['BasePath'] : 'null').'</code> is not a directory'));
- 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 Chosen
has 658 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.Chosen = (function(_super) {
__extends(Chosen, _super);
function Chosen() {
_ref = Chosen.__super__.constructor.apply(this, arguments);
Function jQuery
has 614 lines of code (exceeds 25 allowed). Consider refactoring. Open
var jQuery = (function() {
// Define a local copy of jQuery
var jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
Function UploadHandlerXhr
has a Cognitive Complexity of 150 (exceeds 5 allowed). Consider refactoring. Open
qq.UploadHandlerXhr = function(o, uploadCompleteCallback, logCallback) {
"use strict";
var options = o,
uploadComplete = uploadCompleteCallback,
- 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 link.js
has 1133 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
File chosen.proto.js
has 1130 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.1.0
Function clean
has a Cognitive Complexity of 142 (exceeds 5 allowed). Consider refactoring. Open
public function clean($config)
{
$css = isset($config['css']) ? $config['css'] : '';
$url = isset($config['url']) ? $config['url'] : '';
$compress = isset($config['compress']) ? $config['compress'] : '';
- 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 chosen.jquery.js
has 1109 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
Version 1.1.0
File markdown.php
has 1093 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
//
// Markdown - A text-to-HTML conversion tool for web writers
//