Showing 1,008 of 1,820 total issues
Method LogSelector.Unmarshal
has 143 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *LogSelector) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method LogContext.Unmarshal
has 143 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *LogContext) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method ContainerSpec_DNSConfig.Unmarshal
has 143 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *ContainerSpec_DNSConfig) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method SelectByCustom.Unmarshal
has 143 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *SelectByCustom) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Function Do
has 141 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func Do(ctx context.Context, task *api.Task, ctlr Controller) (*api.TaskStatus, error) {
status := task.Status.Copy()
// stay in the current state.
noop := func(errs ...error) (*api.TaskStatus, error) {
Method WatchMessage_Event.Unmarshal
has 138 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *WatchMessage_Event) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method Reconciler.ReconcileService
has 138 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (r *Reconciler) ReconcileService(id string) error {
var (
service *api.Service
cluster *api.Cluster
tasks []*api.Task
Method NodeSpec.Unmarshal
has 137 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *NodeSpec) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method WatchRequest.Unmarshal
has 137 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *WatchRequest) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method WatchSelectors.MarshalToSizedBuffer
has 135 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *WatchSelectors) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
SelectBy
has 34 methods (exceeds 20 allowed). Consider refactoring. Open
Open
type SelectBy struct {
// TODO(aaronl): Are all of these things we want to expose in
// the API? Exposing them may commit us to maintaining those
// internal indices going forward.
//
Function EventFromStoreAction
has 133 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func EventFromStoreAction(sa StoreAction, oldObject StoreObject) (Event, error) {
switch v := sa.Target.(type) {
case *StoreAction_Node:
switch sa.Action {
case StoreActionKindCreate:
Method PublishLogsMessage.Unmarshal
has 133 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *PublishLogsMessage) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method Node.Run
has 133 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (n *Node) Run(ctx context.Context) error {
ctx = log.WithLogger(ctx, logrus.WithField("raft_id", fmt.Sprintf("%x", n.Config.ID)))
ctx, cancel := context.WithCancel(ctx)
for _, node := range n.bootstrapMembers {
Method Snapshot.Unmarshal
has 132 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Snapshot) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method WatchRequest_WatchEntry.Unmarshal
has 132 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *WatchRequest_WatchEntry) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method NetworkAttachment.Unmarshal
has 49 return statements (exceeds 4 allowed). Open
Open
func (m *NetworkAttachment) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method Cluster.MarshalToSizedBuffer
has 130 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
Method NetworkSpec.Unmarshal
has 48 return statements (exceeds 4 allowed). Open
Open
func (m *NetworkSpec) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
Method WatchSelectors.Unmarshal
has 48 return statements (exceeds 4 allowed). Open
Open
func (m *WatchSelectors) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx