wikimedia/mediawiki-extensions-Translate

View on GitHub

Showing 994 of 1,238 total issues

Consider simplifying this complex logical expression.
Open

        if (helpers_core.isObject(value)) {
            t = +value.top || 0;
            r = +value.right || 0;
            b = +value.bottom || 0;
            l = +value.left || 0;
Severity: Major
Found in resources/lib/Chart.js/Chart.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if (i === me.zeroLineIndex && options.offset === offsetGridLines) {
                    // Draw the first index specially
                    lineWidth = gridLines.zeroLineWidth;
                    lineColor = gridLines.zeroLineColor;
                    borderDash = gridLines.zeroLineBorderDash || [];
    Severity: Major
    Found in resources/lib/Chart.js/Chart.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if ( $title && $type === 'addition' && $title->exists() ) {
                  // The message has for some reason dropped out from cache
                  // or, perhaps it is being reused. In any case treat it
                  // as a change for display, so the admin can see if
                  // action is needed and let the message be processed.
      Severity: Major
      Found in src/Synchronization/ManageGroupsSpecialPage.php - About 40 mins to fix

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

        function determineLimits(angle, pos, size, min, max) {
        Severity: Minor
        Found in resources/lib/Chart.js/Chart.js - About 35 mins to fix

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

          function determineUnitForFormatting(scale, numTicks, minUnit, min, max) {
          Severity: Minor
          Found in resources/lib/Chart.js/Chart.js - About 35 mins to fix

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

                    getMessages: function ( messageGroup, language, offset, limit, filter ) {
            Severity: Minor
            Found in resources/js/ext.translate.messagetable.js - About 35 mins to fix

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

              function createEvent(type, chart, x, y, nativeEvent) {
              Severity: Minor
              Found in resources/lib/Chart.js/Chart.js - About 35 mins to fix

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

                    helpers$1.measureText = function(ctx, data, gc, longest, string) {
                Severity: Minor
                Found in resources/lib/Chart.js/Chart.js - About 35 mins to fix

                  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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language