LiberTEM/LiberTEM

View on GitHub

Showing 902 of 903 total issues

Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
Open

    def _run_sync(
Severity: Major
Found in src/libertem/api.py - About 35 mins to fix

    Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
    Open

        def _run_async(
    Severity: Major
    Found in src/libertem/api.py - About 35 mins to fix

      Function run_udf_iter has 9 arguments (exceeds 8 allowed). Consider refactoring.
      Open

          def run_udf_iter(
      Severity: Major
      Found in src/libertem/api.py - About 35 mins to fix

        Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
        Open

            def _run_sync(
        Severity: Major
        Found in src/libertem/api.py - About 35 mins to fix

          Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
          Open

              def _run_async(
          Severity: Major
          Found in src/libertem/api.py - About 35 mins to fix

            Function main has 9 arguments (exceeds 8 allowed). Consider refactoring.
            Open

            def main(kind, scheduler, local_directory, n_cpus, cudas,
            Severity: Major
            Found in src/libertem/executor/cli.py - About 35 mins to fix

              Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
              Open

                  def _run_sync(
              Severity: Major
              Found in src/libertem/api.py - About 35 mins to fix

                Function run_udf has 9 arguments (exceeds 8 allowed). Consider refactoring.
                Open

                    def run_udf(
                Severity: Major
                Found in src/libertem/api.py - About 35 mins to fix

                  Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                  Open

                      def _run_async(
                  Severity: Major
                  Found in src/libertem/api.py - About 35 mins to fix

                    Function cbed_frame has 9 arguments (exceeds 8 allowed). Consider refactoring.
                    Open

                    def cbed_frame(
                    Severity: Major
                    Found in src/libertem/utils/generate.py - About 35 mins to fix

                      Function _run_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
                      Open

                          def _run_sync(
                      Severity: Major
                      Found in src/libertem/api.py - About 35 mins to fix

                        Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                        Open

                            def _run_async(
                        Severity: Major
                        Found in src/libertem/api.py - About 35 mins to fix

                          Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                          Open

                              def _run_async(
                          Severity: Major
                          Found in src/libertem/api.py - About 35 mins to fix

                            Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
                            Open

                                def _run_async(
                            Severity: Major
                            Found in src/libertem/api.py - About 35 mins to fix

                              Function run_for_dataset_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
                              Open

                                  def run_for_dataset_sync(
                              Severity: Major
                              Found in src/libertem/udf/base.py - About 35 mins to fix

                                Function __init__ has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                Open

                                    def __init__(self, mask_factories, use_torch=True, use_sparse=None, mask_count=None,
                                Severity: Major
                                Found in src/libertem/udf/masks.py - About 35 mins to fix

                                  Function __init__ has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                  Open

                                      def __init__(
                                  Severity: Major
                                  Found in src/libertem/udf/base.py - About 35 mins to fix

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

                                    type DatasetParamsMRCForForm = Omit<DatasetParamsMRC,
                                        "type"
                                        | "path"
                                        | "nav_shape"
                                        | "sig_shape"> & {
                                    Severity: Major
                                    Found in client/src/dataset/components/MRCParamsForm.tsx and 12 other locations - About 35 mins to fix
                                    client/src/dataset/components/BLOParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/DMParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/EMPADParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/FRMS6ParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/K2ISParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/MIBParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/NPYParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/RawCSRParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/RawFileParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/SEQParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/SERParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/TVIPSParamsForm.tsx on lines 12..19

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

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

                                    type DatasetParamsTVIPSForForm = Omit<DatasetParamsTVIPS,
                                        "type"
                                        | "path"
                                        | "nav_shape"
                                        | "sig_shape"> & {
                                    Severity: Major
                                    Found in client/src/dataset/components/TVIPSParamsForm.tsx and 12 other locations - About 35 mins to fix
                                    client/src/dataset/components/BLOParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/DMParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/EMPADParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/FRMS6ParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/K2ISParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/MIBParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/MRCParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/NPYParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/RawCSRParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/RawFileParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/SEQParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/SERParamsForm.tsx on lines 11..18

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

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

                                    type DatasetParamsFRMS6ForForm = Omit<DatasetParamsFRMS6,
                                        "type"
                                        | "path"
                                        | "nav_shape"
                                        | "sig_shape"> & {
                                    Severity: Major
                                    Found in client/src/dataset/components/FRMS6ParamsForm.tsx and 12 other locations - About 35 mins to fix
                                    client/src/dataset/components/BLOParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/DMParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/EMPADParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/K2ISParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/MIBParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/MRCParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/NPYParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/RawCSRParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/RawFileParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/SEQParamsForm.tsx on lines 12..19
                                    client/src/dataset/components/SERParamsForm.tsx on lines 11..18
                                    client/src/dataset/components/TVIPSParamsForm.tsx on lines 12..19

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

                                    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