chamilo/chamilo-lms

View on GitHub

Showing 11,435 of 11,435 total issues

Function pdfjsWrapper has a Cognitive Complexity of 2236 (exceeds 5 allowed). Consider refactoring.
Open

(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
'use strict';
 
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
Severity: Minor
Found in public/main/inc/lib/javascript/ViewerJS/pdf.js - About 1 mo to fix

File jquery.jqGrid.src.js has 12394 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
 
/**
* @license jqGrid 4.6.0 - jQuery Grid
Severity: Major
Found in public/main/inc/lib/javascript/jqgrid/js/jquery.jqGrid.src.js - About 1 mo to fix

    Function pdfjsWrapper has 5950 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    (function pdfjsWrapper() {
    // Use strict in our context only - users might not want it
    'use strict';
     
    /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
    Severity: Major
    Found in public/main/inc/lib/javascript/ViewerJS/pdf.js - About 1 mo to fix

      Function manage_answer has a Cognitive Complexity of 1349 (exceeds 5 allowed). Consider refactoring.
      Open

      public function manage_answer(
      $exeId,
      $questionId,
      $choice,
      $from = 'exercise_show',
      Severity: Minor
      Found in public/main/exercise/exercise.class.php - About 1 mo to fix

      File d3.v3.5.4.js has 9493 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      !function() {
      var d3 = {
      version: "3.5.4"
      };
      var d3_arraySlice = [].slice, d3_array = function(list) {
      Severity: Major
      Found in public/main/inc/lib/javascript/d3/d3.v3.5.4.js - About 3 wks to fix

        File exercise.class.php has 8342 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
         
        /* For licensing terms, see /license.txt */
         
        use Chamilo\CoreBundle\Component\Utils\ChamiloApi;
        Severity: Major
        Found in public/main/exercise/exercise.class.php - About 3 wks to fix

          File sessionmanager.lib.php has 7880 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
           
          /* For licensing terms, see /license.txt */
           
          use Chamilo\CoreBundle\Entity\Asset;
          Severity: Major
          Found in public/main/inc/lib/sessionmanager.lib.php - About 3 wks to fix

            Function importCSV has a Cognitive Complexity of 948 (exceeds 5 allowed). Consider refactoring.
            Open

            public static function importCSV(
            $file,
            $updateSession,
            $defaultUserId = null,
            $logger = null,
            Severity: Minor
            Found in public/main/inc/lib/sessionmanager.lib.php - About 2 wks to fix

            File tracking.lib.php has 6437 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
             
            /* For licensing terms, see /license.txt */
             
            use Chamilo\CoreBundle\Entity\TrackEAttemptQualify;
            Severity: Major
            Found in public/main/inc/lib/tracking.lib.php - About 2 wks to fix

              File learnpath.class.php has 6166 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
               
              /* For licensing terms, see /license.txt */
               
              use Chamilo\CoreBundle\Entity\Course;
              Severity: Major
              Found in public/main/lp/learnpath.class.php - About 2 wks to fix

                File pdf.js has 5968 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
                /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
                /* Copyright 2012 Mozilla Foundation
                *
                * Licensed under the Apache License, Version 2.0 (the "License");
                Severity: Major
                Found in public/main/inc/lib/javascript/ViewerJS/pdf.js - About 2 wks to fix

                  File jquery.jsPlumb.all.js has 5326 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*
                  * jsPlumb
                  *
                  * Title:jsPlumb 1.3.7
                  *
                  Severity: Major
                  Found in public/main/inc/lib/javascript/jquery.jsPlumb.all.js - About 2 wks to fix

                    Function parse_prereq has a Cognitive Complexity of 717 (exceeds 5 allowed). Consider refactoring.
                    Open

                    public function parse_prereq($prereqs_string, $items, $refs_list, $user_id)
                    {
                    $debug = self::DEBUG;
                    if ($debug > 0) {
                    error_log(
                    Severity: Minor
                    Found in public/main/lp/learnpathItem.class.php - About 2 wks to fix

                    Function returnCoursesAndSessions has a Cognitive Complexity of 714 (exceeds 5 allowed). Consider refactoring.
                    Open

                    public function returnCoursesAndSessions(
                    $user_id,
                    $showSessions = true,
                    $categoryCodeFilter = '',
                    $useUserLanguageFilterIfAvailable = true,
                    Severity: Minor
                    Found in public/main/inc/lib/userportal.lib.php - About 2 wks to fix

                    File exercise.lib.php has 4910 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                     
                    /* For licensing terms, see /license.txt */
                     
                    use Chamilo\CoreBundle\Component\Utils\ChamiloApi;
                    Severity: Major
                    Found in public/main/inc/lib/exercise.lib.php - About 2 wks to fix

                      File api.lib.php has 4820 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                       
                      /* For licensing terms, see /license.txt */
                       
                      use Chamilo\CoreBundle\Entity\AccessUrl;
                      Severity: Major
                      Found in public/main/inc/lib/api.lib.php - About 1 wk to fix

                        File course.lib.php has 4757 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                         
                        /* For licensing terms, see /license.txt*/
                         
                        use Chamilo\CoreBundle\Entity\AccessUrlRelSession;
                        Severity: Major
                        Found in public/main/inc/lib/course.lib.php - About 1 wk to fix

                          Function showQuestion has a Cognitive Complexity of 649 (exceeds 5 allowed). Consider refactoring.
                          Open

                          public static function showQuestion(
                          $exercise,
                          $questionId,
                          $only_questions = false,
                          $origin = false,
                          Severity: Minor
                          Found in public/main/inc/lib/exercise.lib.php - About 1 wk to fix

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          "use strict";(function($){var months=['January','February','March','April','May','June','July','August','September','October','November','December'],days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],counts=[31,28,31,30,31,30,31,31,30,31,30,31],suffix=[null,'st','nd','rd'],_;function pad(format,string,length)
                          {format=format+'';length=length||2;return format.length<length?new Array(1+length-format.length).join(string)+format:format;}
                          function rpad(format,string,length)
                          {format=format+'';length=length||2;return format.length<length?format+new Array(1+length-format.length).join(string):format;}
                          function modCalc(date,mod1,mod2)
                          public/main/inc/lib/javascript/epiclock/javascript/jquery.dateformat.min.js on lines 8..76

                          Similar blocks of code found in 2 locations. Consider refactoring.
                          Open

                          */"use strict";(function($){var months=['January','February','March','April','May','June','July','August','September','October','November','December'],days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],counts=[31,28,31,30,31,30,31,31,30,31,30,31],suffix=[null,'st','nd','rd'],_;function pad(format,string,length)
                          {format=format+'';length=length||2;return format.length<length?new Array(1+length-format.length).join(string)+format:format;}
                          function rpad(format,string,length)
                          {format=format+'';length=length||2;return format.length<length?format+new Array(1+length-format.length).join(string):format;}
                          function modCalc(date,mod1,mod2)
                          public/main/inc/lib/javascript/epiclock/javascript/jquery.epiclock.min.js on lines 9..77
                          Severity
                          Category
                          Status
                          Source
                          Language