Showing 290 of 2,627 total issues
File mootools.js
has 3043 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
Script: Core.js
MooTools - My Object Oriented JavaScript Tools.
License:
File jquery.js
has 2396 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function () {
/*
* jQuery 1.2.6 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
File mootools-1.2-more.js
has 1158 lines of code (exceeds 250 allowed). Consider refactoring. Open
//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2008 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
/*
Script: Fx.Slide.js
Effect to slide an element in and out of view.
File references_utils.php
has 1044 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* ****************************************************************************
* references - MODULE FOR XOOPS
* Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
File twitter.php
has 877 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Twitter class
*
Twitter
has 106 functions (exceeds 20 allowed). Consider refactoring. Open
class Twitter
{
// internal constant to enable/disable debugging
const DEBUG = false;
File jquery.autocomplete.js
has 620 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* Autocomplete - jQuery plugin 1.0.2
*
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
*
Function Autocompleter
has 271 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.Autocompleter = function (input, options) {
var KEY = {
UP: 38,
DOWN: 40,
File main.php
has 568 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* ****************************************************************************
* references - MODULE FOR XOOPS
* Copyright (c) Herv?? Thouzard of Instant Zero (http://www.instant-zero.com)
File PersistableObjectHandler.php
has 557 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* ****************************************************************************
* myshop - MODULE FOR XOOPS
* Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
Function _cleanDir
has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring. Open
public function _cleanDir($dir, $group = false, $mode = 'ingroup')
{
if ($this->_fileNameProtection) {
$motif = $group ? 'cache_' . md5($group) . '_' : 'cache_';
} else {
- 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 PEAR.php
has 524 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* PEAR, the PHP Extension and Application Repository
*
* PEAR class and PEAR_Error class
references_utils
has 56 functions (exceeds 20 allowed). Consider refactoring. Open
class references_utils
{
// Pour la portabilité de module à module
const MODULE_NAME = 'references';
const MODULE_DIRNAME = REFERENCES_DIRNAME;
Function insert
has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring. Open
public function insert(XoopsObject $obj, $force = false, $checkObject = true, $ignoreInsert = false)
{
if ($checkObject != false) {
if (!is_object($obj)) {
trigger_error('Error, not object');
- 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 references_listFilter.php
has 490 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* ****************************************************************************
* references - MODULE FOR XOOPS
* Copyright (c) Hervé Thouzard of Instant Zero (http://www.instant-zero.com)
Function Select
has 169 lines of code (exceeds 25 allowed). Consider refactoring. Open
$.Autocompleter.Select = function (options, input, select, config) {
var CLASSES = {
ACTIVE: "ac_over"
};
Function ajax
has 160 lines of code (exceeds 25 allowed). Consider refactoring. Open
ajax: function (s) {
// Extend the settings, but re-extend 's' so that it can be
// checked again later (in the test suite, specifically)
s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
Function filter
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
public function filter()
{
$this->setupFilter(); // Réinitialisations
$ts = MyTextSanitizer::getInstance();
$this->setSortFieldsFromRequest(); // On récupère la zone de tri éventuellement passée dans la requête
- 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 lite.php
has 404 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Fast, light and safe Cache Class
*
Method unhtml
has 133 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function unhtml($chaine)
{
$search = $replace = array();
$chaine = html_entity_decode($chaine);