fossasia/loklak_webclient

View on GitHub
iframely/modules/tests-ui/utils.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function findUsedMethods has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function findUsedMethods(options, debugData, result) {

    // Find debug data for specific link.

    result = result || [];
Severity: Minor
Found in iframely/modules/tests-ui/utils.js - About 1 hr to fix

    Function fetchFeedUrls has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var fetchFeedUrls = exports.fetchFeedUrls = function(feedUrl, options, cb) {
    
        if (typeof options === "function") {
            cb = options;
            options = {};
    Severity: Minor
    Found in iframely/modules/tests-ui/utils.js - About 1 hr to fix

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

      exports.fetchUrlsByPageAndSelector = function(page, selector, options, cb) {
      
          if (typeof options === "function") {
              cb = options;
              options = {};
      Severity: Minor
      Found in iframely/modules/tests-ui/utils.js - About 1 hr to fix

        Function findAllPluginMethods has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function findAllPluginMethods(pluginId, plugins, result, skipped) {
        
            result = result || {
                mandatory: [],
                skipped: []
        Severity: Minor
        Found in iframely/modules/tests-ui/utils.js - About 1 hr to fix

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

          exports.fetchUrlsByPageOnFeed = function(pageWithFeed, otpions, cb) {
          
              if (typeof options === "function") {
                  cb = options;
                  options = {};
          Severity: Minor
          Found in iframely/modules/tests-ui/utils.js - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status