monsij/StudentPortal

View on GitHub
pro1/blog/static/blog/js/card.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function repoCard has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function repoCard(user, repo) {
    var url = baseurl + 'repos/' + user + '/' + repo;
    request(url, function(data) {
      data = data || {};
      var message = data.message;
Severity: Minor
Found in pro1/blog/static/blog/js/card.js - About 1 hr to fix

    Function userCard has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function userCard(user) {
        var url = baseurl + 'users/' + user;
        request(url, function(data) {
          data = data || {};
          var message = data.message;
    Severity: Minor
    Found in pro1/blog/static/blog/js/card.js - About 1 hr to fix

      Avoid too many return statements within this function.
      Open

          return num.toFixed(1) + 'k';
      Severity: Major
      Found in pro1/blog/static/blog/js/card.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status