docker/swarmkit

View on GitHub

Showing 1,820 of 1,820 total issues

Service has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

type Service struct {
    ID   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Meta Meta        `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
    Spec ServiceSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"`
    // SpecVersion versions Spec, to identify changes in the spec. Note that
Severity: Minor
Found in api/objects.pb.go - About 2 hrs to fix

    Config has 23 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type Config struct {
        ID   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
        Meta Meta   `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
        // Spec contains the actual config data, as well as any context around the
        // config data that the user provides.
    Severity: Minor
    Found in api/objects.pb.go - About 2 hrs to fix

      Node has 23 methods (exceeds 20 allowed). Consider refactoring.
      Open

      type Node struct {
          // ID specifies the identity of the node.
          ID   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
          Meta Meta   `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
          // Spec defines the desired state of the node as specified by the user.
      Severity: Minor
      Found in api/objects.pb.go - About 2 hrs to fix

        Extension has 23 methods (exceeds 20 allowed). Consider refactoring.
        Open

        type Extension struct {
            ID          string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
            Meta        Meta        `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
            Annotations Annotations `protobuf:"bytes,3,opt,name=annotations,proto3" json:"annotations"`
            Description string      `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
        Severity: Minor
        Found in api/objects.pb.go - About 2 hrs to fix

          Secret has 23 methods (exceeds 20 allowed). Consider refactoring.
          Open

          type Secret struct {
              ID   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
              Meta Meta   `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
              // Spec contains the actual secret data, as well as any context around the
              // secret data that the user provides.
          Severity: Minor
          Found in api/objects.pb.go - About 2 hrs to fix

            Cluster has 23 methods (exceeds 20 allowed). Consider refactoring.
            Open

            type Cluster struct {
                ID   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
                Meta Meta        `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
                Spec ClusterSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"`
                // RootCA contains key material for the root CA.
            Severity: Minor
            Found in api/objects.pb.go - About 2 hrs to fix

              Network has 23 methods (exceeds 20 allowed). Consider refactoring.
              Open

              type Network struct {
                  ID   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
                  Meta Meta        `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
                  Spec NetworkSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"`
                  // Driver specific operational state provided by the network driver.
              Severity: Minor
              Found in api/objects.pb.go - About 2 hrs to fix

                Volume has 23 methods (exceeds 20 allowed). Consider refactoring.
                Open

                type Volume struct {
                    // ID is the swarmkit-internal ID for this volume object. This has no
                    // relation to the CSI volume identifier provided by the CSI Plugin.
                    ID   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
                    Meta Meta   `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
                Severity: Minor
                Found in api/objects.pb.go - About 2 hrs to fix

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 8:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field ServiceAnnotations", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 3:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 1:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/logbroker.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 4:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Raft", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/specs.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 7:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field TaskDefaults", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/specs.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 3:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 2:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 2:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 2:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 2:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 3:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/objects.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8282..8314
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 47 locations. Consider refactoring.
                  Open

                          case 1:
                              if wireType != 2 {
                                  return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
                              }
                              var msglen int
                  Severity: Major
                  Found in api/specs.pb.go and 46 other locations - About 2 hrs to fix
                  api/ca.pb.go on lines 2291..2323
                  api/logbroker.pb.go on lines 3016..3048
                  api/objects.pb.go on lines 6328..6360
                  api/objects.pb.go on lines 6515..6547
                  api/objects.pb.go on lines 6548..6580
                  api/objects.pb.go on lines 6617..6649
                  api/objects.pb.go on lines 6722..6754
                  api/objects.pb.go on lines 6909..6941
                  api/objects.pb.go on lines 6942..6974
                  api/objects.pb.go on lines 7561..7593
                  api/objects.pb.go on lines 7594..7626
                  api/objects.pb.go on lines 7710..7742
                  api/objects.pb.go on lines 7743..7775
                  api/objects.pb.go on lines 7776..7808
                  api/objects.pb.go on lines 8433..8465
                  api/objects.pb.go on lines 8466..8498
                  api/objects.pb.go on lines 8673..8705
                  api/objects.pb.go on lines 8706..8738
                  api/objects.pb.go on lines 8739..8771
                  api/objects.pb.go on lines 9160..9192
                  api/objects.pb.go on lines 9193..9225
                  api/objects.pb.go on lines 9328..9360
                  api/objects.pb.go on lines 9361..9393
                  api/objects.pb.go on lines 9476..9508
                  api/objects.pb.go on lines 9509..9541
                  api/objects.pb.go on lines 9692..9724
                  api/objects.pb.go on lines 9725..9757
                  api/objects.pb.go on lines 9872..9904
                  api/objects.pb.go on lines 9905..9937
                  api/raft.pb.go on lines 3100..3132
                  api/snapshot.pb.go on lines 1441..1473
                  api/snapshot.pb.go on lines 1474..1506
                  api/specs.pb.go on lines 4925..4957
                  api/specs.pb.go on lines 5065..5097
                  api/specs.pb.go on lines 5098..5130
                  api/specs.pb.go on lines 8015..8047
                  api/specs.pb.go on lines 8315..8347
                  api/specs.pb.go on lines 8348..8380
                  api/specs.pb.go on lines 8381..8413
                  api/specs.pb.go on lines 8414..8446
                  api/specs.pb.go on lines 8447..8479
                  api/specs.pb.go on lines 8480..8512
                  api/specs.pb.go on lines 8513..8545
                  api/specs.pb.go on lines 8596..8628
                  api/specs.pb.go on lines 8785..8817
                  api/specs.pb.go on lines 8938..8970

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 219.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Severity
                  Category
                  Status
                  Source
                  Language