jkawamoto/roadie

View on GitHub

Showing 2,161 of 2,161 total issues

Method FileGetFromTaskParams.WriteToRequest has 64 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (o *FileGetFromTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

    r.SetTimeout(o.requestTimeout)
    var res []error

Severity: Minor
Found in cloud/azure/batch/client/files/file_get_from_task_parameters.go - About 1 hr to fix

    Method AccountListNodeAgentSkusParams.WriteToRequest has 64 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

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

      Method FileGetFromComputeNodeParams.WriteToRequest has 64 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

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

        Function TestBatchManagementService has 64 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func TestBatchManagementService(t *testing.T) {
        
            var err error
            testSubscriptionID := "00000000-0000-0000-0000-999999999999"
            testAccount := "test-account"
        Severity: Minor
        Found in cloud/azure/batch_account_test.go - About 1 hr to fix

          Method VirtualMachineImagesListParams.WriteToRequest has 64 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

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

            Similar blocks of code found in 5 locations. Consider refactoring.
            Open

            func TestStorageManager(t *testing.T) {
            
                ctx := context.Background()
                p := NewProvider()
                m, err := p.StorageManager(ctx)
            Severity: Major
            Found in cloud/mock/provider_test.go and 4 other locations - About 1 hr to fix
            cloud/mock/provider_test.go on lines 29..50
            cloud/mock/provider_test.go on lines 52..73
            cloud/mock/provider_test.go on lines 98..119
            cloud/mock/provider_test.go on lines 121..142

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

            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 5 locations. Consider refactoring.
            Open

            func TestResouceManager(t *testing.T) {
            
                ctx := context.Background()
                p := NewProvider()
                m, err := p.ResourceManager(ctx)
            Severity: Major
            Found in cloud/mock/provider_test.go and 4 other locations - About 1 hr to fix
            cloud/mock/provider_test.go on lines 29..50
            cloud/mock/provider_test.go on lines 52..73
            cloud/mock/provider_test.go on lines 75..96
            cloud/mock/provider_test.go on lines 98..119

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

            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 5 locations. Consider refactoring.
            Open

            func TestLogManager(t *testing.T) {
            
                ctx := context.Background()
                p := NewProvider()
                m, err := p.LogManager(ctx)
            Severity: Major
            Found in cloud/mock/provider_test.go and 4 other locations - About 1 hr to fix
            cloud/mock/provider_test.go on lines 29..50
            cloud/mock/provider_test.go on lines 52..73
            cloud/mock/provider_test.go on lines 75..96
            cloud/mock/provider_test.go on lines 121..142

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

            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 5 locations. Consider refactoring.
            Open

            func TestInstanceManager(t *testing.T) {
            
                ctx := context.Background()
                p := NewProvider()
                m, err := p.InstanceManager(ctx)
            Severity: Major
            Found in cloud/mock/provider_test.go and 4 other locations - About 1 hr to fix
            cloud/mock/provider_test.go on lines 52..73
            cloud/mock/provider_test.go on lines 75..96
            cloud/mock/provider_test.go on lines 98..119
            cloud/mock/provider_test.go on lines 121..142

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

            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 5 locations. Consider refactoring.
            Open

            func TestQueueManager(t *testing.T) {
            
                ctx := context.Background()
                p := NewProvider()
                m, err := p.QueueManager(ctx)
            Severity: Major
            Found in cloud/mock/provider_test.go and 4 other locations - About 1 hr to fix
            cloud/mock/provider_test.go on lines 29..50
            cloud/mock/provider_test.go on lines 75..96
            cloud/mock/provider_test.go on lines 98..119
            cloud/mock/provider_test.go on lines 121..142

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

            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

            Method PoolExistsParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

            func (o *PoolExistsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
            
                r.SetTimeout(o.requestTimeout)
                var res []error
            
            
            Severity: Minor
            Found in cloud/azure/batch/client/pools/pool_exists_parameters.go - About 1 hr to fix

              Method JobEnableParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

              func (o *JobEnableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
              
                  r.SetTimeout(o.requestTimeout)
                  var res []error
              
              
              Severity: Minor
              Found in cloud/azure/batch/client/jobs/job_enable_parameters.go - About 1 hr to fix

                Method PoolDeleteParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

                func (o *PoolDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                
                    r.SetTimeout(o.requestTimeout)
                    var res []error
                
                
                Severity: Minor
                Found in cloud/azure/batch/client/pools/pool_delete_parameters.go - About 1 hr to fix

                  Method PoolStopResizeParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                  func (o *PoolStopResizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                  
                      r.SetTimeout(o.requestTimeout)
                      var res []error
                  
                  
                  Severity: Minor
                  Found in cloud/azure/batch/client/pools/pool_stop_resize_parameters.go - About 1 hr to fix

                    Method JobDeleteParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                    func (o *JobDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                    
                        r.SetTimeout(o.requestTimeout)
                        var res []error
                    
                    
                    Severity: Minor
                    Found in cloud/azure/batch/client/jobs/job_delete_parameters.go - About 1 hr to fix

                      Method JobScheduleExistsParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                      Open

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

                        Method JobScheduleTerminateParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

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

                          Method JobScheduleDisableParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

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

                            Method JobScheduleEnableParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

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

                              Method JobScheduleDeleteParams.WriteToRequest has 63 lines of code (exceeds 50 allowed). Consider refactoring.
                              Open

                              func (o *JobScheduleDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
                              
                                  r.SetTimeout(o.requestTimeout)
                                  var res []error
                              
                              
                                Severity
                                Category
                                Status
                                Source
                                Language