CORE-POS/IS4C

View on GitHub

Showing 6,416 of 8,296 total issues

File JsonSerializerInternalReader.cs has 1692 lines of code (exceeds 250 allowed). Consider refactoring.
Open

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
#if !(NET35 || NET20 || PORTABLE40)

    Method get_id_view has 902 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function get_id_view()
        {
            $ret = '';
            $ret .= '
    
    

      Method get_id_view has 898 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function get_id_view()
          {
              $ret = '';
              $ret .= '
      
      

        File LinqBridge.cs has 1652 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        #endif

          File EditBatchPage.php has 1596 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /*******************************************************************************
          
              Copyright 2009,2010 Whole Foods Co-op
          
          
          Severity: Major
          Found in fannie/batches/newbatch/EditBatchPage.php - About 4 days to fix

            File XmlNodeConverter.cs has 1435 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            using System;
            using System.Collections.Generic;
            using System.Globalization;
            using System.Xml;
            #if !(NET20 || PORTABLE40)

              File JToken.cs has 1399 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              using System;
              using System.Collections.Generic;
              using Newtonsoft.Json.Linq.JsonPath;
              #if !(NET35 || NET20 || PORTABLE40)
              using System.Dynamic;

                Function rpOrder has a Cognitive Complexity of 180 (exceeds 5 allowed). Consider refactoring.
                Open

                var rpOrder = (function ($) {
                
                    var mod = {};
                    var state = {
                        'retention': 60,
                Severity: Minor
                Found in fannie/modules/plugins2.0/RP/rpDirect.js - About 3 days to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                File SPH_SignAndPay_USB.cs has 1347 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                using System;
                using System.IO;
                using System.IO.Ports;
                using System.Threading;
                using CustomForms;
                Severity: Major
                Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/SPH_SignAndPay_USB.cs - About 3 days to fix

                  File JsonTextReader.cs has 1344 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  using System;
                  using System.Collections.Generic;
                  using System.Diagnostics;
                  using System.Runtime.CompilerServices;
                  using System.Text;

                    File DeliCateringOrdersPageBackup0627.php has 1326 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    COPY OF DELICATERINGORDERSPAGE.PHP
                    
                    <?php 
                    /*******************************************************************************
                    
                    

                      File ProdReviewPage.php has 1304 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /*******************************************************************************
                      
                          Copyright 2017 Whole Foods Community Co-op
                      
                      
                      Severity: Major
                      Found in fannie/item/ProdReviewPage.php - About 3 days to fix

                        File ViewPurchaseOrders.php has 1298 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /*******************************************************************************
                        
                            Copyright 2013 Whole Foods Co-op
                        
                        
                        Severity: Major
                        Found in fannie/purchasing/ViewPurchaseOrders.php - About 3 days to fix

                          Function displayUI has a Cognitive Complexity of 165 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function displayUI($dateStr, $store){
                                  global $FANNIE_PLUGIN_SETTINGS;
                                  $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['OverShortDatabase']);
                          
                                  $startDate = $dateStr;
                          Severity: Minor
                          Found in fannie/modules/plugins2.0/OverShortTools/OverShortSafecountPage.php - About 3 days to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

                          File OrderViewPage.php has 1265 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /*******************************************************************************
                          
                              Copyright 2010 Whole Foods Co-op
                          
                          
                          Severity: Major
                          Found in fannie/ordering/OrderViewPage.php - About 3 days to fix

                            File DeliCateringOrdersPage.php has 1245 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php 
                            /*******************************************************************************
                            
                                Copyright 2013 Whole Foods Co-op
                            
                            

                              File ajax-calls.php has 1211 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              /*******************************************************************************
                              
                                  Copyright 2010 Whole Foods Co-op
                              
                              
                              Severity: Major
                              Found in fannie/ordering/ajax-calls.php - About 3 days to fix

                                File BaseItemModule.php has 1175 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                /*******************************************************************************
                                
                                    Copyright 2013 Whole Foods Co-op, Duluth, MN
                                
                                
                                Severity: Major
                                Found in fannie/item/modules/BaseItemModule.php - About 3 days to fix

                                  File MemberREST.php has 1138 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  <?php
                                  /*******************************************************************************
                                  
                                      Copyright 2010 Whole Foods Co-op, Duluth, MN
                                  
                                  
                                  Severity: Major
                                  Found in fannie/classlib2.0/member/MemberREST.php - About 2 days to fix

                                    Function rpOrder has a Cognitive Complexity of 143 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    var rpOrder = (function ($) {
                                    
                                        var mod = {};
                                        var state = {
                                            'retention': 60,
                                    Severity: Minor
                                    Found in fannie/modules/plugins2.0/RP/rpDual.js - About 2 days to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language