sibprogrammer/owp

View on GitHub

Showing 803 of 803 total issues

File ext-lang-pl.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Ext JS Library 3.2.1
 * Copyright(c) 2006-2010 Ext JS, Inc.
 * licensing@extjs.com
 * http://www.extjs.com/license
Severity: Minor
Found in public/ext/locale/ext-lang-pl.js - About 2 hrs to fix

    Method owp_CreateAccount has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function owp_CreateAccount($params)
    {
        # ** The variables listed below are passed into all module functions **
    
        $serviceid = $params["serviceid"]; # Unique ID of the product/service in the WHMCS Database
    Severity: Major
    Found in utils/whmcs/owp/owp.php - About 2 hrs to fix

      File ext-lang-pt_PT.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Ext JS Library 3.2.1
       * Copyright(c) 2006-2010 Ext JS, Inc.
       * licensing@extjs.com
       * http://www.extjs.com/license
      Severity: Minor
      Found in public/ext/locale/ext-lang-pt_PT.js - About 2 hrs to fix

        File ext-lang-hu.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /*!
         * Ext JS Library 3.2.1
         * Copyright(c) 2006-2010 Ext JS, Inc.
         * licensing@extjs.com
         * http://www.extjs.com/license
        Severity: Minor
        Found in public/ext/locale/ext-lang-hu.js - About 2 hrs to fix

          File ext-lang-el_GR.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * Ext JS Library 3.2.1
           * Copyright(c) 2006-2010 Ext JS, Inc.
           * licensing@extjs.com
           * http://www.extjs.com/license
          Severity: Minor
          Found in public/ext/locale/ext-lang-el_GR.js - About 2 hrs to fix

            File ext-lang-fi.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*!
             * Ext JS Library 3.2.1
             * Copyright(c) 2006-2010 Ext JS, Inc.
             * licensing@extjs.com
             * http://www.extjs.com/license
            Severity: Minor
            Found in public/ext/locale/ext-lang-fi.js - About 2 hrs to fix

              File ext-lang-tr.js has 263 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*!
               * Ext JS Library 3.2.1
               * Copyright(c) 2006-2010 Ext JS, Inc.
               * licensing@extjs.com
               * http://www.extjs.com/license
              Severity: Minor
              Found in public/ext/locale/ext-lang-tr.js - About 2 hrs to fix

                File ext-lang-pt_BR.js has 262 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*!
                 * Ext JS Library 3.2.1
                 * Copyright(c) 2006-2010 Ext JS, Inc.
                 * licensing@extjs.com
                 * http://www.extjs.com/license
                Severity: Minor
                Found in public/ext/locale/ext-lang-pt_BR.js - About 2 hrs to fix

                  File ext-lang-id.js has 260 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * Ext JS Library 3.2.1
                   * Copyright(c) 2006-2010 Ext JS, Inc.
                   * licensing@extjs.com
                   * http://www.extjs.com/license
                  Severity: Minor
                  Found in public/ext/locale/ext-lang-id.js - About 2 hrs to fix

                    Method save_physically has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      def save_physically
                        return false if !valid?
                        is_new = new_record?
                    
                        if is_new
                    Severity: Major
                    Found in app/models/virtual_server.rb - About 2 hrs to fix

                      File ext-lang-it.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*!
                       * Ext JS Library 3.2.1
                       * Copyright(c) 2006-2010 Ext JS, Inc.
                       * licensing@extjs.com
                       * http://www.extjs.com/license
                      Severity: Minor
                      Found in public/ext/locale/ext-lang-it.js - About 2 hrs to fix

                        File ext-lang-cs.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         * Ext JS Library 3.2.1
                         * Copyright(c) 2006-2010 Ext JS, Inc.
                         * licensing@extjs.com
                         * http://www.extjs.com/license
                        Severity: Minor
                        Found in public/ext/locale/ext-lang-cs.js - About 2 hrs to fix

                          File ext-lang-th.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /*!
                           * Ext JS Library 3.2.1
                           * Copyright(c) 2006-2010 Ext JS, Inc.
                           * licensing@extjs.com
                           * http://www.extjs.com/license
                          Severity: Minor
                          Found in public/ext/locale/ext-lang-th.js - About 2 hrs to fix

                            File ext-lang-da.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*!
                             * Ext JS Library 3.2.1
                             * Copyright(c) 2006-2010 Ext JS, Inc.
                             * licensing@extjs.com
                             * http://www.extjs.com/license
                            Severity: Minor
                            Found in public/ext/locale/ext-lang-da.js - About 2 hrs to fix

                              File ext-lang-no_NN.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /*!
                               * Ext JS Library 3.2.1
                               * Copyright(c) 2006-2010 Ext JS, Inc.
                               * licensing@extjs.com
                               * http://www.extjs.com/license
                              Severity: Minor
                              Found in public/ext/locale/ext-lang-no_NN.js - About 2 hrs to fix

                                File ext-lang-he.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /*!
                                 * Ext JS Library 3.2.1
                                 * Copyright(c) 2006-2010 Ext JS, Inc.
                                 * licensing@extjs.com
                                 * http://www.extjs.com/license
                                Severity: Minor
                                Found in public/ext/locale/ext-lang-he.js - About 2 hrs to fix

                                  File ext-lang-no_NB.js has 256 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  /*!
                                   * Ext JS Library 3.2.1
                                   * Copyright(c) 2006-2010 Ext JS, Inc.
                                   * licensing@extjs.com
                                   * http://www.extjs.com/license
                                  Severity: Minor
                                  Found in public/ext/locale/ext-lang-no_NB.js - About 2 hrs to fix

                                    File ext-lang-hr.js has 255 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*!
                                     * Ext JS Library 3.2.1
                                     * Copyright(c) 2006-2010 Ext JS, Inc.
                                     * licensing@extjs.com
                                     * http://www.extjs.com/license
                                    Severity: Minor
                                    Found in public/ext/locale/ext-lang-hr.js - About 2 hrs to fix

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

                                            if counter and is_running and (counter.limit.to_i > 0)
                                              stats << {
                                                :parameter => t('admin.virtual_servers.stats.field.disk_usage'),
                                                :value => {
                                                  'text' => t(
                                      Severity: Major
                                      Found in app/controllers/admin/virtual_servers_controller.rb and 1 other location - About 2 hrs to fix
                                      app/controllers/admin/virtual_servers_controller.rb on lines 377..393

                                      Duplicated Code

                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                      Tuning

                                      This issue has a mass of 81.

                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                      Refactorings

                                      Further Reading

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

                                            if counter and is_running and (counter.limit.to_i > 0)
                                              stats << {
                                                :parameter => t('admin.virtual_servers.stats.field.memory_usage'),
                                                :value => {
                                                  'text' => t(
                                      Severity: Major
                                      Found in app/controllers/admin/virtual_servers_controller.rb and 1 other location - About 2 hrs to fix
                                      app/controllers/admin/virtual_servers_controller.rb on lines 357..373

                                      Duplicated Code

                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                      Tuning

                                      This issue has a mass of 81.

                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                      Refactorings

                                      Further Reading

                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language