MiniDigger/Hangar

View on GitHub
ore/public/javascripts/versionList.js

Summary

Maintainability
C
1 day
Test Coverage

Function loadVersions has 221 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function loadVersions(increment, scrollTop) {
    var versionList = $('.version-table');

    var offset = (page + increment - 1) * VERSIONS_PER_PAGE;
    var url = 'projects/' + PLUGIN_ID + '/versions' + '?offset=' + offset;
Severity: Major
Found in ore/public/javascripts/versionList.js - About 1 day to fix

    File versionList.js has 275 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    //=====> EXTERNAL CONSTANTS
    
    var PLUGIN_ID = null;
    var VERSIONS_PER_PAGE = 10;
    var PROJECT_OWNER = null;
    Severity: Minor
    Found in ore/public/javascripts/versionList.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status