Showing 11,545 of 11,545 total issues
Function processExistenceCheckQueue
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PageExistenceCache.prototype.processExistenceCheckQueue = function () {
if ( this.currentRequest ) {
// Don't fire off a million requests at the same time
this.currentRequest.always( () => {
this.currentRequest = null;
Function set
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set: function ( fn, delay ) {
let nativeId = null,
visibleId = nextId++,
lastStartedAt = mw.now();
Function getSetupProcess
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FeedbackDialog.prototype.getSetupProcess = function ( data ) {
return FeedbackDialog.super.prototype.getSetupProcess.call( this, data )
.next( function () {
// Get the URL of the target page, we want to use that in links in the intro
// and in the success dialog
Function parse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function ( str, options ) {
let q, matches,
uri = this,
hasOwn = Object.prototype.hasOwnProperty;
Function useResizeObserver
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useResizeObserver(templateRef) {
const currentDimensions = ref(
{ width: void 0, height: void 0 }
);
if (typeof window !== "object" || !("ResizeObserver" in window) || !("ResizeObserverEntry" in window)) {
Function ConsoleReporter
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var ConsoleReporter = /*#__PURE__*/function () {
function ConsoleReporter(runner) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
_classCallCheck(this, ConsoleReporter);
// Cache references to console methods to ensure we can report failures
Function handleStrictParse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleStrictParse(monthName, format, strict) {
var i,
ii,
mom,
llc = monthName.toLocaleLowerCase();
Function localeMonthsParse
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function localeMonthsParse(monthName, format, strict) {
var i, mom, regex;
if (this._monthsParseExact) {
return handleStrictParse.call(this, monthName, format, strict);
Function add
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function( url, label, index ) {
if ( index === undefined ) {
index = this.anchors.length;
}
Function organize
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.ActionSet.prototype.organize = function () {
const specialFlags = this.constructor.static.specialFlags;
if ( !this.organized ) {
this.categorized = {};
Function get
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.ActionSet.prototype.get = function ( filters ) {
if ( filters ) {
this.organize();
let i, len;
Function shake
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.effect.shake = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "effect" ),
Function fileSaverSaveAs
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fileSaverSaveAs(blob, name, opts, popup) {
// Open a popup immediately do go around popup blocker
// Mostly only available on user interaction and the fileReader is async so...
popup = popup || open('', '_blank');
if (popup) {
Function string2buf
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var string2buf = (str) => {
if (typeof TextEncoder === 'function' && TextEncoder.prototype.encode) {
return new TextEncoder().encode(str);
}
Function _makeResizable
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_makeResizable: function( handles ) {
handles = (handles === undefined ? this.options.resizable : handles);
var that = this,
options = this.options,
// .ui-resizable has position: relative defined in the stylesheet
Function makeLocalContext
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeLocalContext (store, namespace, path) {
var noNamespace = namespace === '';
var local = {
dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
Method getSessionFromInfo
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSessionFromInfo( SessionInfo $info, WebRequest $request ) {
// @codeCoverageIgnoreStart
if ( defined( 'MW_NO_SESSION' ) ) {
$ep = defined( 'MW_ENTRY_POINT' ) ? MW_ENTRY_POINT : 'this';
Method getProperties
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getProperties( $titles, $propertyNames ) {
if ( is_array( $propertyNames ) ) {
$gotArray = true;
} else {
$propertyNames = [ $propertyNames ];
Method sendResponseHeaders
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function sendResponseHeaders(
Context $context, $etag, $errors, array $extra = []
): void {
HeaderCallback::warnIfHeadersSent();
Method getApiData
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getApiData( ApiResult $result ) {
$file = $this->file;
$user = $this->list->getUser();
$ret = [
'title' => $this->list->getPageName(),