wikimedia/mediawiki-extensions-Wikibase

View on GitHub

Showing 1,432 of 2,096 total issues

Method prefetchTerms has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function prefetchTerms(
        array $entityIds,
        array $termTypes,
        array $languageCodes
    ) {
Severity: Minor
Found in lib/includes/Store/Sql/Terms/PrefetchingEntityTermLookupBase.php - About 1 hr to fix

    Method resolveGroupedTermInLangIds has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function resolveGroupedTermInLangIds(
            array $groupedTermInLangIds,
            array $types = null,
            array $languages = null
        ): array {
    Severity: Minor
    Found in lib/includes/Store/Sql/Terms/DatabaseTermInLangIdsResolver.php - About 1 hr to fix

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

              LanguageLinkBadgeDisplay $badgeDisplay,
              NamespaceChecker $namespaceChecker,
              SiteLinkLookup $siteLinkLookup,
              EntityLookup $entityLookup,
              SiteLookup $siteLookup,
      Severity: Major
      Found in client/includes/Hooks/LangLinkHandlerFactory.php - About 1 hr to fix

        Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                LanguageNameUtils $languageNameUtils,
                AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
                ChangeOpFactoryProvider $changeOpFactoryProvider,
                MediaWikiEditEntityFactory $editEntityFactory,
                EntityPermissionChecker $entityPermissionChecker,
        Severity: Major
        Found in repo/includes/Specials/SpecialSetDescription.php - About 1 hr to fix

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

                  ApiMain $mainModule,
                  string $moduleName,
                  StatementChangeOpFactory $statementChangeOpFactory,
                  ApiErrorReporter $errorReporter,
                  StatementModificationHelper $modificationHelper,
          Severity: Major
          Found in repo/includes/Api/CreateClaim.php - About 1 hr to fix

            Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
                    ChangeOpFactoryProvider $changeOpFactoryProvider,
                    MediaWikiEditEntityFactory $editEntityFactory,
                    EntityTitleLookup $entityTitleLookup,
                    FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
            Severity: Major
            Found in repo/includes/Specials/SpecialSetSiteLink.php - About 1 hr to fix

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

                      $name,
                      $restriction,
                      array $tags,
                      SpecialPageCopyrightView $copyrightView,
                      EntityNamespaceLookup $entityNamespaceLookup,
              Severity: Major
              Found in repo/includes/Specials/SpecialNewEntity.php - About 1 hr to fix

                Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        ApiMain $mainModule,
                        string $moduleName,
                        ApiHelperFactory $apiHelperFactory,
                        ChangeOpFactoryProvider $changeOpFactoryProvider,
                        EntityIdParser $entityIdParser,
                Severity: Major
                Found in repo/includes/Api/SetQualifier.php - About 1 hr to fix

                  Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          ApiMain $mainModule,
                          string $moduleName,
                          ApiHelperFactory $apiHelperFactory,
                          ChangeOpFactoryProvider $changeOpFactoryProvider,
                          EntityIdParser $entityIdParser,
                  Severity: Major
                  Found in repo/includes/Api/RemoveClaims.php - About 1 hr to fix

                    Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            ApiMain $mainModule,
                            string $moduleName,
                            ApiHelperFactory $apiHelperFactory,
                            ChangeOpFactoryProvider $changeOpFactoryProvider,
                            EntityIdParser $entityIdParser,
                    Severity: Major
                    Found in repo/includes/Api/SetClaimValue.php - About 1 hr to fix

                      Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                              ApiMain $mainModule,
                              string $moduleName,
                              ApiHelperFactory $apiHelperFactory,
                              ChangeOpFactoryProvider $changeOpFactoryProvider,
                              EntityIdParser $entityIdParser,
                      Severity: Major
                      Found in repo/includes/Api/RemoveQualifiers.php - About 1 hr to fix

                        Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                LanguageNameUtils $languageNameUtils,
                                AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
                                ChangeOpFactoryProvider $changeOpFactoryProvider,
                                MediaWikiEditEntityFactory $editEntityFactory,
                                EntityPermissionChecker $entityPermissionChecker,
                        Severity: Major
                        Found in repo/includes/Specials/SpecialSetLabel.php - About 1 hr to fix

                          Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                                  LanguageNameUtils $languageNameUtils,
                                  AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
                                  ChangeOpFactoryProvider $changeOpFactoryProvider,
                                  MediaWikiEditEntityFactory $editEntityFactory,
                                  EntityPermissionChecker $entityPermissionChecker,
                          Severity: Major
                          Found in repo/includes/Specials/SpecialSetAliases.php - About 1 hr to fix

                            Method factory has 9 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    ApiMain $mainModule,
                                    string $moduleName,
                                    ApiHelperFactory $apiHelperFactory,
                                    ChangeOpFactoryProvider $changeOpFactoryProvider,
                                    EntityIdParser $entityIdParser,
                            Severity: Major
                            Found in repo/includes/Api/RemoveReferences.php - About 1 hr to fix

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

                                      EntityLookup $lookup,
                                      EntityIdParser $idParser,
                                      array $urlSchemes,
                                      string $itemVocabularyBaseUri,
                                      ContentLanguages $contentLanguages,
                              Severity: Major
                              Found in repo/includes/ValidatorBuilders.php - About 1 hr to fix

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

                                        array $conceptUris,
                                        array $dataUris,
                                        EntitySourceDefinitions $entitySourceDefinitions,
                                        array $rdfTurtleNodePrefixes,
                                        array $rdfTurtlePredicatePrefixes,
                                Severity: Major
                                Found in repo/includes/Rdf/RdfVocabulary.php - About 1 hr to fix

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

                                          SeekableEntityIdPager $idPager,
                                          MessageReporter $progressReporter,
                                          MessageReporter $errorReporter,
                                          RepoDomainDb $db,
                                          EntityLookup $entityLookup,
                                  Severity: Major
                                  Found in repo/maintenance/EntityQuantityUnitRebuilder.php - About 1 hr to fix

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

                                            PatchPropertyDescriptionsValidator $useCaseValidator,
                                            AssertPropertyExists $assertPropertyExists,
                                            AssertUserIsAuthorized $assertUserIsAuthorized,
                                            PropertyDescriptionsRetriever $descriptionsRetriever,
                                            DescriptionsSerializer $descriptionsSerializer,

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

                                              PatchPropertyAliasesValidator $validator,
                                              AssertPropertyExists $assertPropertyExists,
                                              AssertUserIsAuthorized $assertUserIsAuthorized,
                                              PropertyAliasesRetriever $aliasesRetriever,
                                              AliasesSerializer $aliasesSerializer,

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

                                                PatchSitelinksValidator $useCaseValidator,
                                                AssertItemExists $assertItemExists,
                                                AssertUserIsAuthorized $assertUserIsAuthorized,
                                                SitelinksRetriever $SitelinksRetriever,
                                                SitelinksSerializer $sitelinksSerializer,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language