wikimedia/mediawiki-core

View on GitHub

Showing 11,545 of 11,545 total issues

Function processExistenceCheckQueue has 42 lines of code (exceeds 25 allowed). Consider refactoring.
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;
Severity: Minor
Found in resources/src/mediawiki.widgets/mw.widgets.CategoryTagItemWidget.js - About 1 hr to fix

    Function set has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        set: function ( fn, delay ) {
            let nativeId = null,
                visibleId = nextId++,
                lastStartedAt = mw.now();
    
    
    Severity: Minor
    Found in resources/src/mediawiki.visibleTimeout/visibleTimeout.js - About 1 hr to fix

      Function getSetupProcess has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      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
      Severity: Minor
      Found in resources/src/mediawiki.feedback/FeedbackDialog.js - About 1 hr to fix

        Function parse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    parse: function ( str, options ) {
                        let q, matches,
                            uri = this,
                            hasOwn = Object.prototype.hasOwnProperty;
        
        
        Severity: Minor
        Found in resources/src/mediawiki.Uri/Uri.js - About 1 hr to fix

          Function useResizeObserver has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function useResizeObserver(templateRef) {
            const currentDimensions = ref(
              { width: void 0, height: void 0 }
            );
            if (typeof window !== "object" || !("ResizeObserver" in window) || !("ResizeObserverEntry" in window)) {
          Severity: Minor
          Found in resources/lib/codex/codex.js - About 1 hr to fix

            Function ConsoleReporter has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            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
            Severity: Minor
            Found in resources/lib/qunitjs/qunit.js - About 1 hr to fix

              Function handleStrictParse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function handleStrictParse(monthName, format, strict) {
                      var i,
                          ii,
                          mom,
                          llc = monthName.toLocaleLowerCase();
              Severity: Minor
              Found in resources/lib/moment/moment.js - About 1 hr to fix

                Function localeMonthsParse has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function localeMonthsParse(monthName, format, strict) {
                        var i, mom, regex;
                
                        if (this._monthsParseExact) {
                            return handleStrictParse.call(this, monthName, format, strict);
                Severity: Minor
                Found in resources/lib/moment/moment.js - About 1 hr to fix

                  Function add has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          add: function( url, label, index ) {
                              if ( index === undefined ) {
                                  index = this.anchors.length;
                              }
                  
                  
                  Severity: Minor
                  Found in resources/lib/jquery.ui/jquery.ui.tabs.js - About 1 hr to fix

                    Function organize has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    OO.ui.ActionSet.prototype.organize = function () {
                        const specialFlags = this.constructor.static.specialFlags;
                    
                        if ( !this.organized ) {
                            this.categorized = {};
                    Severity: Minor
                    Found in resources/lib/ooui/oojs-ui-windows.js - About 1 hr to fix

                      Function get has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      OO.ui.ActionSet.prototype.get = function ( filters ) {
                          if ( filters ) {
                              this.organize();
                      
                              let i, len;
                      Severity: Minor
                      Found in resources/lib/ooui/oojs-ui-windows.js - About 1 hr to fix

                        Function shake has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        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" ),
                        Severity: Minor
                        Found in resources/lib/jquery.ui/jquery.ui.effect-shake.js - About 1 hr to fix

                          Function fileSaverSaveAs has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                          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) {
                          Severity: Minor
                          Found in resources/lib/pinia/pinia.iife.js - About 1 hr to fix

                            Function string2buf has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              var string2buf = (str) => {
                                if (typeof TextEncoder === 'function' && TextEncoder.prototype.encode) {
                                  return new TextEncoder().encode(str);
                                }
                            
                            
                            Severity: Minor
                            Found in resources/lib/pako/pako_deflate.js - About 1 hr to fix

                              Function _makeResizable has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                              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
                              Severity: Minor
                              Found in resources/lib/jquery.ui/jquery.ui.dialog.js - About 1 hr to fix

                                Function makeLocalContext has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function makeLocalContext (store, namespace, path) {
                                    var noNamespace = namespace === '';
                                
                                    var local = {
                                      dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
                                Severity: Minor
                                Found in resources/lib/vuex/vuex.global.js - About 1 hr to fix

                                  Method getSessionFromInfo has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getSessionFromInfo( SessionInfo $info, WebRequest $request ) {
                                          // @codeCoverageIgnoreStart
                                          if ( defined( 'MW_NO_SESSION' ) ) {
                                              $ep = defined( 'MW_ENTRY_POINT' ) ? MW_ENTRY_POINT : 'this';
                                  
                                  
                                  Severity: Minor
                                  Found in includes/session/SessionManager.php - About 1 hr to fix

                                    Method getProperties has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getProperties( $titles, $propertyNames ) {
                                            if ( is_array( $propertyNames ) ) {
                                                $gotArray = true;
                                            } else {
                                                $propertyNames = [ $propertyNames ];
                                    Severity: Minor
                                    Found in includes/page/PageProps.php - About 1 hr to fix

                                      Method sendResponseHeaders has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          protected function sendResponseHeaders(
                                              Context $context, $etag, $errors, array $extra = []
                                          ): void {
                                              HeaderCallback::warnIfHeadersSent();
                                      
                                      
                                      Severity: Minor
                                      Found in includes/ResourceLoader/ResourceLoader.php - About 1 hr to fix

                                        Method getApiData has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function getApiData( ApiResult $result ) {
                                                $file = $this->file;
                                                $user = $this->list->getUser();
                                                $ret = [
                                                    'title' => $this->list->getPageName(),
                                        Severity: Minor
                                        Found in includes/revisiondelete/RevDelFileItem.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language