kubenetworks/kubevpn

View on GitHub

Showing 526 of 526 total issues

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_dhcpserver_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
            switch v := v.(*RentIPRequest); i {
            case 0:
                return &v.state
            case 1:
Severity: Major
Found in pkg/dhcp/rpc/dhcpserver.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/daemon/rpc/daemon.pb.go on lines 3847..3858
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_dhcpserver_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
            switch v := v.(*RentIPResponse); i {
            case 0:
                return &v.state
            case 1:
Severity: Major
Found in pkg/dhcp/rpc/dhcpserver.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/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 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

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

    if str := cm.Data[config.KeyDHCP]; str != "" {
        var b []byte
        if b, err = base64.StdEncoding.DecodeString(str); err != nil {
            return err
        }
Severity: Minor
Found in pkg/dhcp/dhcp.go and 1 other location - About 35 mins to fix
pkg/dhcp/dhcp.go on lines 169..177

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

    if str := cm.Data[config.KeyDHCP6]; str != "" {
        var b []byte
        if b, err = base64.StdEncoding.DecodeString(str); err != nil {
            return err
        }
Severity: Minor
Found in pkg/dhcp/dhcp.go and 1 other location - About 35 mins to fix
pkg/dhcp/dhcp.go on lines 152..160

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

Severity
Category
Status
Source
Language