zazoomauro/node-dependency-injection

View on GitHub

Showing 36 of 36 total issues

ContainerBuilder has 35 functions (exceeds 20 allowed). Consider refactoring.
Open

class ContainerBuilder {
  /**
   * @param {boolean} containerReferenceAsService
   * @param {String} defaultDir
   */
Severity: Minor
Found in lib/ContainerBuilder.js - About 4 hrs to fix

    Definition has 35 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Definition {
      /**
       * @param {*|null} Object
       * @param {Array} args
       */
    Severity: Minor
    Found in lib/Definition.js - About 4 hrs to fix

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

        switch (path.extname(dir).split('.').pop()) {
          case JsAdapter.FORMAT:
            loader = new JsFileLoader(container)
            break
          case JsonAdapter.FORMAT:
      Severity: Major
      Found in bin/ndi-container:service.js and 1 other location - About 2 hrs to fix
      bin/ndi-config:check.js on lines 17..26

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

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

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

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

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

      Refactorings

      Further Reading

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

        switch (path.extname(dir).split('.').pop()) {
          case JsAdapter.FORMAT:
            loader = new JsFileLoader(container)
            break
          case JsonAdapter.FORMAT:
      Severity: Major
      Found in bin/ndi-config:check.js and 1 other location - About 2 hrs to fix
      bin/ndi-container:service.js on lines 19..28

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

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

      export default class DefinitionNotFoundException extends Error {
        /**
         * @param {string} id
         */
        constructor (id) {
      Severity: Major
      Found in lib/Exception/DefinitionNotFoundException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class WrongCompilerPassTypeException extends Error {
        /**
         * @param {string} type
         */
        constructor (type) {
      Severity: Major
      Found in lib/Exception/WrongCompilerPassTypeException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10

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

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

      export default class LoadMethodNotFoundException extends Error {
        /**
         * @param {string} extension
         */
        constructor (extension) {
      Severity: Major
      Found in lib/Exception/LoadMethodNotFoundException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class ConfigurationFileNotFoundException extends Error {
        /**
         * @param {string} path
         */
        constructor (path) {
      Severity: Major
      Found in lib/Exception/ConfigurationFileNotFoundException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class PrivateServiceException extends Error {
        /**
         * @param {string} id
         */
        constructor (id) {
      Severity: Major
      Found in lib/Exception/PrivateServiceException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class ProcessMethodNotFoundException extends Error {
        /**
         * @param {string} compilerPass
         */
        constructor (compilerPass) {
      Severity: Major
      Found in lib/Exception/ProcessMethodNotFoundException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class MethodCallNotFoundException extends Error {
        /**
         * @param {string} method
         */
        constructor (method) {
      Severity: Major
      Found in lib/Exception/MethodCallNotFoundException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class ServiceFileNotFoundException extends Error {
        /**
         * @param {string} fileName
         */
        constructor (fileName) {
      Severity: Major
      Found in lib/Exception/ServiceFileNotFoundException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class AbstractServiceException extends Error {
        /**
         * @param {string} id
         */
        constructor (id) {
      Severity: Major
      Found in lib/Exception/AbstractServiceException.js and 10 other locations - About 1 hr to fix
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class NotAbstractServiceException extends Error {
        /**
         * @param {string} id
         */
        constructor (id) {
      Severity: Major
      Found in lib/Exception/NotAbstractServiceException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotLoadedException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

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

      export default class ServiceFileNotLoadedException extends Error {
        /**
         * @param {string} fileName
         */
        constructor (reason) {
      Severity: Major
      Found in lib/Exception/ServiceFileNotLoadedException.js and 10 other locations - About 1 hr to fix
      lib/Exception/AbstractServiceException.js on lines 1..10
      lib/Exception/ConfigurationFileNotFoundException.js on lines 1..10
      lib/Exception/DefinitionNotFoundException.js on lines 1..10
      lib/Exception/LoadMethodNotFoundException.js on lines 1..10
      lib/Exception/MethodCallNotFoundException.js on lines 1..10
      lib/Exception/NotAbstractServiceException.js on lines 1..10
      lib/Exception/PrivateServiceException.js on lines 1..10
      lib/Exception/ProcessMethodNotFoundException.js on lines 1..10
      lib/Exception/ServiceFileNotFoundException.js on lines 1..10
      lib/Exception/WrongCompilerPassTypeException.js on lines 1..10

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

      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 ServiceFileNotValidExtension extends Error {
        constructor (path) {
          super(`Service file not valid extension: ${path}`)
          this.name = 'ServiceFileNotValidExtension'
          this.stack = (new Error()).stack
      Severity: Major
      Found in lib/Exception/ServiceFileNotValidExtension.js and 1 other location - About 1 hr to fix
      lib/Exception/ServiceFileNotAbsolute.js on lines 1..7

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

      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 ServiceFileNotAbsolute extends Error {
        constructor (path) {
          super(`Service file not absolute: ${path}`)
          this.name = 'ServiceFileNotAbsolute'
          this.stack = (new Error()).stack
      Severity: Major
      Found in lib/Exception/ServiceFileNotAbsolute.js and 1 other location - About 1 hr to fix
      lib/Exception/ServiceFileNotValidExtension.js on lines 1..7

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

      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 JsonDumper extends Dumper {
        async dump () {
          const dataContent = JSON.stringify(this._content)
          await fs.writeFile(
            this._serviceFile,
      Severity: Major
      Found in lib/Dump/JsonDumper.js and 1 other location - About 1 hr to fix
      lib/Dump/YamlDumper.js on lines 5..14

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

      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 YamlDumper extends Dumper {
        async dump () {
          const dataContent = yaml.dump(this._content)
          await fs.writeFile(
            this._serviceFile,
      Severity: Major
      Found in lib/Dump/YamlDumper.js and 1 other location - About 1 hr to fix
      lib/Dump/JsonDumper.js on lines 4..13

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

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

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

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

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

      Refactorings

      Further Reading

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

      if (!process.argv.slice(2).length) {
        program.outputHelp((helpText) => {
          return chalk.bold.red(helpText)
        })
      }
      Severity: Major
      Found in bin/ndi-container:service.js and 2 other locations - About 1 hr to fix
      bin/ndi-config:check.js on lines 40..44
      bin/ndi-config:create.js on lines 41..45

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

      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