MiniDigger/Hangar

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

Summary

Maintainability
A
2 hrs
Test Coverage

Function loadActions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function loadActions(increment, action) {
    pages[action] += increment;
    var offset = (pages[action] - 1) * CONTENT_PER_PAGE;

    apiV2Request('users/' + USERNAME + '/' + action + '?offset=' + offset + '&limit=' + CONTENT_PER_PAGE).then(function (result) {
Severity: Minor
Found in ore/public/javascripts/userPage.js - About 1 hr to fix

    Function setupAvatarForm has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function setupAvatarForm() {
    
        $('.btn-got-it').click(function () {
            var prompt = $(this).closest('.prompt');
            $.ajax({
    Severity: Minor
    Found in ore/public/javascripts/userPage.js - About 1 hr to fix

      TODO found
      Open

              //TODO: Use pagination info
      Severity: Minor
      Found in ore/public/javascripts/userPage.js by fixme

      There are no issues that match your filters.

      Category
      Status