gdbots/schemas

View on GitHub

Showing 172 of 368 total issues

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

export default class SearchAppsRequestV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/request/SearchAppsRequestV1.js and 1 other location - About 6 days to fix
build/js/src/gdbots/iam/request/SearchRolesRequestV1.js on lines 11..148

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

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

export default class SearchRolesRequestV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/request/SearchRolesRequestV1.js and 1 other location - About 6 days to fix
build/js/src/gdbots/iam/request/SearchAppsRequestV1.js on lines 11..148

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

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

export default class NodeTagsUpdatedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeTagsUpdatedV1.js and 1 other location - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeLabelsUpdatedV1.js on lines 11..129

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

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

export default class NodeLabelsUpdatedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeLabelsUpdatedV1.js and 1 other location - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeTagsUpdatedV1.js on lines 11..129

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

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

export default class NodePublishedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodePublishedV1.js and 1 other location - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeScheduledV1.js on lines 11..126

Duplicated Code

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

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

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

Tuning

This issue has a mass of 970.

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

export default class NodeScheduledV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeScheduledV1.js and 1 other location - About 5 days to fix
build/js/src/gdbots/ncr/event/NodePublishedV1.js on lines 11..126

Duplicated Code

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

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

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

Tuning

This issue has a mass of 970.

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

export default class NodeMarkedAsPendingV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeExpiredV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeLockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnlockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js on lines 11..124

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

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

export default class NodeLockedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeLockedV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeExpiredV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnlockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js on lines 11..124

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

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

export default class NodeDeletedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeDeletedV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeExpiredV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeLockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnlockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js on lines 11..124

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

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

export default class NodeMarkedAsDraftV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeExpiredV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeLockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnlockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js on lines 11..124

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

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

export default class NodeUnlockedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeUnlockedV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeExpiredV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeLockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js on lines 11..124

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

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

export default class NodeExpiredV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeExpiredV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeLockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnlockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js on lines 11..124

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

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

export default class NodeUnpublishedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeUnpublishedV1.js and 6 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/NodeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeExpiredV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeLockedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsDraftV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeMarkedAsPendingV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeUnlockedV1.js on lines 11..124

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

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

export default class AppRolesRevokedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/event/AppRolesRevokedV1.js and 3 other locations - About 5 days to fix
build/js/src/gdbots/iam/event/AppRolesGrantedV1.js on lines 11..127
build/js/src/gdbots/iam/event/UserRolesGrantedV1.js on lines 11..127
build/js/src/gdbots/iam/event/UserRolesRevokedV1.js on lines 11..127

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

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

export default class UserRolesGrantedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/event/UserRolesGrantedV1.js and 3 other locations - About 5 days to fix
build/js/src/gdbots/iam/event/AppRolesGrantedV1.js on lines 11..127
build/js/src/gdbots/iam/event/AppRolesRevokedV1.js on lines 11..127
build/js/src/gdbots/iam/event/UserRolesRevokedV1.js on lines 11..127

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

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

export default class AppRolesGrantedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/event/AppRolesGrantedV1.js and 3 other locations - About 5 days to fix
build/js/src/gdbots/iam/event/AppRolesRevokedV1.js on lines 11..127
build/js/src/gdbots/iam/event/UserRolesGrantedV1.js on lines 11..127
build/js/src/gdbots/iam/event/UserRolesRevokedV1.js on lines 11..127

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

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

export default class UserRolesRevokedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/event/UserRolesRevokedV1.js and 3 other locations - About 5 days to fix
build/js/src/gdbots/iam/event/AppRolesGrantedV1.js on lines 11..127
build/js/src/gdbots/iam/event/AppRolesRevokedV1.js on lines 11..127
build/js/src/gdbots/iam/event/UserRolesGrantedV1.js on lines 11..127

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

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

export default class NodeCreatedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/NodeCreatedV1.js and 2 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/EdgeCreatedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/EdgeDeletedV1.js on lines 11..124

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

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

export default class EdgeDeletedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/EdgeDeletedV1.js and 2 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/EdgeCreatedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeCreatedV1.js on lines 11..124

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

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

export default class EdgeCreatedV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/event/EdgeCreatedV1.js and 2 other locations - About 5 days to fix
build/js/src/gdbots/ncr/event/EdgeDeletedV1.js on lines 11..124
build/js/src/gdbots/ncr/event/NodeCreatedV1.js on lines 11..124

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

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language