wikimedia/mediawiki-extensions-Translate

View on GitHub
resources/js/ext.translate.special.searchtranslations.js

Summary

Maintainability
C
1 day
Test Coverage

Function listGroups has 98 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function listGroups( groupList, parentGrouppath, $parent, level ) {
        var selectedClass = '',
            maxListSize = 10,
            currentGroup = $( '.facet.groups' ).data( 'group' ),
            resultCount = groupList.length;
Severity: Major
Found in resources/js/ext.translate.special.searchtranslations.js - About 3 hrs to fix

    File ext.translate.special.searchtranslations.js has 327 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    ( function () {
        'use strict';
    
        var resultGroups;
    
    
    Severity: Minor
    Found in resources/js/ext.translate.special.searchtranslations.js - About 3 hrs to fix

      Function showLanguages has 81 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function showLanguages() {
              var ulslanguages = [],
                  selectedClasss = '',
                  quickLanguageList = [],
                  unique = [];
      Severity: Major
      Found in resources/js/ext.translate.special.searchtranslations.js - About 3 hrs to fix

        There are no issues that match your filters.

        Category
        Status