Showing 1,008 of 1,820 total issues
Function skipObjects
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipObjects(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipResource
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipResource(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipSnapshot
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipSnapshot(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipDispatcher
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipDispatcher(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipLogbroker
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipLogbroker(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipWatch
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipWatch(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipSpecs
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipSpecs(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipPlugin
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipPlugin(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Function skipRaft
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func skipRaft(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
depth := 0
for iNdEx < l {
Method Supervisor.shouldRestart
has 76 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (r *Supervisor) shouldRestart(ctx context.Context, t *api.Task, service *api.Service) bool {
// TODO(aluzzardi): This function should not depend on `service`.
// There are 3 possible restart policies.
switch orchestrator.RestartCondition(t) {
case api.RestartOnAny:
Method AttachNetworkRequest.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *AttachNetworkRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method GetUnlockKeyResponse.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *GetUnlockKeyResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method UpdateVolumeStatusRequest.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *UpdateVolumeStatusRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method SessionRequest.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *SessionRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method UpdateTaskStatusRequest.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *UpdateTaskStatusRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method UpdateTaskStatusRequest_TaskStatusUpdate.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *UpdateTaskStatusRequest_TaskStatusUpdate) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method GenericRuntimeSpec.Unmarshal
has 22 return statements (exceeds 4 allowed). Open
Open
func (m *GenericRuntimeSpec) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method testSuite.TestAllocator
has 22 return statements (exceeds 4 allowed). Open
Open
func (suite *testSuite) TestAllocator() {
s := store.NewMemoryStore(nil)
suite.NotNil(s)
defer s.Close()
a := suite.newAllocator(s)
Method Node.Join
has 75 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (n *Node) Join(ctx context.Context, req *api.JoinRequest) (*api.JoinResponse, error) {
nodeInfo, err := ca.RemoteNode(ctx)
if err != nil {
return nil, err
}
Function ConvertNodeWatch
has 74 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func ConvertNodeWatch(action WatchActionKind, filters []*SelectBy) ([]Event, error) {
var (
m Node
checkFuncs []NodeCheckFunc
hasRole bool