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.
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.
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
- 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 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
- 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 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
- 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
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()
- 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 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
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.
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()
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