Showing 1,820 of 1,820 total issues
Avoid deeply nested control flow statements. Open
Open
} else if fieldNum == 2 {
var stringLenmapvalue uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpecs
Avoid deeply nested control flow statements. Open
Open
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpecs
}
if iNdEx >= l {
Avoid deeply nested control flow statements. Open
Open
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
Avoid deeply nested control flow statements. Open
Open
if postStringIndexmapkey > l {
return io.ErrUnexpectedEOF
}
Method VolumeSpec.MarshalToSizedBuffer
has 7 return statements (exceeds 4 allowed). Open
Open
func (m *VolumeSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
Avoid deeply nested control flow statements. Open
Open
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpecs
}
if iNdEx >= l {
Avoid deeply nested control flow statements. Open
Open
if shift >= 64 {
return ErrIntOverflowSpecs
}
Avoid deeply nested control flow statements. Open
Open
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
Avoid deeply nested control flow statements. Open
Open
if intStringLenmapkey < 0 {
return ErrInvalidLengthSpecs
}
Avoid deeply nested control flow statements. Open
Open
} else if fieldNum == 2 {
var stringLenmapvalue uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSpecs
Avoid deeply nested control flow statements. Open
Open
if b < 0x80 {
break
}
Avoid deeply nested control flow statements. Open
Open
if b < 0x80 {
break
}
Avoid deeply nested control flow statements. Open
Open
if intStringLenmapkey < 0 {
return ErrInvalidLengthSpecs
}
Avoid deeply nested control flow statements. Open
Open
if shift >= 64 {
return ErrIntOverflowSpecs
}
Avoid deeply nested control flow statements. Open
Open
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
Avoid deeply nested control flow statements. Open
Open
if postStringIndexmapkey < 0 {
return ErrInvalidLengthSpecs
}
Avoid deeply nested control flow statements. Open
Open
if postStringIndexmapkey < 0 {
return ErrInvalidLengthSpecs
}
Avoid deeply nested control flow statements. Open
Open
if elementCount != 0 && len(m.RemovedMembers) == 0 {
m.RemovedMembers = make([]uint64, 0, elementCount)
}
Method signHandler.ServeHTTP
has 7 return statements (exceeds 4 allowed). Open
Open
func (h *signHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if atomic.LoadUint32(h.flaky) == 1 {
w.WriteHeader(http.StatusInternalServerError)
}
Method Supervisor.DelayStart
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (r *Supervisor) DelayStart(ctx context.Context, _ store.Tx, oldTask *api.Task, newTaskID string, delay time.Duration, waitStop bool) <-chan struct{} {