linagora/openpaas-esn

View on GitHub
frontend/js/modules/alphalist.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    Categorize.prototype.replaceItem = function replaceItem(item) {
      var self = this;
      var letter = charAPI.getAsciiUpperCase(item[self.sortBy].charAt(0)) || self.keepAllKey;
      var oldCategory = self.getItemCategories(item)[0];
      var oldCategoryIndex = self.keys.indexOf(oldCategory);
Severity: Minor
Found in frontend/js/modules/alphalist.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status