kubenetworks/kubevpn

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

Summary

Maintainability
F
1 wk
Test Coverage

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

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

    UnimplementedDaemonServer has 22 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type UnimplementedDaemonServer struct {
    }
    Severity: Minor
    Found in pkg/daemon/rpc/daemon_grpc.pb.go - About 2 hrs to fix

      daemonClient has 21 methods (exceeds 20 allowed). Consider refactoring.
      Open

      type daemonClient struct {
          cc grpc.ClientConnInterface
      }
      Severity: Minor
      Found in pkg/daemon/rpc/daemon_grpc.pb.go - About 2 hrs to fix

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

        func _Daemon_Identify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(IdentifyRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(ListRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(VersionRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_SshStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(SshStartRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_SshStop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(SshStopRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(GetRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_ConfigRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(ConfigRemoveRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_Upgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(UpgradeRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_ConfigAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(ConfigAddRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 949..965
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func _Daemon_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
            in := new(StatusRequest)
            if err := dec(in); err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 2 hrs to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 776..792
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 794..810
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 812..828
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 830..846
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 895..911
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 913..929
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 931..947
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 967..983
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 1027..1043
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 92..108
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 110..126

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

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

        func (c *daemonClient) Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (Daemon_ConnectClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[0], Daemon_Connect_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) ConnectFork(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (Daemon_ConnectForkClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[1], Daemon_ConnectFork_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Proxy(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (Daemon_ProxyClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[3], Daemon_Proxy_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (Daemon_CloneClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[5], Daemon_Clone_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Disconnect(ctx context.Context, in *DisconnectRequest, opts ...grpc.CallOption) (Daemon_DisconnectClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[2], Daemon_Disconnect_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Leave(ctx context.Context, in *LeaveRequest, opts ...grpc.CallOption) (Daemon_LeaveClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[4], Daemon_Leave_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (Daemon_RemoveClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[6], Daemon_Remove_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Logs(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Daemon_LogsClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[8], Daemon_Logs_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Reset(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (Daemon_ResetClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[9], Daemon_Reset_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 480..493

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

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

        func (c *daemonClient) Quit(ctx context.Context, in *QuitRequest, opts ...grpc.CallOption) (Daemon_QuitClient, error) {
            stream, err := c.cc.NewStream(ctx, &Daemon_ServiceDesc.Streams[10], Daemon_Quit_FullMethodName, opts...)
            if err != nil {
                return nil, err
            }
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 9 other locations - About 1 hr to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 80..93
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 112..125
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 144..157
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 176..189
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 208..221
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 240..253
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 272..285
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 371..384
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 448..461

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

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

        func (c *daemonClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
            out := new(GetResponse)
            err := c.cc.Invoke(ctx, Daemon_Get_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) Upgrade(ctx context.Context, in *UpgradeRequest, opts ...grpc.CallOption) (*UpgradeResponse, error) {
            out := new(UpgradeResponse)
            err := c.cc.Invoke(ctx, Daemon_Upgrade_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) {
            out := new(VersionResponse)
            err := c.cc.Invoke(ctx, Daemon_Version_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) Identify(ctx context.Context, in *IdentifyRequest, opts ...grpc.CallOption) (*IdentifyResponse, error) {
            out := new(IdentifyResponse)
            err := c.cc.Invoke(ctx, Daemon_Identify_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) SshStop(ctx context.Context, in *SshStopRequest, opts ...grpc.CallOption) (*SshStopResponse, error) {
            out := new(SshStopResponse)
            err := c.cc.Invoke(ctx, Daemon_SshStop_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) ConfigAdd(ctx context.Context, in *ConfigAddRequest, opts ...grpc.CallOption) (*ConfigAddResponse, error) {
            out := new(ConfigAddResponse)
            err := c.cc.Invoke(ctx, Daemon_ConfigAdd_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) ConfigRemove(ctx context.Context, in *ConfigRemoveRequest, opts ...grpc.CallOption) (*ConfigRemoveResponse, error) {
            out := new(ConfigRemoveResponse)
            err := c.cc.Invoke(ctx, Daemon_ConfigRemove_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
            out := new(ListResponse)
            err := c.cc.Invoke(ctx, Daemon_List_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) {
            out := new(StatusResponse)
            err := c.cc.Invoke(ctx, Daemon_Status_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 322..329
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

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

        func (c *daemonClient) SshStart(ctx context.Context, in *SshStartRequest, opts ...grpc.CallOption) (*SshStartResponse, error) {
            out := new(SshStartResponse)
            err := c.cc.Invoke(ctx, Daemon_SshStart_FullMethodName, in, out, opts...)
            if err != nil {
                return nil, err
        Severity: Major
        Found in pkg/daemon/rpc/daemon_grpc.pb.go and 11 other locations - About 35 mins to fix
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 304..311
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 313..320
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 331..338
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 403..410
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 412..419
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 421..428
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 430..437
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 439..446
        pkg/daemon/rpc/daemon_grpc.pb.go on lines 512..519
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 42..49
        pkg/dhcp/rpc/dhcpserver_grpc.pb.go on lines 51..58

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

        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