kubenetworks/kubevpn

View on GitHub
pkg/daemon/rpc/daemon.pb.go

Summary

Maintainability
F
3 wks
Test Coverage

File daemon.pb.go has 3369 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
//     protoc-gen-go v1.33.0
//     protoc        v3.21.2
// source: daemon.proto
Severity: Major
Found in pkg/daemon/rpc/daemon.pb.go - About 1 wk to fix

    Function file_daemon_proto_init has 564 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func file_daemon_proto_init() {
        if File_daemon_proto != nil {
            return
        }
        if !protoimpl.UnsafeEnabled {
    Severity: Major
    Found in pkg/daemon/rpc/daemon.pb.go - About 2 days to fix

      Function file_daemon_proto_init has a Cognitive Complexity of 137 (exceeds 20 allowed). Consider refactoring.
      Open

      func file_daemon_proto_init() {
          if File_daemon_proto != nil {
              return
          }
          if !protoimpl.UnsafeEnabled {
      Severity: Minor
      Found in pkg/daemon/rpc/daemon.pb.go - About 2 days to fix

      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

      CloneRequest has 24 methods (exceeds 20 allowed). Consider refactoring.
      Open

      type CloneRequest struct {
          state         protoimpl.MessageState
          sizeCache     protoimpl.SizeCache
          unknownFields protoimpl.UnknownFields
      
      
      Severity: Minor
      Found in pkg/daemon/rpc/daemon.pb.go - About 2 hrs to fix

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

        func (x *ListResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[34]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *DisconnectRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[2]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *StatusResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[13]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshConnectRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[26]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *UpgradeResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[38]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *VersionRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[19]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ConfigRemoveResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[30]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ConfigRemoveRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[29]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ResetRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[39]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ConnectRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[0]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *QuitRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[10]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *UpgradeRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[37]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *CloneResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[7]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *Status) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[14]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ProxyRule) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[16]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshStartResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[23]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshStopRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[24]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *RemoveRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[8]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *Proxy) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[15]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *Clone) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[17]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ConfigAddRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[21]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ResetResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[40]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshJump) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[41]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *StatusRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[12]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *GetRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[35]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ConnectResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[1]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshStopResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[25]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *LeaveRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[4]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshConnectResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[27]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ConfigAddResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[28]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *IdentifyResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[44]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *SshStartRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[22]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *LogResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[32]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *RemoveResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[9]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *IdentifyRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[43]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *CloneRule) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[18]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *VersionResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[20]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *DisconnectResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[3]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *LeaveResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[5]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *CloneRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[6]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *LogRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[31]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *QuitResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[11]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ListRequest) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[33]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *GetResponse) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[36]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2650..2660
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

        func (x *ExtraRoute) ProtoReflect() protoreflect.Message {
            mi := &file_daemon_proto_msgTypes[42]
            if protoimpl.UnsafeEnabled && x != nil {
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
                if ms.LoadMessageInfo() == nil {
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 55 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 63..73
        pkg/daemon/rpc/daemon.pb.go on lines 194..204
        pkg/daemon/rpc/daemon.pb.go on lines 250..260
        pkg/daemon/rpc/daemon.pb.go on lines 332..342
        pkg/daemon/rpc/daemon.pb.go on lines 379..389
        pkg/daemon/rpc/daemon.pb.go on lines 426..436
        pkg/daemon/rpc/daemon.pb.go on lines 496..506
        pkg/daemon/rpc/daemon.pb.go on lines 669..679
        pkg/daemon/rpc/daemon.pb.go on lines 716..726
        pkg/daemon/rpc/daemon.pb.go on lines 763..773
        pkg/daemon/rpc/daemon.pb.go on lines 808..818
        pkg/daemon/rpc/daemon.pb.go on lines 848..858
        pkg/daemon/rpc/daemon.pb.go on lines 895..905
        pkg/daemon/rpc/daemon.pb.go on lines 942..952
        pkg/daemon/rpc/daemon.pb.go on lines 998..1008
        pkg/daemon/rpc/daemon.pb.go on lines 1113..1123
        pkg/daemon/rpc/daemon.pb.go on lines 1199..1209
        pkg/daemon/rpc/daemon.pb.go on lines 1280..1290
        pkg/daemon/rpc/daemon.pb.go on lines 1374..1384
        pkg/daemon/rpc/daemon.pb.go on lines 1454..1464
        pkg/daemon/rpc/daemon.pb.go on lines 1494..1504
        pkg/daemon/rpc/daemon.pb.go on lines 1544..1554
        pkg/daemon/rpc/daemon.pb.go on lines 1605..1615
        pkg/daemon/rpc/daemon.pb.go on lines 1652..1662
        pkg/daemon/rpc/daemon.pb.go on lines 1699..1709
        pkg/daemon/rpc/daemon.pb.go on lines 1746..1756
        pkg/daemon/rpc/daemon.pb.go on lines 1794..1804
        pkg/daemon/rpc/daemon.pb.go on lines 1849..1859
        pkg/daemon/rpc/daemon.pb.go on lines 1903..1913
        pkg/daemon/rpc/daemon.pb.go on lines 1950..1960
        pkg/daemon/rpc/daemon.pb.go on lines 1995..2005
        pkg/daemon/rpc/daemon.pb.go on lines 2036..2046
        pkg/daemon/rpc/daemon.pb.go on lines 2090..2100
        pkg/daemon/rpc/daemon.pb.go on lines 2135..2145
        pkg/daemon/rpc/daemon.pb.go on lines 2175..2185
        pkg/daemon/rpc/daemon.pb.go on lines 2223..2233
        pkg/daemon/rpc/daemon.pb.go on lines 2277..2287
        pkg/daemon/rpc/daemon.pb.go on lines 2324..2334
        pkg/daemon/rpc/daemon.pb.go on lines 2371..2381
        pkg/daemon/rpc/daemon.pb.go on lines 2421..2431
        pkg/daemon/rpc/daemon.pb.go on lines 2482..2492
        pkg/daemon/rpc/daemon.pb.go on lines 2538..2548
        pkg/daemon/rpc/daemon.pb.go on lines 2709..2719
        pkg/daemon/rpc/daemon.pb.go on lines 2749..2759
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 47..57
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 102..112
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 159..169
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 227..237

        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 125.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*UpgradeResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*VersionRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshStopRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*IdentifyRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshStartResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*GetRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ExtraRoute); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshStartRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshConnectRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*LeaveRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*Proxy); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*VersionResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*GetResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ConfigAddResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ListResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ResetResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ConnectResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*CloneRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshConnectResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ConfigRemoveResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*LeaveResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ProxyRule); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*DisconnectResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*StatusRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*StatusResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*Clone); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ConfigRemoveRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ListRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*QuitResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ConfigAddRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*RemoveResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*Status); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshStopResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*SshJump); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*DisconnectRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*UpgradeRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*CloneResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*CloneRule); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*QuitRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ConnectRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*RemoveRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*IdentifyResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*LogRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*LogResponse); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3787..3798
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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 49 locations. Consider refactoring.
        Open

                file_daemon_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
                    switch v := v.(*ResetRequest); i {
                    case 0:
                        return &v.state
                    case 1:
        Severity: Major
        Found in pkg/daemon/rpc/daemon.pb.go and 48 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon.pb.go on lines 3319..3330
        pkg/daemon/rpc/daemon.pb.go on lines 3331..3342
        pkg/daemon/rpc/daemon.pb.go on lines 3343..3354
        pkg/daemon/rpc/daemon.pb.go on lines 3355..3366
        pkg/daemon/rpc/daemon.pb.go on lines 3367..3378
        pkg/daemon/rpc/daemon.pb.go on lines 3379..3390
        pkg/daemon/rpc/daemon.pb.go on lines 3391..3402
        pkg/daemon/rpc/daemon.pb.go on lines 3403..3414
        pkg/daemon/rpc/daemon.pb.go on lines 3415..3426
        pkg/daemon/rpc/daemon.pb.go on lines 3427..3438
        pkg/daemon/rpc/daemon.pb.go on lines 3439..3450
        pkg/daemon/rpc/daemon.pb.go on lines 3451..3462
        pkg/daemon/rpc/daemon.pb.go on lines 3463..3474
        pkg/daemon/rpc/daemon.pb.go on lines 3475..3486
        pkg/daemon/rpc/daemon.pb.go on lines 3487..3498
        pkg/daemon/rpc/daemon.pb.go on lines 3499..3510
        pkg/daemon/rpc/daemon.pb.go on lines 3511..3522
        pkg/daemon/rpc/daemon.pb.go on lines 3523..3534
        pkg/daemon/rpc/daemon.pb.go on lines 3535..3546
        pkg/daemon/rpc/daemon.pb.go on lines 3547..3558
        pkg/daemon/rpc/daemon.pb.go on lines 3559..3570
        pkg/daemon/rpc/daemon.pb.go on lines 3571..3582
        pkg/daemon/rpc/daemon.pb.go on lines 3583..3594
        pkg/daemon/rpc/daemon.pb.go on lines 3595..3606
        pkg/daemon/rpc/daemon.pb.go on lines 3607..3618
        pkg/daemon/rpc/daemon.pb.go on lines 3619..3630
        pkg/daemon/rpc/daemon.pb.go on lines 3631..3642
        pkg/daemon/rpc/daemon.pb.go on lines 3643..3654
        pkg/daemon/rpc/daemon.pb.go on lines 3655..3666
        pkg/daemon/rpc/daemon.pb.go on lines 3667..3678
        pkg/daemon/rpc/daemon.pb.go on lines 3679..3690
        pkg/daemon/rpc/daemon.pb.go on lines 3691..3702
        pkg/daemon/rpc/daemon.pb.go on lines 3703..3714
        pkg/daemon/rpc/daemon.pb.go on lines 3715..3726
        pkg/daemon/rpc/daemon.pb.go on lines 3727..3738
        pkg/daemon/rpc/daemon.pb.go on lines 3739..3750
        pkg/daemon/rpc/daemon.pb.go on lines 3751..3762
        pkg/daemon/rpc/daemon.pb.go on lines 3763..3774
        pkg/daemon/rpc/daemon.pb.go on lines 3775..3786
        pkg/daemon/rpc/daemon.pb.go on lines 3799..3810
        pkg/daemon/rpc/daemon.pb.go on lines 3811..3822
        pkg/daemon/rpc/daemon.pb.go on lines 3823..3834
        pkg/daemon/rpc/daemon.pb.go on lines 3835..3846
        pkg/daemon/rpc/daemon.pb.go on lines 3847..3858
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 325..336
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 337..348
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 349..360
        pkg/dhcp/rpc/dhcpserver.pb.go on lines 361..372

        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 103.

        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

        There are no issues that match your filters.

        Category
        Status