fossasia/loklak_webclient

View on GitHub
iframely/plugins/custom/domain-icon.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getData has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    getData: function(url, cb) {

        // find domain and protocol
        var domain, protocol;
        var m = url.toLowerCase().match(/^(https?:\/\/)([^/]+)\/(.)/i);
Severity: Minor
Found in iframely/plugins/custom/domain-icon.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status