jkawamoto/roadie

View on GitHub

Showing 611 of 2,161 total issues

JobListFromJobScheduleParams has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

type JobListFromJobScheduleParams struct {

    /*NrDollarExpand
      An OData $expand clause.

    TaskListParams has 25 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type TaskListParams struct {
    
        /*NrDollarExpand
          An OData $expand clause.
    
    
    Severity: Minor
    Found in cloud/azure/batch/client/tasks/task_list_parameters.go - About 2 hrs to fix

      JobScheduleEnableParams has 25 methods (exceeds 20 allowed). Consider refactoring.
      Open

      type JobScheduleEnableParams 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.
      
      

        JobScheduleTerminateParams has 25 methods (exceeds 20 allowed). Consider refactoring.
        Open

        type JobScheduleTerminateParams 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.
        
        

          FileListFromComputeNodeParams has 25 methods (exceeds 20 allowed). Consider refactoring.
          Open

          type FileListFromComputeNodeParams struct {
          
              /*NrDollarFilter
                An OData $filter clause.
          
          

            JobScheduleExistsParams has 25 methods (exceeds 20 allowed). Consider refactoring.
            Open

            type JobScheduleExistsParams 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.
            
            

              JobScheduleDeleteParams has 25 methods (exceeds 20 allowed). Consider refactoring.
              Open

              type JobScheduleDeleteParams 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.
              
              

                FileListFromTaskParams has 25 methods (exceeds 20 allowed). Consider refactoring.
                Open

                type FileListFromTaskParams struct {
                
                    /*NrDollarFilter
                      An OData $filter clause.
                
                
                Severity: Minor
                Found in cloud/azure/batch/client/files/file_list_from_task_parameters.go - About 2 hrs to fix

                  FileGetNodeFilePropertiesFromTaskParams has 25 methods (exceeds 20 allowed). Consider refactoring.
                  Open

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

                    FileGetNodeFilePropertiesFromComputeNodeParams has 25 methods (exceeds 20 allowed). Consider refactoring.
                    Open

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

                      JobScheduleDisableParams has 25 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      type JobScheduleDisableParams 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.
                      
                      

                        Method TaskTerminateParams.WriteToRequest has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                        Open

                        func (o *TaskTerminateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                        
                            r.SetTimeout(o.requestTimeout)
                            var res []error
                        
                        
                        Severity: Minor
                        Found in cloud/azure/batch/client/tasks/task_terminate_parameters.go - About 2 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 TaskReactivateParams.WriteToRequest has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                        Open

                        func (o *TaskReactivateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                        
                            r.SetTimeout(o.requestTimeout)
                            var res []error
                        
                        
                        Severity: Minor
                        Found in cloud/azure/batch/client/tasks/task_reactivate_parameters.go - About 2 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 TaskDeleteParams.WriteToRequest has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                        Open

                        func (o *TaskDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                        
                            r.SetTimeout(o.requestTimeout)
                            var res []error
                        
                        
                        Severity: Minor
                        Found in cloud/azure/batch/client/tasks/task_delete_parameters.go - About 2 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

                        Function TestStop has a Cognitive Complexity of 35 (exceeds 20 allowed). Consider refactoring.
                        Open

                        func TestStop(t *testing.T) {
                        
                            var err error
                            ctx := context.Background()
                            m := NewQueueManager()
                        Severity: Minor
                        Found in cloud/mock/queue_test.go - About 2 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 TaskListParams.WriteToRequest has 91 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

                        func (o *TaskListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                        
                            r.SetTimeout(o.requestTimeout)
                            var res []error
                        
                        
                        Severity: Major
                        Found in cloud/azure/batch/client/tasks/task_list_parameters.go - About 2 hrs to fix

                          Method JobListFromJobScheduleParams.WriteToRequest has 91 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

                          func (o *JobListFromJobScheduleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                          
                              r.SetTimeout(o.requestTimeout)
                              var res []error
                          
                          

                            Method BatchService.CreateTask has 91 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

                            func (s *BatchService) CreateTask(ctx context.Context, job string, task *script.Script) (err error) {
                            
                                var resourceFiles []*models.ResourceFile
                            
                                // Update source section.
                            Severity: Major
                            Found in cloud/azure/batch.go - About 2 hrs to fix

                              Function TestUploadSourceFiles has 90 lines of code (exceeds 50 allowed). Consider refactoring.
                              Open

                              func TestUploadSourceFiles(t *testing.T) {
                              
                                  var err error
                                  m := testMetadata(nil, nil)
                                  s, err := m.StorageManager()
                              Severity: Major
                              Found in command/source_test.go - About 2 hrs to fix

                                Method TaskGetParams.WriteToRequest has 90 lines of code (exceeds 50 allowed). Consider refactoring.
                                Open

                                func (o *TaskGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                                
                                    r.SetTimeout(o.requestTimeout)
                                    var res []error
                                
                                
                                Severity: Major
                                Found in cloud/azure/batch/client/tasks/task_get_parameters.go - About 2 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language