synapsecns/sanguine

View on GitHub
services/explorer/graphql/server/graph/model/models_gen.go

Summary

Maintainability
C
F
+1 wk
Test Coverage

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

// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.

package model

import (
Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 1 other location - About 1 wk to fix
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 1..660

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

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

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 1 other location - About 1 hr to fix
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 139..154

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

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

Severity: Minor
Found in services/explorer/graphql/server/graph/model/models_gen.go and 1 other location - About 45 mins to fix
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 156..169

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

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

Severity: Minor
Found in services/explorer/graphql/server/graph/model/models_gen.go and 1 other location - About 35 mins to fix
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 26..37

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

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 283..294
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

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 30 locations. Consider refactoring.
Fixed

Severity: Major
Found in services/explorer/graphql/server/graph/model/models_gen.go and 29 other locations - About 35 mins to fix
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3443..3454
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3584..3595
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3643..3654
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3708..3719
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 3767..3778
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4010..4021
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4051..4062
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4142..4153
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4195..4206
contrib/promexporter/internal/gql/dfk/models.gen.go on lines 4354..4365
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 239..250
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 282..293
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 325..336
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 370..381
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 411..422
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 460..471
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 503..514
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 546..557
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 591..602
contrib/promexporter/internal/gql/explorer/models.gen.go on lines 644..655
services/explorer/graphql/server/graph/model/models_gen.go on lines 240..251
services/explorer/graphql/server/graph/model/models_gen.go on lines 326..337
services/explorer/graphql/server/graph/model/models_gen.go on lines 371..382
services/explorer/graphql/server/graph/model/models_gen.go on lines 412..423
services/explorer/graphql/server/graph/model/models_gen.go on lines 461..472
services/explorer/graphql/server/graph/model/models_gen.go on lines 504..515
services/explorer/graphql/server/graph/model/models_gen.go on lines 547..558
services/explorer/graphql/server/graph/model/models_gen.go on lines 592..603
services/explorer/graphql/server/graph/model/models_gen.go on lines 645..656

Duplicated Code

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

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

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

Tuning

This issue has a mass of 103.

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

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

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

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

Refactorings

Further Reading

There are no issues that match your filters.

Category
Status