Showing 611 of 2,161 total issues
TaskUpdateParams
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type TaskUpdateParams 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.
JobScheduleGetParams
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobScheduleGetParams struct {
/*NrDollarExpand
An OData $expand clause.
Function TestQueues
has a Cognitive Complexity of 39 (exceeds 20 allowed). Consider refactoring. Open
Open
func TestQueues(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 mockStorageAccountServer.ServeHTTP
has 107 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *mockStorageAccountServer) ServeHTTP(res http.ResponseWriter, req *http.Request) {
paths := strings.Split(strings.TrimPrefix(req.URL.Path, "/"), "/")
if len(paths) < 2 {
res.WriteHeader(http.StatusBadRequest)
JobUpdateParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobUpdateParams 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.
PoolEnableAutoScaleParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type PoolEnableAutoScaleParams 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.
PoolPatchParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type PoolPatchParams 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.
PoolUpgradeOSParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type PoolUpgradeOSParams 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.
PoolResizeParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type PoolResizeParams 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.
PoolRemoveNodesParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type PoolRemoveNodesParams 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.
TaskTerminateParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type TaskTerminateParams 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.
JobPatchParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobPatchParams 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.
JobDisableParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobDisableParams 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.
TaskDeleteParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type TaskDeleteParams 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.
TaskReactivateParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type TaskReactivateParams 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.
JobTerminateParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobTerminateParams 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.
JobSchedulePatchParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobSchedulePatchParams 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.
FileGetFromComputeNodeParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type FileGetFromComputeNodeParams struct {
/*IfModifiedSince
Specify this header to perform the operation only if the resource has been modified since the specified date/time.
JobScheduleUpdateParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type JobScheduleUpdateParams 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.
FileGetFromTaskParams
has 27 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type FileGetFromTaskParams struct {
/*IfModifiedSince
Specify this header to perform the operation only if the resource has been modified since the specified date/time.