wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 2,096 of 2,096 total issues

Function ApiValueFormatter has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        function ( formatValueCaller, additionalOptions, dataTypeId, propertyId, outputType ) {
Severity: Minor
Found in repo/resources/formatters/ApiValueFormatter.js - About 35 mins to fix

    Function register has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            register: function ( source, target, event, handler, options ) {
    Severity: Minor
    Found in view/resources/jquery/jquery.util.EventSingletonManager.js - About 35 mins to fix

      Function getListItemAdapterForStatementView has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          SELF.prototype.getListItemAdapterForStatementView = function ( startEditingCallback, entityId, getValueForDom, propertyId, removeCallback ) {
      Severity: Minor
      Found in view/resources/wikibase/view/ViewFactory.js - About 35 mins to fix

        Function installModule has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function installModule (store, rootState, path, module, hot) {
        Severity: Minor
        Found in view/lib/wikibase-tainted-ref/dist/tainted-ref.common.js - About 35 mins to fix

          Function CustomItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              var CustomItem = function ( label, visibility, action, cssClass, link ) {
          Severity: Minor
          Found in client/resources/jquery.ui/jquery.ui.ooMenu.js - About 35 mins to fix

            Function SELF has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    function ( model, toolbar, view, removeView, startEditingCallback ) {
            Severity: Minor
            Found in view/resources/wikibase/view/ToolbarViewController.js - About 35 mins to fix

              Method doApply has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  protected function doApply( SearchContext $context, $key, $value, $quotedValue, $negated ) {
              Severity: Minor
              Found in client/includes/MoreLikeWikibase.php - About 35 mins to fix

                Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        NamespaceChecker $namespaceChecker,
                        RepoLinker $repoLinker,
                        EntityIdParser $entityIdParser,
                        $langLinkSiteGroup,
                        $siteGlobalId
                Severity: Minor
                Found in client/includes/RepoItemLinkGenerator.php - About 35 mins to fix

                  Method newLanguageAwareRenderer has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          string $type,
                          Language $language,
                          UsageAccumulator $usageAccumulator,
                          ParserOutput $parserOutput,
                          Title $title

                    Method getLanguageAwareRendererFromCode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            string $type,
                            string $languageCode,
                            UsageAccumulator $usageAccumulator,
                            ParserOutput $parserOutput,
                            Title $title

                      Method onParserGetVariableValueSwitch has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public function onParserGetVariableValueSwitch( $parser, &$cache, $magicWordId, &$ret, $frame ) {
                      Severity: Minor
                      Found in client/includes/Hooks/MagicWordHookHandler.php - About 35 mins to fix

                        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                UsageUpdater $usageUpdater,
                                JobQueueGroup $jobScheduler,
                                UsageLookup $usageLookup,
                                UsageAccumulatorFactory $usageAccumulatorFactory,
                                LoggerInterface $logger = null
                        Severity: Minor
                        Found in client/includes/Hooks/DataUpdateHookHandler.php - About 35 mins to fix

                          Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  EntityChangeLookup $changeLookup,
                                  EntityChangeFactory $changeFactory,
                                  RecentChangeFactory $rcFactory,
                                  TitleFactory $titleFactory,
                                  array $params
                          Severity: Minor
                          Found in client/includes/Changes/InjectRCRecordsJob.php - About 35 mins to fix

                            Method getLink has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public function getLink( Title $title, $action, $hasLangLinks, ?array $noExternalLangLinks, $prefixedId ) {
                            Severity: Minor
                            Found in client/includes/RepoItemLinkGenerator.php - About 35 mins to fix

                              Method onOldChangesListRecentChangesLine has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      $changesList,
                                      &$s,
                                      $rc,
                                      &$classes = [],
                                      &$attribs = []
                              Severity: Minor
                              Found in client/includes/Hooks/ChangesListLinesHandler.php - About 35 mins to fix

                                Method newVariantsAwareRenderer has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        string $type,
                                        array $variants,
                                        UsageAccumulator $usageAccumulator,
                                        ParserOutput $parserOutput,
                                        Title $title

                                  Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          Serializer $entitySerializer,
                                          PropertyDataTypeLookup $dataTypeLookup,
                                          EntityIdParser $entityIdParser,
                                          array $filterLangCodes,
                                          array $termFallbackChains
                                  Severity: Minor
                                  Found in client/includes/Serializer/ClientEntitySerializer.php - About 35 mins to fix

                                    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            IConnectionProvider $dbProvider,
                                            NamespaceInfo $namespaceInfo,
                                            TitleFactory $titleFactory,
                                            ClientDomainDbFactory $db,
                                            NamespaceChecker $namespaceChecker
                                    Severity: Minor
                                    Found in client/includes/Specials/SpecialUnconnectedPages.php - About 35 mins to fix

                                      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              ApiMain $mainModule,
                                              string $moduleName,
                                              ParserFactory $parserFactory,
                                              ReferenceFormatterFactory $referenceFormatterFactory,
                                              Deserializer $referenceDeserializer
                                      Severity: Minor
                                      Found in client/includes/Api/ApiFormatReference.php - About 35 mins to fix

                                        Method formatCommonDataForEnhancedLine has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                                array &$data,
                                                ExternalChange $externalChange,
                                                Title $title,
                                                Language $lang,
                                                User $user
                                        Severity: Minor
                                        Found in client/includes/RecentChanges/ChangeLineFormatter.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language