Showing 9,710 of 11,773 total issues
Function Pinia
has 1684 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Pinia = (function (exports, vueDemi) {
'use strict';
/**
* setActivePinia must be called to handle SSR at the top of functions like
File oojs-ui-widgets.js
has 2564 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* OOUI v0.49.1
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2024 OOUI Team and other contributors.
File Language.php
has 2503 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Function baseCreateRenderer
has 1369 lines of code (exceeds 25 allowed). Consider refactoring. Open
function baseCreateRenderer(options, createHydrationFns) {
const target = getGlobalThis();
target.__VUE__ = true;
{
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
File OutputPage.php
has 2401 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Preparation for the final page rendering.
*
* This program is free software; you can redistribute it and/or modify
File ServiceWiring.php
has 2274 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Service implementations for %MediaWiki core.
*
* This file returns the array loaded by the MediaWikiServices class
Function buildDomTreeArrayFromText
has a Cognitive Complexity of 300 (exceeds 5 allowed). Consider refactoring. Open
private function buildDomTreeArrayFromText( $text, $flags ) {
$forInclusion = ( $flags & self::DOM_FOR_INCLUSION );
$langConversionDisabled = ( $flags & self::DOM_LANG_CONVERSION_DISABLED );
$xmlishElements = $this->parser->getStripList();
- 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 Database.php
has 2205 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Function makeFormattedData
has a Cognitive Complexity of 283 (exceeds 5 allowed). Consider refactoring. Open
public function makeFormattedData( $tags ) {
$resolutionunit = !isset( $tags['ResolutionUnit'] ) || $tags['ResolutionUnit'] == 2 ? 2 : 3;
unset( $tags['ResolutionUnit'] );
// Ignore these complex values
- 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 Vuex
has 1130 lines of code (exceeds 25 allowed). Consider refactoring. Open
var Vuex = (function (vue) {
'use strict';
var storeKey = 'store';
File RevisionStore.php
has 2010 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
File Title.php
has 1901 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Representation of a title within MediaWiki.
*
* See Title.md
File pako_deflate.js
has 1859 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
File User.php
has 1823 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Implements the User class for the %MediaWiki software.
*
* This program is free software; you can redistribute it and/or modify
File AuthManager.php
has 1809 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Authentication (and possibly Authorization in the future) system entry point
*
* This program is free software; you can redistribute it and/or modify
File pinia.iife.js
has 1687 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*!
* pinia v2.0.16
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
Method getIcuRules
has 910 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function getIcuRules() {
$rules = [];
# transliteration rules developed for Palmleaf.org
$rules['ban-x-palmleaf'] = <<<'EOF'
Function Vuex
has a Cognitive Complexity of 220 (exceeds 5 allowed). Consider refactoring. Open
var Vuex = (function (vue) {
'use strict';
var storeKey = 'store';
- 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 ApiMain.php
has 1669 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
*
* This program is free software; you can redistribute it and/or modify
File WikiPage.php
has 1651 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or