JohnCashmore/node-fonts-used

View on GitHub
lib/fonts-used.js

Summary

Maintainability
A
1 hr
Test Coverage

Function findFonts has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.findFonts = function (strCSS) {
    var obj = css.parse(strCSS);
    var fonts = [];
    obj.stylesheet.rules.forEach(function (rule) {
        if(rule.declarations) {
Severity: Minor
Found in lib/fonts-used.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status