Showing 11,545 of 11,545 total issues
Function init
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function init() {
let offset, $overlay,
isFloating = false;
function updateAreaMode() {
Function _exifHandler
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JpegMeta.JpegFile.prototype._exifHandler = function _exifHandler(mark, pos) {
if (this.exif !== undefined) {
throw new Error("Multiple JFIF segments found");
}
Function MwWidgetsRowWidget
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mw.widgets.RowWidget = function MwWidgetsRowWidget( config ) {
config = config || {};
// Parent constructor
mw.widgets.RowWidget.super.call( this, config );
Function updateWatchLinkAttributes
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateWatchLinkAttributes( $link, action, state, expiry ) {
// A valid but empty jQuery object shouldn't throw a TypeError
if ( !$link.length ) {
return;
}
Function set
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function ( module ) {
var descriptor = registry[ module ],
key = getModuleKey( module );
if (
Function _sfc_render$j
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
const _component_cdx_icon = resolveComponent("cdx-icon");
return openBlock(), createElementBlock(
"div",
{
Function matcherFromTokens
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromTokens( tokens ) {
var checkContext, matcher, j,
len = tokens.length,
leadingRelative = Expr.relative[ tokens[ 0 ].type ],
implicitRelative = leadingRelative || Expr.relative[ " " ],
Function tokenize
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenize( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
Function configFromStringAndArray
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configFromStringAndArray(config) {
var tempConfig,
bestMoment,
scoreToBeat,
i,
Function setFlags
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.mixin.FlaggedElement.prototype.setFlags = function ( flags ) {
const changes = {},
add = [],
remove = [],
classPrefix = 'oo-ui-flaggedElement-';
Function extract
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.ToolFactory.prototype.extract = function ( collection, used ) {
const names = [];
collection = !Array.isArray( collection ) ? [ collection ] : collection;
Function scale
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.scale = function( o, done ) {
// Create element
var el = $( this ),
options = $.extend( true, {}, o ),
Function initialize
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.ProcessDialog.prototype.initialize = function () {
// Parent method
OO.ui.ProcessDialog.super.prototype.initialize.call( this );
// Properties
Function formatStoreForInspectorState
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatStoreForInspectorState(store) {
if (isPinia(store)) {
const storeNames = Array.from(store._s.keys());
const storeMap = store._s;
const state = {
Function _monitorIntersections
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
IntersectionObserver.prototype._monitorIntersections = function(doc) {
var win = doc.defaultView;
if (!win) {
// Already destroyed.
return;
Method removeWatchBatchForUser
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function removeWatchBatchForUser( UserIdentity $user, array $titles ): bool {
if ( !$user->isRegistered() || $this->readOnlyMode->isReadOnly() ) {
return false;
}
if ( !$titles ) {
Method checkUserConfigPermissions
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkUserConfigPermissions(
$action,
UserIdentity $user,
PermissionStatus $status,
$rigor,
Method getPageByNameViaLinkCache
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getPageByNameViaLinkCache(
int $namespace,
string $dbKey,
int $queryFlags = IDBAccessObject::READ_NORMAL
): ?ExistingPageRecord {
Method moveSubpagesInternal
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function moveSubpagesInternal( callable $subpageMoveCallback ) {
// Do the source and target namespaces support subpages?
if ( !$this->nsInfo->hasSubpages( $this->oldTitle->getNamespace() ) ) {
return Status::newFatal( 'namespace-nosubpages',
$this->nsInfo->getCanonicalName( $this->oldTitle->getNamespace() ) );
Method getWatchedItemsForUser
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getWatchedItemsForUser( UserIdentity $user, array $options = [] ) {
if ( !$user->isRegistered() ) {
// TODO: should this just return an empty array or rather complain loud at this point
// as e.g. ApiBase::getWatchlistUser does?
return [];