jkawamoto/roadie

View on GitHub

Showing 611 of 2,161 total issues

Function TestCmdDataPut has a Cognitive Complexity of 37 (exceeds 20 allowed). Consider refactoring.
Open

func TestCmdDataPut(t *testing.T) {

    var err error
    var output bytes.Buffer
    opt := optDataPut{
Severity: Minor
Found in command/data_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 TaskUpdateParams.WriteToRequest has a Cognitive Complexity of 37 (exceeds 20 allowed). Consider refactoring.
Open

func (o *TaskUpdateParams) 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_update_parameters.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 AccountListNodeAgentSkusParams.WriteToRequest has a Cognitive Complexity of 37 (exceeds 20 allowed). Consider refactoring.
Open

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

    r.SetTimeout(o.requestTimeout)
    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

Function TestDeleteTask has a Cognitive Complexity of 37 (exceeds 20 allowed). Consider refactoring.
Open

func TestDeleteTask(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 PoolEnableAutoScaleParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *PoolEnableAutoScaleParams) 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_enable_auto_scale_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 PoolResizeParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *PoolResizeParams) 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_resize_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 JobUpdateParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *JobUpdateParams) 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_update_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 PoolUpgradeOSParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *PoolUpgradeOSParams) 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_upgrade_o_s_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 PoolPatchParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *PoolPatchParams) 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_patch_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 JobDisableParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *JobDisableParams) 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_disable_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 JobPatchParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *JobPatchParams) 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_patch_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 JobTerminateParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

func (o *JobTerminateParams) 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_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 PoolRemoveNodesParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

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

    r.SetTimeout(o.requestTimeout)
    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 JobSchedulePatchParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

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

    r.SetTimeout(o.requestTimeout)
    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 JobScheduleUpdateParams.WriteToRequest has a Cognitive Complexity of 36 (exceeds 20 allowed). Consider refactoring.
Open

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

    r.SetTimeout(o.requestTimeout)
    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

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

type JobEnableParams 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_enable_parameters.go - About 2 hrs to fix

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

    type PoolExistsParams 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_exists_parameters.go - About 2 hrs to fix

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

      type PoolStopResizeParams 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_stop_resize_parameters.go - About 2 hrs to fix

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

        type JobDeleteParams 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_delete_parameters.go - About 2 hrs to fix

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

          type PoolDeleteParams 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_delete_parameters.go - About 2 hrs to fix
            Severity
            Category
            Status
            Source
            Language