k8up-io/k8up

View on GitHub
api/v1/zz_generated.deepcopy.go

Summary

Maintainability
F
1 wk
Test Coverage
F
0%

File zz_generated.deepcopy.go has 1272 lines of code (exceeds 500 allowed). Consider refactoring.
Open

//go:build !ignore_autogenerated

// Code generated by controller-gen. DO NOT EDIT.

package v1
Severity: Major
Found in api/v1/zz_generated.deepcopy.go - About 2 days to fix

    Method Backend.DeepCopyInto has 64 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (in *Backend) DeepCopyInto(out *Backend) {
        *out = *in
        if in.RepoPasswordSecretRef != nil {
            in, out := &in.RepoPasswordSecretRef, &out.RepoPasswordSecretRef
            *out = new(corev1.SecretKeySelector)
    Severity: Minor
    Found in api/v1/zz_generated.deepcopy.go - About 1 hr to fix

      Method ScheduleSpec.DeepCopyInto has 57 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec) {
          *out = *in
          if in.Restore != nil {
              in, out := &in.Restore, &out.Restore
              *out = new(RestoreSchedule)
      Severity: Minor
      Found in api/v1/zz_generated.deepcopy.go - About 1 hr to fix

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

        func (in *S3Spec) DeepCopyInto(out *S3Spec) {
            *out = *in
            if in.AccessKeyIDSecretRef != nil {
                in, out := &in.AccessKeyIDSecretRef, &out.AccessKeyIDSecretRef
                *out = new(corev1.SecretKeySelector)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 114..126
        api/v1/zz_generated.deepcopy.go on lines 139..151
        api/v1/zz_generated.deepcopy.go on lines 545..557
        api/v1/zz_generated.deepcopy.go on lines 881..893

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

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

        func (in *GCSSpec) DeepCopyInto(out *GCSSpec) {
            *out = *in
            if in.ProjectIDSecretRef != nil {
                in, out := &in.ProjectIDSecretRef, &out.ProjectIDSecretRef
                *out = new(corev1.SecretKeySelector)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 114..126
        api/v1/zz_generated.deepcopy.go on lines 139..151
        api/v1/zz_generated.deepcopy.go on lines 881..893
        api/v1/zz_generated.deepcopy.go on lines 1175..1187

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

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

        func (in *AzureSpec) DeepCopyInto(out *AzureSpec) {
            *out = *in
            if in.AccountNameSecretRef != nil {
                in, out := &in.AccountNameSecretRef, &out.AccountNameSecretRef
                *out = new(corev1.SecretKeySelector)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 139..151
        api/v1/zz_generated.deepcopy.go on lines 545..557
        api/v1/zz_generated.deepcopy.go on lines 881..893
        api/v1/zz_generated.deepcopy.go on lines 1175..1187

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

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

        func (in *B2Spec) DeepCopyInto(out *B2Spec) {
            *out = *in
            if in.AccountIDSecretRef != nil {
                in, out := &in.AccountIDSecretRef, &out.AccountIDSecretRef
                *out = new(corev1.SecretKeySelector)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 114..126
        api/v1/zz_generated.deepcopy.go on lines 545..557
        api/v1/zz_generated.deepcopy.go on lines 881..893
        api/v1/zz_generated.deepcopy.go on lines 1175..1187

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

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

        func (in *RestServerSpec) DeepCopyInto(out *RestServerSpec) {
            *out = *in
            if in.UserSecretRef != nil {
                in, out := &in.UserSecretRef, &out.UserSecretRef
                *out = new(corev1.SecretKeySelector)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 114..126
        api/v1/zz_generated.deepcopy.go on lines 139..151
        api/v1/zz_generated.deepcopy.go on lines 545..557
        api/v1/zz_generated.deepcopy.go on lines 1175..1187

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

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

        func (in *ArchiveList) DeepCopyInto(out *ArchiveList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *PodConfigList) DeepCopyInto(out *PodConfigList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *PruneList) DeepCopyInto(out *PruneList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *BackupList) DeepCopyInto(out *BackupList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *RestoreList) DeepCopyInto(out *RestoreList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *CheckList) DeepCopyInto(out *CheckList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *ScheduleList) DeepCopyInto(out *ScheduleList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

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

        func (in *SnapshotList) DeepCopyInto(out *SnapshotList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 717..728
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253

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

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

        func (in *PreBackupPodList) DeepCopyInto(out *PreBackupPodList) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ListMeta.DeepCopyInto(&out.ListMeta)
            if in.Items != nil {
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 8 other locations - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 41..52
        api/v1/zz_generated.deepcopy.go on lines 269..280
        api/v1/zz_generated.deepcopy.go on lines 411..422
        api/v1/zz_generated.deepcopy.go on lines 628..639
        api/v1/zz_generated.deepcopy.go on lines 796..807
        api/v1/zz_generated.deepcopy.go on lines 933..944
        api/v1/zz_generated.deepcopy.go on lines 1242..1253
        api/v1/zz_generated.deepcopy.go on lines 1399..1410

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

        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

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

            if in.VolumeMounts != nil {
                in, out := &in.VolumeMounts, &out.VolumeMounts
                *out = new([]corev1.VolumeMount)
                if **in != nil {
                    in, out := *in, *out
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 982..992

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

        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

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

            if in.VolumeMounts != nil {
                in, out := &in.VolumeMounts, &out.VolumeMounts
                *out = new([]corev1.VolumeMount)
                if **in != nil {
                    in, out := *in, *out
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 1 hr to fix
        api/v1/zz_generated.deepcopy.go on lines 218..228

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

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

        func (in *CheckSchedule) DeepCopyInto(out *CheckSchedule) {
            *out = *in
            in.CheckSpec.DeepCopyInto(&out.CheckSpec)
            if in.ScheduleCommon != nil {
                in, out := &in.ScheduleCommon, &out.ScheduleCommon
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 50 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 73..81
        api/v1/zz_generated.deepcopy.go on lines 301..309
        api/v1/zz_generated.deepcopy.go on lines 828..836
        api/v1/zz_generated.deepcopy.go on lines 1006..1014

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

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

        func (in *ArchiveSchedule) DeepCopyInto(out *ArchiveSchedule) {
            *out = *in
            in.ArchiveSpec.DeepCopyInto(&out.ArchiveSpec)
            if in.ScheduleCommon != nil {
                in, out := &in.ScheduleCommon, &out.ScheduleCommon
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 50 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 301..309
        api/v1/zz_generated.deepcopy.go on lines 443..451
        api/v1/zz_generated.deepcopy.go on lines 828..836
        api/v1/zz_generated.deepcopy.go on lines 1006..1014

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

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

        func (in *PruneSchedule) DeepCopyInto(out *PruneSchedule) {
            *out = *in
            in.PruneSpec.DeepCopyInto(&out.PruneSpec)
            if in.ScheduleCommon != nil {
                in, out := &in.ScheduleCommon, &out.ScheduleCommon
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 50 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 73..81
        api/v1/zz_generated.deepcopy.go on lines 301..309
        api/v1/zz_generated.deepcopy.go on lines 443..451
        api/v1/zz_generated.deepcopy.go on lines 1006..1014

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

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

        func (in *BackupSchedule) DeepCopyInto(out *BackupSchedule) {
            *out = *in
            in.BackupSpec.DeepCopyInto(&out.BackupSpec)
            if in.ScheduleCommon != nil {
                in, out := &in.ScheduleCommon, &out.ScheduleCommon
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 50 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 73..81
        api/v1/zz_generated.deepcopy.go on lines 443..451
        api/v1/zz_generated.deepcopy.go on lines 828..836
        api/v1/zz_generated.deepcopy.go on lines 1006..1014

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

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

        func (in *RestoreSchedule) DeepCopyInto(out *RestoreSchedule) {
            *out = *in
            in.RestoreSpec.DeepCopyInto(&out.RestoreSpec)
            if in.ScheduleCommon != nil {
                in, out := &in.ScheduleCommon, &out.ScheduleCommon
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 4 other locations - About 50 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 73..81
        api/v1/zz_generated.deepcopy.go on lines 301..309
        api/v1/zz_generated.deepcopy.go on lines 443..451
        api/v1/zz_generated.deepcopy.go on lines 828..836

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

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

        func (in *Archive) DeepCopyInto(out *Archive) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 5 other locations - About 45 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 242..248
        api/v1/zz_generated.deepcopy.go on lines 384..390
        api/v1/zz_generated.deepcopy.go on lines 769..775
        api/v1/zz_generated.deepcopy.go on lines 906..912
        api/v1/zz_generated.deepcopy.go on lines 1200..1206

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

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

        func (in *Schedule) DeepCopyInto(out *Schedule) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 5 other locations - About 45 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 14..20
        api/v1/zz_generated.deepcopy.go on lines 242..248
        api/v1/zz_generated.deepcopy.go on lines 384..390
        api/v1/zz_generated.deepcopy.go on lines 769..775
        api/v1/zz_generated.deepcopy.go on lines 906..912

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

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

        func (in *Backup) DeepCopyInto(out *Backup) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 5 other locations - About 45 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 14..20
        api/v1/zz_generated.deepcopy.go on lines 384..390
        api/v1/zz_generated.deepcopy.go on lines 769..775
        api/v1/zz_generated.deepcopy.go on lines 906..912
        api/v1/zz_generated.deepcopy.go on lines 1200..1206

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

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

        func (in *Check) DeepCopyInto(out *Check) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 5 other locations - About 45 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 14..20
        api/v1/zz_generated.deepcopy.go on lines 242..248
        api/v1/zz_generated.deepcopy.go on lines 769..775
        api/v1/zz_generated.deepcopy.go on lines 906..912
        api/v1/zz_generated.deepcopy.go on lines 1200..1206

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

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

        func (in *Prune) DeepCopyInto(out *Prune) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 5 other locations - About 45 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 14..20
        api/v1/zz_generated.deepcopy.go on lines 242..248
        api/v1/zz_generated.deepcopy.go on lines 384..390
        api/v1/zz_generated.deepcopy.go on lines 906..912
        api/v1/zz_generated.deepcopy.go on lines 1200..1206

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

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

        func (in *Restore) DeepCopyInto(out *Restore) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Major
        Found in api/v1/zz_generated.deepcopy.go and 5 other locations - About 45 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 14..20
        api/v1/zz_generated.deepcopy.go on lines 242..248
        api/v1/zz_generated.deepcopy.go on lines 384..390
        api/v1/zz_generated.deepcopy.go on lines 769..775
        api/v1/zz_generated.deepcopy.go on lines 1200..1206

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

        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

        func (in *PodConfig) DeepCopyInto(out *PodConfig) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Minor
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 40 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 1372..1378

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

        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

        func (in *Snapshot) DeepCopyInto(out *Snapshot) {
            *out = *in
            out.TypeMeta = in.TypeMeta
            in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
            in.Spec.DeepCopyInto(&out.Spec)
        Severity: Minor
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 40 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 601..607

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

        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 in.Tags != nil {
                in, out := &in.Tags, &out.Tags
                *out = new([]string)
                if **in != nil {
                    in, out := *in, *out
        Severity: Minor
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 35 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 1442..1450

        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 in.Paths != nil {
                in, out := &in.Paths, &out.Paths
                *out = new([]string)
                if **in != nil {
                    in, out := *in, *out
        Severity: Minor
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 35 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 360..368

        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

        func (in *PreBackupPodSpec) DeepCopyInto(out *PreBackupPodSpec) {
            *out = *in
            if in.Pod != nil {
                in, out := &in.Pod, &out.Pod
                *out = new(Pod)
        Severity: Minor
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 30 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 94..101

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

        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

        func (in *ArchiveSpec) DeepCopyInto(out *ArchiveSpec) {
            *out = *in
            if in.RestoreSpec != nil {
                in, out := &in.RestoreSpec, &out.RestoreSpec
                *out = new(RestoreSpec)
        Severity: Minor
        Found in api/v1/zz_generated.deepcopy.go and 1 other location - About 30 mins to fix
        api/v1/zz_generated.deepcopy.go on lines 749..756

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

        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