wikimedia/mediawiki-core

View on GitHub
resources/lib/jquery.i18n/src/jquery.i18n.language.js

Summary

Maintainability
C
7 hrs
Test Coverage

File jquery.i18n.language.js has 402 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* global pluralRuleParser */
( function ( $ ) {
    'use strict';

    // jscs:disable
Severity: Minor
Found in resources/lib/jquery.i18n/src/jquery.i18n.language.js - About 5 hrs to fix

    Function convertPlural has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            convertPlural: function ( count, forms ) {
                var pluralRules,
                    pluralFormIndex,
                    index,
                    explicitPluralPattern = /\d+=/i,
    Severity: Minor
    Found in resources/lib/jquery.i18n/src/jquery.i18n.language.js - About 1 hr to fix

      Function convertNumber has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              convertNumber: function ( num, integer ) {
                  var tmp, item, i,
                      transformTable, numberString, convertedNumber;
      
                  // Set the target Transform table:
      Severity: Minor
      Found in resources/lib/jquery.i18n/src/jquery.i18n.language.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status