wikimedia/mediawiki-extensions-Translate

View on GitHub

Showing 1,238 of 1,238 total issues

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

function computeOffsets(table, ticks, min, max, options) {
Severity: Minor
Found in resources/lib/Chart.js/Chart.js - About 35 mins to fix

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

    function drawArea(ctx, curve0, curve1, len0, len1) {
    Severity: Minor
    Found in resources/lib/Chart.js/Chart.js - About 35 mins to fix

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

          private function progressCallback( Title $previous, Title $new, Status $status, int $total, int $processed ): void {
      Severity: Minor
      Found in src/PageTranslation/MoveTranslatableBundleMaintenanceScript.php - About 35 mins to fix

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

                Language $sourceLanguage,
                Language $targetLanguage,
                ?string $headingText,
                ?Message $msg,
                bool $isInline
        Severity: Minor
        Found in src/PageTranslation/TranslationUnit.php - About 35 mins to fix

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

                  Language $sourceLanguage,
                  Language $targetLanguage,
                  bool $wrapUntranslated,
                  array $messages = [],
                  ?Parser $parser = null
          Severity: Minor
          Found in src/PageTranslation/ParserOutput.php - About 35 mins to fix

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

                    ?Message $msg,
                    Language $sourceLanguage,
                    Language $targetLanguage,
                    bool $wrapUntranslated,
                    ?Parser $parser = null
            Severity: Minor
            Found in src/PageTranslation/TranslationUnit.php - About 35 mins to fix

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

                      Language $contentLanguage,
                      LanguageFactory $languageFactory,
                      LanguageNameUtils $languageNameUtils,
                      HookRunner $hookRunner,
                      Config $config
              Severity: Minor
              Found in src/TranslatorInterface/TranslateSpecialPage.php - About 35 mins to fix

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

                        RenderedRevision $renderedRevision,
                        UserIdentity $user,
                        CommentStoreComment $summary,
                        $flags,
                        Status $hookStatus
                Severity: Minor
                Found in src/PageTranslation/Hooks.php - About 35 mins to fix

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

                          Parser $parser,
                          array &$variableCache,
                          string $magicWordId,
                          ?string &$ret,
                          PPFrame $frame
                  Severity: Minor
                  Found in src/PageTranslation/Hooks.php - About 35 mins to fix

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

                            string $search,
                            string $count,
                            string $facets,
                            string $results,
                            int $total
                    Severity: Minor
                    Found in src/TtmServer/SearchTranslationsSpecialPage.php - About 35 mins to fix

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

                              string $groupId,
                              array $requestedLanguages,
                              array $alwaysExportLanguages,
                              int $exportThreshold = 0,
                              int $removalThreshold = 0
                      Severity: Minor
                      Found in src/Synchronization/ExportTranslationsMaintenanceScript.php - About 35 mins to fix

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

                                MessageGroup $group,
                                MessageSourceChange $sourceChanges,
                                OutputPage $out,
                                string $language,
                                int &$limit
                        Severity: Minor
                        Found in src/Synchronization/ManageGroupsSpecialPage.php - About 35 mins to fix

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

                                  LanguageNameUtils $languageNameUtils,
                                  TranslationStashReader $stash,
                                  UserOptionsLookup $userOptionsLookup,
                                  LanguageFactory $languageFactory,
                                  ServiceOptions $options
                          Severity: Minor
                          Found in src/TranslatorSandbox/TranslationStashSpecialPage.php - About 35 mins to fix

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

                                    ApiMain $mainModule,
                                    string $moduleName,
                                    IConnectionProvider $dbProvider,
                                    UserFactory $userFactory,
                                    MessageIndex $messageIndex
                            Severity: Minor
                            Found in src/TranslatorSandbox/TranslationStashActionApi.php - About 35 mins to fix

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

                                      IContextSource $context,
                                      Content $content,
                                      Status $status,
                                      string $summary,
                                      User $user
                              Severity: Minor
                              Found in src/HookHandler.php - About 35 mins to fix

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

                                        LinkRenderer $linkRenderer,
                                        ConfigHelper $configHelper,
                                        MessageLocalizer $messageLocalizer,
                                        Language $language,
                                        MessageGroupMetadata $messageGroupMetadata
                                Severity: Minor
                                Found in src/Statistics/StatsTable.php - About 35 mins to fix

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

                                          MessageSourceChange $changes,
                                          string $sourceLanguage,
                                          string $targetLanguage,
                                          MessageCollection $wiki,
                                          array $wikiKeys
                                  Severity: Minor
                                  Found in src/Synchronization/ExternalMessageSourceStateComparator.php - About 35 mins to fix

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

                                            SpecialSearch $search,
                                            string &$form,
                                            string $profile,
                                            string $term,
                                            array $opts
                                    Severity: Minor
                                    Found in src/HookHandler.php - About 35 mins to fix

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

                                              string $className,
                                              string $summaryMsgKey,
                                              string $descriptionMsgKey,
                                              string $htmlContent,
                                              string $preHtmlContent = null
                                      Severity: Minor
                                      Found in src/Synchronization/DisplayGroupSynchronizationInfo.php - About 35 mins to fix

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

                                                FileBasedMessageGroup $group,
                                                string $source,
                                                string $targetPath,
                                                array $keyCompatibilityMap,
                                                string $language
                                        Severity: Minor
                                        Found in src/Synchronization/BackportTranslationsMaintenanceScript.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language