juanmard/icestudio

View on GitHub
services/collections.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function alphaNumSort has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function alphaNumSort(a, b) {
        var regex = /[^\d]+|\d+/g;

        // Split each name into alphabetical and numeric parts
        var ar = a.match(regex);
Severity: Minor
Found in services/collections.js - About 1 hr to fix

    Function _newCollection has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function _newCollection(name, path, children) {
            var collection = _newEmptyCollection(name, path);
            console.debug('[collections._newCollection] collection:', collection);
            for (var child of children) {
              console.debug(
    Severity: Minor
    Found in services/collections.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status