meteor/meteor

View on GitHub
docs/conversion/old-toc.js

Summary

Maintainability
D
3 days
Test Coverage

File old-toc.js has 339 lines of code (exceeds 250 allowed). Consider refactoring.
Open

module.exports = [
  [
    "Meteor Guide",
  ],

Severity: Minor
Found in docs/conversion/old-toc.js - About 4 hrs to fix

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

          {name: "Template instances", id: "template_inst"}, [
            {instance: "template", name: "findAll", id: "template_findAll"},
            {instance: "template", name: "$", id: "template_$"},
            {instance: "template", name: "find", id: "template_find"},
            {instance: "template", name: "firstNode", id: "template_firstNode"},
    Severity: Major
    Found in docs/conversion/old-toc.js and 1 other location - About 6 hrs to fix
    docs/conversion/old-toc.js on lines 22..32

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

    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

          "Meteor.publish", [
            {instance: "this", name: "userId", id: "publish_userId"},
            {instance: "this", name: "added", id: "publish_added"},
            {instance: "this", name: "changed", id: "publish_changed"},
            {instance: "this", name: "removed", id: "publish_removed"},
    Severity: Major
    Found in docs/conversion/old-toc.js and 1 other location - About 6 hrs to fix
    docs/conversion/old-toc.js on lines 187..197

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

    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

          "Meteor.methods", [
            {instance: "this", name: "userId", id: "method_userId"},
            {instance: "this", name: "setUserId", id: "method_setUserId"},
            {instance: "this", name: "isSimulation", id: "method_issimulation"},
            {instance: "this", name: "unblock", id: "method_unblock"},
    Severity: Major
    Found in docs/conversion/old-toc.js and 1 other location - About 2 hrs to fix
    packages/force-ssl-common/force_ssl_tests.js on lines 60..86

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

    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

          {name: "Package.onUse", id: "packagedefinition"}, [
            {name: "api.versionsFrom", id: "pack_versions"},
            {name: "api.use", id: "pack_use"},
            {name: "api.imply", id: "pack_api_imply"},
            {name: "api.export", id: "pack_export"},
    Severity: Major
    Found in docs/conversion/old-toc.js and 1 other location - About 1 hr to fix
    docs/conversion/old-toc.js on lines 327..334

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

    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

        "mobile-config", [
          {name: "App.info", id: "App-info"},
          {name: "App.setPreference", id: "App-setPreference"},
          {name: "App.accessRule", id: "App-accessRule"},
          {name: "App.configurePlugin", id: "App-configurePlugin"},
    Severity: Major
    Found in docs/conversion/old-toc.js and 1 other location - About 1 hr to fix
    docs/conversion/old-toc.js on lines 310..317

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

    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

          {prefix: "Template", instance: "myTemplate", id: "templates_api"}, [
            {name: "events", id: "template_events"},
            {name: "helpers", id: "template_helpers"},
            {name: "onRendered", id: "template_onRendered"},
            {name: "onCreated", id: "template_onCreated"},
    Severity: Major
    Found in docs/conversion/old-toc.js and 1 other location - About 1 hr to fix
    packages/base64/base64_test.js on lines 34..40

    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

          "Tracker.Dependency", [
            {instance: "dependency", name: "changed", id: "dependency_changed"},
            {instance: "dependency", name: "depend", id: "dependency_depend"},
            {instance: "dependency", name: "hasDependents", id: "dependency_hasdependents"}
          ]
    Severity: Minor
    Found in docs/conversion/old-toc.js and 1 other location - About 55 mins to fix
    packages/force-ssl-common/force_ssl_tests.js on lines 37..53

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

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status