gdbots/schemas

View on GitHub

Showing 172 of 368 total issues

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/edge-created/1-0-1.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/EdgeCreatedV1.php and 2 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/EdgeDeletedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeCreatedV1.php on lines 1..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 767.

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

<?php
declare(strict_types=1);

// @link http://schemas.gdbots.io/json-schema/gdbots/ncr/event/edge-deleted/1-0-1.json#
namespace Gdbots\Schemas\Ncr\Event;
Severity: Major
Found in build/php/src/Gdbots/Schemas/Ncr/Event/EdgeDeletedV1.php and 2 other locations - About 4 days to fix
build/php/src/Gdbots/Schemas/Ncr/Event/EdgeCreatedV1.php on lines 1..148
build/php/src/Gdbots/Schemas/Ncr/Event/NodeCreatedV1.php on lines 1..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 767.

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 GrantRolesToAppV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/command/GrantRolesToAppV1.js and 3 other locations - About 4 days to fix
build/js/src/gdbots/iam/command/GrantRolesToUserV1.js on lines 9..119
build/js/src/gdbots/iam/command/RevokeRolesFromAppV1.js on lines 9..119
build/js/src/gdbots/iam/command/RevokeRolesFromUserV1.js on lines 9..119

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

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 RevokeRolesFromUserV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/command/RevokeRolesFromUserV1.js and 3 other locations - About 4 days to fix
build/js/src/gdbots/iam/command/GrantRolesToAppV1.js on lines 9..119
build/js/src/gdbots/iam/command/GrantRolesToUserV1.js on lines 9..119
build/js/src/gdbots/iam/command/RevokeRolesFromAppV1.js on lines 9..119

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

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 GrantRolesToUserV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/command/GrantRolesToUserV1.js and 3 other locations - About 4 days to fix
build/js/src/gdbots/iam/command/GrantRolesToAppV1.js on lines 9..119
build/js/src/gdbots/iam/command/RevokeRolesFromAppV1.js on lines 9..119
build/js/src/gdbots/iam/command/RevokeRolesFromUserV1.js on lines 9..119

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

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 RevokeRolesFromAppV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/command/RevokeRolesFromAppV1.js and 3 other locations - About 4 days to fix
build/js/src/gdbots/iam/command/GrantRolesToAppV1.js on lines 9..119
build/js/src/gdbots/iam/command/GrantRolesToUserV1.js on lines 9..119
build/js/src/gdbots/iam/command/RevokeRolesFromUserV1.js on lines 9..119

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

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 CreateEdgeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/CreateEdgeV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/CreateNodeV1.js on lines 9..116
build/js/src/gdbots/ncr/command/DeleteEdgeV1.js on lines 9..116

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

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 DeleteEdgeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/DeleteEdgeV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/CreateEdgeV1.js on lines 9..116
build/js/src/gdbots/ncr/command/CreateNodeV1.js on lines 9..116

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

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 CreateNodeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/CreateNodeV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/CreateEdgeV1.js on lines 9..116
build/js/src/gdbots/ncr/command/DeleteEdgeV1.js on lines 9..116

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

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 DeleteNodeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/DeleteNodeV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/ExpireNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/LockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnlockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnpublishNodeV1.js on lines 9..113

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

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 MarkNodeAsPendingV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/DeleteNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/ExpireNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/LockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnlockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnpublishNodeV1.js on lines 9..113

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

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 LockNodeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/LockNodeV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/DeleteNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/ExpireNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnlockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnpublishNodeV1.js on lines 9..113

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

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 MarkNodeAsDraftV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/DeleteNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/ExpireNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/LockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnlockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnpublishNodeV1.js on lines 9..113

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

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 UnpublishNodeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/UnpublishNodeV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/DeleteNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/ExpireNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/LockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnlockNodeV1.js on lines 9..113

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

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 UnlockNodeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/UnlockNodeV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/DeleteNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/ExpireNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/LockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnpublishNodeV1.js on lines 9..113

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

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 ExpireNodeV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/ncr/command/ExpireNodeV1.js and 6 other locations - About 3 days to fix
build/js/src/gdbots/ncr/command/DeleteNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/LockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsDraftV1.js on lines 9..113
build/js/src/gdbots/ncr/command/MarkNodeAsPendingV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnlockNodeV1.js on lines 9..113
build/js/src/gdbots/ncr/command/UnpublishNodeV1.js on lines 9..113

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

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 SearchAppsResponseV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/request/SearchAppsResponseV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/iam/request/SearchRolesResponseV1.js on lines 8..96
build/js/src/gdbots/iam/request/SearchUsersResponseV1.js on lines 8..96

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

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 SearchRolesResponseV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/request/SearchRolesResponseV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/iam/request/SearchAppsResponseV1.js on lines 8..96
build/js/src/gdbots/iam/request/SearchUsersResponseV1.js on lines 8..96

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

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 SearchUsersResponseV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/iam/request/SearchUsersResponseV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/iam/request/SearchAppsResponseV1.js on lines 8..96
build/js/src/gdbots/iam/request/SearchRolesResponseV1.js on lines 8..96

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

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 AddressFieldV1 extends Message {
  /**
   * @private
   *
   * @returns {Schema}
Severity: Major
Found in build/js/src/gdbots/forms/field/AddressFieldV1.js and 2 other locations - About 3 days to fix
build/js/src/gdbots/forms/field/CountryFieldV1.js on lines 10..85
build/js/src/gdbots/forms/field/PhoneFieldV1.js on lines 10..85

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

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