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.
CertificateListParams
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
type CertificateListParams struct {
/*NrDollarFilter
An OData $filter clause.
CertificateGetParams
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
type CertificateGetParams struct {
/*NrDollarSelect
An OData $select clause.
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.
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.
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{
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 {
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.
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.
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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
- Read upRead up
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
}
- Read upRead up
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
- Read upRead up
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