Showing 1,432 of 2,096 total issues
Function ControllerViewFactory
has 173 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
wikibase.view.ControllerViewFactory = ( function ( wb ) {
'use strict';
var ViewFactory = require( './ViewFactory.js' ),
ToolbarViewController = require( './ToolbarViewController.js' );
File jquery.wikibase.entityselector.js
has 441 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
( function () {
'use strict';
// TODO: Get rid of MediaWiki context detection by submitting a message provider as option.
EntityHandler
has 47 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class EntityHandler extends ContentHandler {
/**
* Added to parser options for EntityContent.
*
File WikibaseRepo.datatypes.php
has 435 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Definition of data types for use with Wikibase.
* The array returned by the code below is supposed to be merged into the Repo data types.
File MediaWikiEditEntity.php
has 435 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
namespace Wikibase\Repo\EditEntity;
File WbRestApi.php
has 434 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare( strict_types=1 );
namespace Wikibase\Repo\RestApi;
use MediaWiki\MediaWikiServices;
File EntityHandler.php
has 428 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Repo\Content;
use Article;
Function exports
has 155 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = ( function ( wb ) {
'use strict';
var ViewController = require( './ViewController.js' ),
ENTITY_CHANGERS = wb.entityChangers;
File ViewFactory.js
has 425 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
( function ( wb ) {
'use strict';
var MODULE = wb.view,
EventSingletonManager = require( '../../jquery/jquery.util.EventSingletonManager.js' ),
WikibaseLibrary
has 45 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class WikibaseLibrary extends LibraryBase implements ParserOutputProvider {
/**
* @var WikibaseLanguageIndependentLuaBindings|null
*/
Function 23e7
has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring. Open
Open
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
var createNonEnumerableProperty = __webpack_require__("9112");
- 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
ResultBuilder
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ResultBuilder {
/**
* @var ApiResult
*/
File jquery.wikibase.entitytermsforlanguagelistview.js
has 401 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license GPL-2.0-or-later
* @author H. Snater < mediawiki@snater.com >
* @author Bene* < benestar.wikimedia@gmail.com >
*/
File WikibaseClient.php
has 400 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Client;
use DataValues\Deserializers\DataValueDeserializer;
Function exports
has a Cognitive Complexity of 37 (exceeds 5 allowed). Consider refactoring. Open
Open
module.exports = ( function ( wb ) {
'use strict';
var ViewController = require( './ViewController.js' ),
ENTITY_CHANGERS = wb.entityChangers;
- 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 PatchedItemValidator.php
has 399 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php declare( strict_types=1 );
namespace Wikibase\Repo\RestApi\Application\UseCases\PatchItem;
use LogicException;
File jquery.wikibase.linkitem.js
has 396 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license GPL-2.0-or-later
* @author Marius Hoch < hoo@online.de >
*/
( function ( wb ) {
File EditEntity.php
has 395 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
declare( strict_types = 1 );
namespace Wikibase\Repo\Api;
Function addDevtools
has 130 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addDevtools (app, store) {
Object(esm["setupDevtoolsPlugin"])(
{
id: 'org.vuejs.vuex',
app: app,
File jquery.ui.suggester.js
has 372 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
( function () {
'use strict';
require( './jquery.ui.ooMenu.js' );