talho/openphin

View on GitHub

Showing 3,486 of 3,486 total issues

Function createResponseObject has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function createResponseObject(o, callbackArg) {
        var headerObj = {},
            headerStr,
            conn = o.conn,
            t,
Severity: Minor
Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 1 hr to fix

    Function setRunAttr has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            setRunAttr: function(attr) {
                var me = this,
                    a = this.attributes[attr],
                    to = a.to,
                    by = a.by,
    Severity: Minor
    Found in app/assets/javascripts/ext/adapter/ext/ext-base-debug.js - About 1 hr to fix

      Function _makeVideos has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        _makeVideos: function (data) {
          var feed = data.feed;
          var entries = feed.entry || [];
          var list = Ext.getCmp(this.context.id)
          var columns = Math.floor(this.context.dom.clientWidth / 280);
      Severity: Minor
      Found in app/assets/javascripts/ext_extensions/YouTubeList.js - About 1 hr to fix

        Function initFields has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            initFields: function(){
                var cm = this.grid.getColumnModel(), pm = Ext.layout.ContainerLayout.prototype.parseMargins;
                this.removeAll(false);
                for(var i = 0, len = cm.getColumnCount(); i < len; i++){
                    var c = cm.getColumnAt(i),
        Severity: Minor
        Found in app/assets/javascripts/ext_extensions/RowEditor.js - About 1 hr to fix

          Function initComponent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            initComponent: function() {
              this.alert_store = new Ext.data.JsonStore({
                url: '/alerts/recent_alerts.json',
                baseParams: {
                  'num_alerts': this.numAlerts
          Severity: Minor
          Found in app/assets/javascripts/dashboard/cms/portlets/alerts.js - About 1 hr to fix

            Function showPermissionsWindow has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              showPermissionsWindow: function(){
                var win = new Talho.Dashboard.CMS.Views.ManagePermissionsWindow({
                  audience_config: this.audience_config,
                  application_default: this.application_default,
                  superadmin: this.superadmin,
            Severity: Minor
            Found in app/assets/javascripts/dashboard/cms/admin_controller.js - About 1 hr to fix

              Method create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                def create
                  jurisdiction = Jurisdiction.find(params[:role_assigns][:jurisdiction_id]) unless params[:role_assigns][:jurisdiction_id].blank?
                  if jurisdiction.nil?
                    flash[:error] = "No jurisdiction was specified"
                    redirect_to new_role_assignment_path
              Severity: Minor
              Found in app/controllers/admin/role_assignments_controller.rb - About 1 hr to fix

                Function constructor has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    constructor: function(config){
                        config = config || {};
                
                        Ext.applyIf(config, {
                            region:'north',
                Severity: Minor
                Found in app/assets/javascripts/dashboard/favorites.js - About 1 hr to fix

                  Method update has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    def update
                      success = true
                      error_messages = []
                  
                      user_list = ActiveSupport::JSON.decode(params[:batch][:users])
                  Severity: Minor
                  Found in app/controllers/admin/edit_users_controller.rb - About 1 hr to fix

                    Function loader has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function loader( loadFunction ) {
                        
                        var loaded = {},
                            loading = {};
                    
                    
                    Severity: Minor
                    Found in app/assets/javascripts/lib/dominoes-1.0-rc2.js - About 1 hr to fix

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

                              if(e.shiftKey && !this.singleSelect && this.last !== false){
                                  var last = this.last;
                                  this.selectRange(last, rowIndex, e.ctrlKey);
                                  this.last = last; // reset the last
                                  view.focusRow(rowIndex);
                      app/assets/javascripts/ext_extensions/FilterableCheckboxSelectionModel.js on lines 34..47

                      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 58.

                      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

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

                              if(e.shiftKey && !this.singleSelect && this.last !== false){
                                  var last = this.last;
                                  this.selectRange(last, rowIndex, e.ctrlKey);
                                  this.last = last; // reset the last
                                  view.focusRow(rowIndex);
                      app/assets/javascripts/ext/src/widgets/grid/RowSelectionModel.js on lines 345..358

                      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 58.

                      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

                        constructor: function(){
                          Talho.Admin.Apps.view.New.superclass.constructor.apply(this, arguments);
                          this.addEvents('save', 'cancel');
                        },
                      Severity: Major
                      Found in app/assets/javascripts/admin/apps/view/New.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/admin/apps/view/Show.js on lines 8..12

                      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 58.

                      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

                        constructor: function(){
                          Talho.Admin.Apps.view.Show.superclass.constructor.apply(this, arguments);
                          
                          this.addEvents('change', 'loadcomplete');
                        },
                      Severity: Major
                      Found in app/assets/javascripts/admin/apps/view/Show.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/admin/apps/view/New.js on lines 8..11

                      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 58.

                      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(Ext.layout.BorderLayout.SplitRegion){
                        Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
                          splitTip            : "Yeniden boyutlandýrmak için sürükle.",
                          collapsibleSplitTip : "Yeniden boyutlandýrmak için sürükle. Saklamak için çift týkla."
                        });
                      Severity: Major
                      Found in app/assets/javascripts/ext/src/locale/ext-lang-tr.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/ext/src/locale/ext-lang-hr.js on lines 290..295

                      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 58.

                      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(Ext.layout.BorderLayout.SplitRegion){
                         Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
                            splitTip            : "Povuci za promjenu veličine.",
                            collapsibleSplitTip : "Povuci za promjenu veličine. Dvostruki klik za skrivanje."
                         });
                      Severity: Major
                      Found in app/assets/javascripts/ext/src/locale/ext-lang-hr.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/ext/src/locale/ext-lang-tr.js on lines 301..306

                      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 58.

                      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

                          var template = new Ext.XTemplate(
                            '<ul class="orgs">',
                            '<tpl for=".">',
                              '<li class="org-item ' + '<tpl if="state==' + "'pending'" + '">org-pending</tpl>' + '">',
                                '<!--[if IE]><div class="IEonly"><![endif]-->',
                      Severity: Major
                      Found in app/assets/javascripts/profile/OrganizationsControl.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/profile/RolesControl.js on lines 116..129

                      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 58.

                      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

                          var template = new Ext.XTemplate(
                            '<ul class="roles">',
                            '<tpl for=".">',
                              '<li class="role-item ' + '<tpl if="state==' + "'pending'" + '">role-pending</tpl>' + '">',
                                '<!--[if IE]><div class="IEonly"><![endif]-->',
                      Severity: Major
                      Found in app/assets/javascripts/profile/RolesControl.js and 1 other location - About 1 hr to fix
                      app/assets/javascripts/profile/OrganizationsControl.js on lines 94..107

                      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 58.

                      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

                      Function argCalc has 9 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                                  function argCalc(style, s1, s2, p1, v1, p2, v2, p3, v3){                    
                      Severity: Major
                      Found in app/assets/javascripts/ext/src/ext-core/src/core/Fx.js - About 1 hr to fix

                        Function dirNodeCheck has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                            var sibDir = dir == "previousSibling" && !isXML;
                            for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                                var elem = checkSet[i];
                                if ( elem ) {
                        Severity: Minor
                        Found in app/assets/javascripts/jquery.js - About 1 hr to fix
                          Severity
                          Category
                          Status
                          Source
                          Language