aristath/kirki

View on GitHub
packages/kirki-framework/module-webfonts/src/assets/scripts/vendor-typekit/src/modules/google/fontapiparser.js

Summary

Maintainability
A
1 hr
Test Coverage

Function parse has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  FontApiParser.prototype.parse = function() {
    var length = this.fontFamilies_.length;

    for (var i = 0; i < length; i++) {
      var elements = this.fontFamilies_[i].split(":");

Avoid deeply nested control flow statements.
Open

            if (fontTestString) {
              this.fontTestStrings_[fontFamily] = fontTestString;
            }

There are no issues that match your filters.

Category
Status