Showing 1,432 of 2,096 total issues
Function fae3
has 1484 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
File tainted-ref.common.js
has 2470 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
File WikibaseRepo.ServiceWiring.php
has 1857 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
use DataValues\Deserializers\DataValueDeserializer;
Function fae3
has a Cognitive Complexity of 229 (exceeds 5 allowed). Consider refactoring. Open
Open
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
- 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
WikibaseRepo
has 165 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WikibaseRepo {
/**
* @warning This is for use with bootstrap code in WikibaseRepo.datatypes.php only!
* Program logic should use WikibaseRepo::getDataTypeValidatorFactory() instead!
File WbRestApi.ServiceWiring.php
has 1254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare( strict_types=1 );
use MediaWiki\CommentStore\CommentStore;
use MediaWiki\Context\RequestContext;
use MediaWiki\MediaWikiServices;
File resources.php
has 1025 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
use MediaWiki\MediaWikiServices;
use MediaWiki\ResourceLoader\Context;
use MediaWiki\ResourceLoader\ResourceLoader;
File WikibaseClient.ServiceWiring.php
has 942 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
use DataValues\Deserializers\DataValueDeserializer;
File WikibaseRepo.php
has 838 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Repo;
use DataValues\Deserializers\DataValueDeserializer;
File RepoHooks.php
has 718 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Repo;
use LogEntry;
WbRestApi
has 86 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WbRestApi {
public static function getGetItem( ContainerInterface $services = null ): GetItem {
return ( $services ?: MediaWikiServices::getInstance() )
->get( 'WbRestApi.GetItem' );
exports
has 82 functions (exceeds 20 allowed). Consider refactoring. Open
Open
/******/ ({
/***/ "00e9":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
WikibaseClient
has 79 functions (exceeds 20 allowed). Consider refactoring. Open
Open
final class WikibaseClient {
private function __construct() {
// should not be instantiated
}
File ResultBuilder.php
has 647 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Repo\Api;
use MediaWiki\Api\ApiResult;
Function 7dd0
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
Open
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
- 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 snakview.js
has 502 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
( function ( wb, dv ) {
'use strict';
// Back-up components already initialized in the namespace to re-apply them after initializing
// the snakview widget.
File WikibaseRepo.entitytypes.php
has 489 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Definition of entity types for use with Wikibase.
* The array returned by the code below is supposed to be merged with the content of
File jquery.wikibase.statementview.js
has 488 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
( function ( wb ) {
'use strict';
var PARENT = $.ui.EditableTemplatedWidget,
datamodel = require( 'wikibase.datamodel' ),
File WikibaseLibrary.php
has 483 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
namespace Wikibase\Client\DataAccess\Scribunto;
File Wikibase.i18n.alias.php
has 464 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Aliases for the special pages of the Wikibase Repository extension.
*