jkawamoto/roadie

View on GitHub

Showing 2,161 of 2,161 total issues

TaskListSubtasksParams has 21 methods (exceeds 20 allowed). Consider refactoring.
Open

type TaskListSubtasksParams struct {

    /*NrDollarSelect
      An OData $select clause.

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

    CertificateListParams has 21 methods (exceeds 20 allowed). Consider refactoring.
    Open

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

      CertificateGetParams has 21 methods (exceeds 20 allowed). Consider refactoring.
      Open

      type CertificateGetParams struct {
      
          /*NrDollarSelect
            An OData $select clause.
      
      
      Severity: Minor
      Found in cloud/azure/batch/client/certificates/certificate_get_parameters.go - About 2 hrs to fix

        ComputeNodeAddUserParams has 21 methods (exceeds 20 allowed). Consider refactoring.
        Open

        type ComputeNodeAddUserParams struct {
        
            /*User
              The user account to be created.
        
        

          ResourcesDeleteParams has 21 methods (exceeds 20 allowed). Consider refactoring.
          Open

          type ResourcesDeleteParams struct {
          
              /*APIVersion
                The API version to use for the operation.
          
          
          Severity: Minor
          Found in cloud/azure/resource/client/resources/resources_delete_parameters.go - About 2 hrs to fix

            ResourcesCheckExistenceParams has 21 methods (exceeds 20 allowed). Consider refactoring.
            Open

            type ResourcesCheckExistenceParams struct {
            
                /*APIVersion
                  The API version to use for the operation.
            
            

              ResourcesGetParams has 21 methods (exceeds 20 allowed). Consider refactoring.
              Open

              type ResourcesGetParams struct {
              
                  /*APIVersion
                    The API version to use for the operation.
              
              
              Severity: Minor
              Found in cloud/azure/resource/client/resources/resources_get_parameters.go - About 2 hrs to fix

                VirtualMachineExtensionImagesListVersionsParams has 21 methods (exceeds 20 allowed). Consider refactoring.
                Open

                type VirtualMachineExtensionImagesListVersionsParams struct {
                
                    /*NrDollarFilter
                      The filter to apply on the operation.
                
                

                  Function TestPrintFileList has 79 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                  func TestPrintFileList(t *testing.T) {
                  
                      var err error
                      var output bytes.Buffer
                      files := []string{
                  Severity: Major
                  Found in command/table_test.go - About 2 hrs to fix

                    Method JobListPreparationAndReleaseTaskStatusParams.WriteToRequest has 79 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

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

                      Method ComputeNodeListParams.WriteToRequest has 79 lines of code (exceeds 50 allowed). Consider refactoring.
                      Open

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

                        Function TestCmdRun has 78 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

                        func TestCmdRun(t *testing.T) {
                        
                            var err error
                            tmp, err := ioutil.TempFile("", "")
                            if err != nil {
                        Severity: Major
                        Found in command/run_test.go - About 2 hrs to fix

                          Function TestCmdQueueAdd has 78 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

                          func TestCmdQueueAdd(t *testing.T) {
                          
                              var err error
                          
                              // Prepare a test script file.
                          Severity: Major
                          Found in command/queue_test.go - About 2 hrs to fix

                            Function TestCmdQueueAdd has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                            Open

                            func TestCmdQueueAdd(t *testing.T) {
                            
                                var err error
                            
                                // Prepare a test script file.
                            Severity: Minor
                            Found in command/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 TaskListSubtasksParams.WriteToRequest has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                            Open

                            func (o *TaskListSubtasksParams) 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_list_subtasks_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 ComputeNodeGetParams.WriteToRequest has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                            Open

                            func (o *ComputeNodeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                            
                                r.SetTimeout(o.requestTimeout)
                                var res []error
                            
                            
                            Severity: Minor
                            Found in cloud/azure/batch/client/compute_nodes/compute_node_get_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 CertificateGetParams.WriteToRequest has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                            Open

                            func (o *CertificateGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                            
                                r.SetTimeout(o.requestTimeout)
                                var res []error
                            
                            
                            Severity: Minor
                            Found in cloud/azure/batch/client/certificates/certificate_get_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 ResourceGroupsListResourcesParams.WriteToRequest has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                            Open

                            func (o *ResourceGroupsListResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                            
                                if err := r.SetTimeout(o.timeout); err != nil {
                                    return err
                                }

                            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 VirtualMachineScaleSetVmsListParams.WriteToRequest has a Cognitive Complexity of 31 (exceeds 20 allowed). Consider refactoring.
                            Open

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

                            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 CertificateListParams.WriteToRequest has 76 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

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