Showing 9,710 of 11,773 total issues
Function Vue
has a Cognitive Complexity of 6921 (exceeds 5 allowed). Consider refactoring. Open
Open
var Vue = (function (exports) {
'use strict';
function makeMap(str, expectsLowerCase) {
const map = /* @__PURE__ */ Object.create(null);
- 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 Vue
has 14943 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Vue = (function (exports) {
'use strict';
function makeMap(str, expectsLowerCase) {
const map = /* @__PURE__ */ Object.create(null);
File ZhConversion.php
has 19848 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Simplified / Traditional Chinese conversion tables
*
* Automatically generated using code and data in maintenance/language/zhtable/
File vue.global.js
has 14946 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var Vue = (function (exports) {
'use strict';
function makeMap(str, expectsLowerCase) {
const map = /* @__PURE__ */ Object.create(null);
File first-letters-root.php
has 14746 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
// File created by generateCollationData.php
return [
0 => 'ـ',
1 => ' ',
File jquery.js
has 6763 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
File codex.js
has 6590 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
File oojs-ui-core.js
has 6512 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* OOUI v0.49.1
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2024 OOUI Team and other contributors.
File qunit.js
has 5437 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* QUnit 2.20.0
* https://qunitjs.com/
*
* Copyright OpenJS Foundation and other contributors
File sinon.js
has 4909 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Sinon.JS 1.17.7, 2017/02/15
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
File moment.js
has 4564 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//! moment.js
//! version : 2.25.2
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
File MainConfigSchema.php
has 4100 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This file contains schema declarations for all configuration variables
* known to MediaWiki core.
*
File Parser.php
has 4048 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* PHP parser that converts wiki markup to HTML.
*
* This program is free software; you can redistribute it and/or modify
File HookRunner.php
has 4035 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace MediaWiki\HookContainer;
use Article;
HookRunner
has 527 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class HookRunner implements
\MediaWiki\Actions\Hook\GetActionNameHook,
\MediaWiki\Auth\Hook\AuthManagerLoginAuthenticateAuditHook,
\MediaWiki\Auth\Hook\ExemptFromAccountCreationThrottleHook,
\MediaWiki\Auth\Hook\LocalUserCreatedHook,
File config-schema.php
has 3397 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
// This file is automatically generated using maintenance/generateConfigSchema.php.
// Do not modify this file manually, edit includes/MainConfigSchema.php instead.
// phpcs:disable Generic.Files.LineLength
return [
Function Pinia
has a Cognitive Complexity of 464 (exceeds 5 allowed). Consider refactoring. Open
Open
var Pinia = (function (exports, vueDemi) {
'use strict';
/**
* setActivePinia must be called to handle SSR at the top of functions like
- 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 autoload.php
has 3351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
// This file is generated by maintenance/generateLocalAutoload.php, do not adjust manually
// phpcs:disable Generic.Files.LineLength
global $wgAutoloadLocalClasses;
File Resources.php
has 3066 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Definition of core ResourceLoader modules.
*
* This program is free software; you can redistribute it and/or modify
File EditPage.php
has 3014 lines of code (exceeds 250 allowed). Consider refactoring. Open
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