coding-blocks/leads-tracker-backend

View on GitHub

Showing 7 of 73 total issues

File main.js has 574 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require.config({
paths: {
bootstrap: './vendor/bootstrap.min',
diffMatchPatch: './vendor/diff_match_patch.min',
handlebars: './vendor/handlebars.min',
Severity: Major
Found in docs/main.js - About 1 day to fix

    File api_data.js has 460 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    define({ "api": [
    {
    "type": "post",
    "url": "/auth/",
    "title": "POST /auth/",
    Severity: Minor
    Found in docs/api_data.js - About 7 hrs to fix

      Function sendSampleRequest has 88 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function sendSampleRequest(group, name, version, type)
      {
      var $root = $('article[data-group="' + group + '"][data-name="' + name + '"][data-version="' + version + '"]');
       
      // Optional header
      Severity: Major
      Found in docs/utils/send_sample_request.js - About 3 hrs to fix

        Function changeVersionCompareTo has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function changeVersionCompareTo(e) {
        e.preventDefault();
         
        var $root = $(this).parents('article');
        var selectedVersion = $(this).html();
        Severity: Major
        Found in docs/main.js - About 2 hrs to fix

          Function _handlebarsEachCompared has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function _handlebarsEachCompared(fieldname, source, compare, options)
          {
          var dataList = [];
          var index = 0;
          if(source) {
          Severity: Major
          Found in docs/utils/handlebars_helper.js - About 2 hrs to fix

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

            function add_nav(nav, content, index) {
            var found_level1 = false;
            if ( ! content) {
            return found_level1;
            }
            Severity: Minor
            Found in docs/main.js - About 1 hr to fix

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

              function initDynamic() {
              // Bootstrap popover
              $('button[data-toggle="popover"]').popover().click(function(e) {
              e.preventDefault();
              });
              Severity: Minor
              Found in docs/main.js - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language