jkawamoto/roadie

View on GitHub

Showing 611 of 2,161 total issues

TaskUpdateParams has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

type TaskUpdateParams struct {

    /*IfMatch
      An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.

Severity: Minor
Found in cloud/azure/batch/client/tasks/task_update_parameters.go - About 3 hrs to fix

    JobScheduleGetParams has 29 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type JobScheduleGetParams struct {
    
        /*NrDollarExpand
          An OData $expand clause.
    
    
    Severity: Minor
    Found in cloud/azure/batch/client/job_schedules/job_schedule_get_parameters.go - About 3 hrs to fix

      Function TestQueues has a Cognitive Complexity of 39 (exceeds 20 allowed). Consider refactoring.
      Open

      func TestQueues(t *testing.T) {
      
          var err error
          ctx := context.Background()
          m := NewQueueManager()
      Severity: Minor
      Found in cloud/mock/queue_test.go - About 3 hrs 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

      Method mockStorageAccountServer.ServeHTTP has 107 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (m *mockStorageAccountServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
      
          paths := strings.Split(strings.TrimPrefix(req.URL.Path, "/"), "/")
          if len(paths) < 2 {
              res.WriteHeader(http.StatusBadRequest)
      Severity: Major
      Found in cloud/azure/storage_test.go - About 3 hrs to fix

        JobUpdateParams has 27 methods (exceeds 20 allowed). Consider refactoring.
        Open

        type JobUpdateParams struct {
        
            /*IfMatch
              An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
        
        
        Severity: Minor
        Found in cloud/azure/batch/client/jobs/job_update_parameters.go - About 3 hrs to fix

          PoolEnableAutoScaleParams has 27 methods (exceeds 20 allowed). Consider refactoring.
          Open

          type PoolEnableAutoScaleParams struct {
          
              /*IfMatch
                An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
          
          
          Severity: Minor
          Found in cloud/azure/batch/client/pools/pool_enable_auto_scale_parameters.go - About 3 hrs to fix

            PoolPatchParams has 27 methods (exceeds 20 allowed). Consider refactoring.
            Open

            type PoolPatchParams struct {
            
                /*IfMatch
                  An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
            
            
            Severity: Minor
            Found in cloud/azure/batch/client/pools/pool_patch_parameters.go - About 3 hrs to fix

              PoolUpgradeOSParams has 27 methods (exceeds 20 allowed). Consider refactoring.
              Open

              type PoolUpgradeOSParams struct {
              
                  /*IfMatch
                    An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
              
              
              Severity: Minor
              Found in cloud/azure/batch/client/pools/pool_upgrade_o_s_parameters.go - About 3 hrs to fix

                PoolResizeParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                Open

                type PoolResizeParams struct {
                
                    /*IfMatch
                      An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                
                
                Severity: Minor
                Found in cloud/azure/batch/client/pools/pool_resize_parameters.go - About 3 hrs to fix

                  PoolRemoveNodesParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  type PoolRemoveNodesParams struct {
                  
                      /*IfMatch
                        An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                  
                  

                    TaskTerminateParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    type TaskTerminateParams struct {
                    
                        /*IfMatch
                          An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                    
                    
                    Severity: Minor
                    Found in cloud/azure/batch/client/tasks/task_terminate_parameters.go - About 3 hrs to fix

                      JobPatchParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      type JobPatchParams struct {
                      
                          /*IfMatch
                            An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                      
                      
                      Severity: Minor
                      Found in cloud/azure/batch/client/jobs/job_patch_parameters.go - About 3 hrs to fix

                        JobDisableParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        type JobDisableParams struct {
                        
                            /*IfMatch
                              An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                        
                        
                        Severity: Minor
                        Found in cloud/azure/batch/client/jobs/job_disable_parameters.go - About 3 hrs to fix

                          TaskDeleteParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          type TaskDeleteParams struct {
                          
                              /*IfMatch
                                An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                          
                          
                          Severity: Minor
                          Found in cloud/azure/batch/client/tasks/task_delete_parameters.go - About 3 hrs to fix

                            TaskReactivateParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                            Open

                            type TaskReactivateParams struct {
                            
                                /*IfMatch
                                  An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                            
                            
                            Severity: Minor
                            Found in cloud/azure/batch/client/tasks/task_reactivate_parameters.go - About 3 hrs to fix

                              JobTerminateParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              type JobTerminateParams struct {
                              
                                  /*IfMatch
                                    An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                              
                              
                              Severity: Minor
                              Found in cloud/azure/batch/client/jobs/job_terminate_parameters.go - About 3 hrs to fix

                                JobSchedulePatchParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                type JobSchedulePatchParams struct {
                                
                                    /*IfMatch
                                      An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                                
                                

                                  FileGetFromComputeNodeParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  type FileGetFromComputeNodeParams struct {
                                  
                                      /*IfModifiedSince
                                        Specify this header to perform the operation only if the resource has been modified since the specified date/time.
                                  
                                  

                                    JobScheduleUpdateParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    type JobScheduleUpdateParams struct {
                                    
                                        /*IfMatch
                                          An ETag is specified. Specify this header to perform the operation only if the resource's ETag is an exact match as specified.
                                    
                                    

                                      FileGetFromTaskParams has 27 methods (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      type FileGetFromTaskParams struct {
                                      
                                          /*IfModifiedSince
                                            Specify this header to perform the operation only if the resource has been modified since the specified date/time.
                                      
                                      
                                      Severity: Minor
                                      Found in cloud/azure/batch/client/files/file_get_from_task_parameters.go - About 3 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language