OpenC3/cosmos

View on GitHub

Showing 1,379 of 1,379 total issues

Function __init__ has 13 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def __init__(
Severity: Major
Found in openc3/python/openc3/interfaces/protocols/template_protocol.py - About 1 hr to fix

    Function __init__ has 13 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def __init__(
    Severity: Major
    Found in openc3/python/openc3/models/interface_status_model.py - About 1 hr to fix

      Method initialize has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            write_termination_characters,
            read_termination_characters,
            ignore_lines = 0,
            initial_read_delay = nil,
            response_lines = 1,
      Severity: Major
      Found in openc3/lib/openc3/interfaces/protocols/template_protocol.rb - About 1 hr to fix

        Method write_interface has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            def write_interface(data, extra = nil)
              extra ||= {}
              queries = extra['HTTP_QUERIES']
              queries ||= {}
              headers = extra['HTTP_HEADERS']
        Severity: Minor
        Found in openc3/lib/openc3/interfaces/http_client_interface.rb - About 1 hr to fix

          Method write_item_internal has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              def self.write_item_internal(item, value, decoded)
                return nil if item.data_type == :DERIVED
          
                # Save traversal state
                parent_node = nil
          Severity: Minor
          Found in openc3/lib/openc3/accessors/json_accessor.rb - About 1 hr to fix

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

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

            const vueLifecycles = singleSpaVue({
              Vue,
              appOptions: {
                router,
                store,
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-handbooks/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
            openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
            openc3/templates/tool_vue/src/main.js on lines 21..34

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

            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

            Method list_files has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                def list_files(bucket:, path:, only_directories: false, metadata: false)
                  # Trailing slash is important in AWS S3 when listing files
                  # See https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Types/ListObjectsV2Output.html#common_prefixes-instance_method
                  if path[-1] != '/'
                    path += '/'
            Severity: Minor
            Found in openc3/lib/openc3/utilities/aws_bucket.rb - About 1 hr to fix

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

              const vueLifecycles = singleSpaVue({
                Vue,
                appOptions: {
                  router,
                  store,
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-admin/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-bucketexplorer/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataextractor/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-dataviewer/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-iframe/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-limitsmonitor/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-scriptrunner/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tablemanager/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/main.js on lines 21..34
              openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/main.js on lines 21..34
              openc3/templates/tool_vue/src/main.js on lines 21..34

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

              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

              Method parse_options has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                def parse_options(options)
                  settings = {}
                  if options.include?('manual')
                    settings['Manual'] = true
                    $manual = true
              Severity: Minor
              Found in openc3-cosmos-script-runner-api/app/models/running_script.rb - About 1 hr to fix
                Severity
                Category
                Status
                Source
                Language