LiberTEM/LiberTEM

View on GitHub

Showing 916 of 916 total issues

Similar blocks of code found in 3 locations. Consider refactoring.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    const updateMode = (newMode: string) => {
        dispatch(compoundAnalysisActions.Actions.enableAutoStart(compoundAnalysisId));
        setMode(newMode as AnalysisTypes);
    }
Severity: Major
Found in client/src/compoundAnalysis/components/FFTFrameView.tsx and 2 other locations - About 40 mins to fix
client/src/compoundAnalysis/components/DefaultFrameView.tsx on lines 67..70
client/src/compoundAnalysis/components/DefaultFrameView.tsx on lines 72..75

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

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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        <Rect x={x} y={y} width={width} height={height}
            imageWidth={scanWidth} imageHeight={scanHeight}
        />
Severity: Minor
Found in client/src/compoundAnalysis/components/roi/RectROI.tsx and 1 other location - About 40 mins to fix
client/src/compoundAnalysis/components/roi/RectROI.tsx on lines 47..51

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

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

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

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

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

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    const updateFrameMode = (newMode: string) => {
        dispatch(compoundAnalysisActions.Actions.enableAutoStart(compoundAnalysisId));
        setMode(newMode as DefaultModes);
    }
Severity: Major
Found in client/src/compoundAnalysis/components/DefaultFrameView.tsx and 2 other locations - About 40 mins to fix
client/src/compoundAnalysis/components/DefaultFrameView.tsx on lines 72..75
client/src/compoundAnalysis/components/FFTFrameView.tsx on lines 36..39

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

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

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

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

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

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    const updateRoi = (newRoi: string) => {
        dispatch(compoundAnalysisActions.Actions.enableAutoStart(compoundAnalysisId));
        setRoi(newRoi as DefaultRois);
    }
Severity: Major
Found in client/src/compoundAnalysis/components/DefaultFrameView.tsx and 2 other locations - About 40 mins to fix
client/src/compoundAnalysis/components/DefaultFrameView.tsx on lines 67..70
client/src/compoundAnalysis/components/FFTFrameView.tsx on lines 36..39

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

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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    handleSubmit: (values, formikBag) => {
        const { onSubmit } = formikBag.props;
        onSubmit({
            type: ClusterTypes.LOCAL,
            ...values,
Severity: Minor
Found in client/src/cluster/components/LocalConnectionForm.tsx and 1 other location - About 40 mins to fix
client/src/cluster/components/TCPConnectionForm.tsx on lines 42..48

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

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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    handleSubmit: (values, formikBag) => {
        const { onSubmit } = formikBag.props;
        onSubmit({
            type: ClusterTypes.TCP,
            ...values
Severity: Minor
Found in client/src/cluster/components/TCPConnectionForm.tsx and 1 other location - About 40 mins to fix
client/src/cluster/components/LocalConnectionForm.tsx on lines 82..88

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

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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    const runOrParamsChannel = (yield actionChannel(compoundAnalysisActions.ActionTypes.RUN, buffers.sliding(2))) as TakeableChannel<
        compoundAnalysisActions.ActionTypes.RUN
    >;
Severity: Minor
Found in client/src/compoundAnalysis/sagas.ts and 1 other location - About 40 mins to fix
client/src/compoundAnalysis/sagas.ts on lines 144..144

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

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

Consider simplifying this complex logical expression.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        if use_torch and (not torch_incompatible):
            self.process_flat = self._process_flat_torch
        elif (
            self.meta.array_backend == UDF.BACKEND_NUMPY
            and isinstance(self.masks.use_sparse, str)
Severity: Major
Found in src/libertem/udf/masks.py - About 40 mins to fix

    Similar blocks of code found in 6 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        error: (
            msg: string, timestamp: number, id: string
        ) => createAction(ActionTypes.ERROR, { msg, timestamp, id }),
    Severity: Major
    Found in client/src/analysis/actions.ts and 5 other locations - About 40 mins to fix
    client/src/channel/actions.ts on lines 44..44
    client/src/cluster/actions.ts on lines 19..19
    client/src/compoundAnalysis/actions.ts on lines 36..36
    client/src/config/actions.ts on lines 14..14
    client/src/browser/actions.ts on lines 24..24

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

    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 6 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        error: (msg: string, timestamp: number, id: string) => createAction(ActionTypes.ERROR, { msg, timestamp, id }),
    Severity: Major
    Found in client/src/browser/actions.ts and 5 other locations - About 40 mins to fix
    client/src/analysis/actions.ts on lines 32..34
    client/src/channel/actions.ts on lines 44..44
    client/src/cluster/actions.ts on lines 19..19
    client/src/compoundAnalysis/actions.ts on lines 36..36
    client/src/config/actions.ts on lines 14..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 48.

    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 6 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        error: (msg: string, timestamp: number, id: string) => createAction(ActionTypes.ERROR, { msg, timestamp, id }),
    Severity: Major
    Found in client/src/channel/actions.ts and 5 other locations - About 40 mins to fix
    client/src/analysis/actions.ts on lines 32..34
    client/src/cluster/actions.ts on lines 19..19
    client/src/compoundAnalysis/actions.ts on lines 36..36
    client/src/config/actions.ts on lines 14..14
    client/src/browser/actions.ts on lines 24..24

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

    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 6 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        fetchFailed: (msg: string, timestamp: number, id: string) => createAction(ActionTypes.FETCH_FAILED, { msg, timestamp, id }),
    Severity: Major
    Found in client/src/config/actions.ts and 5 other locations - About 40 mins to fix
    client/src/analysis/actions.ts on lines 32..34
    client/src/channel/actions.ts on lines 44..44
    client/src/cluster/actions.ts on lines 19..19
    client/src/compoundAnalysis/actions.ts on lines 36..36
    client/src/browser/actions.ts on lines 24..24

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

    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 6 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        error: (msg: string, timestamp: number, id: string) => createAction(ActionTypes.ERROR, { msg, timestamp, id }),
    Severity: Major
    Found in client/src/compoundAnalysis/actions.ts and 5 other locations - About 40 mins to fix
    client/src/analysis/actions.ts on lines 32..34
    client/src/channel/actions.ts on lines 44..44
    client/src/cluster/actions.ts on lines 19..19
    client/src/config/actions.ts on lines 14..14
    client/src/browser/actions.ts on lines 24..24

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

    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 6 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        error: (msg: string, timestamp: number, id: string) => createAction(ActionTypes.ERROR, { msg, timestamp, id }),
    Severity: Major
    Found in client/src/cluster/actions.ts and 5 other locations - About 40 mins to fix
    client/src/analysis/actions.ts on lines 32..34
    client/src/channel/actions.ts on lines 44..44
    client/src/compoundAnalysis/actions.ts on lines 36..36
    client/src/config/actions.ts on lines 14..14
    client/src/browser/actions.ts on lines 24..24

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

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

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

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

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

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        running: (id: string, job: string, analysisIndex: number) => createAction(ActionTypes.RUNNING, { id, job, jobIndex: analysisIndex }),
    Severity: Minor
    Found in client/src/compoundAnalysis/actions.ts and 2 other locations - About 40 mins to fix
    client/src/errors/actions.ts on lines 12..12
    client/src/job/actions.ts on lines 8..8

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

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

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

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

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

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        generic: (id: string, msg: string, timestamp: number) => createAction(ActionTypes.GENERIC, { id, msg, timestamp }),
    Severity: Minor
    Found in client/src/errors/actions.ts and 2 other locations - About 40 mins to fix
    client/src/compoundAnalysis/actions.ts on lines 33..33
    client/src/job/actions.ts on lines 8..8

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

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

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

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

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

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

        create: (id: string, analysis: string, timestamp: number) => createAction(ActionTypes.CREATE, { id, analysis, timestamp }),
    Severity: Minor
    Found in client/src/job/actions.ts and 2 other locations - About 40 mins to fix
    client/src/compoundAnalysis/actions.ts on lines 33..33
    client/src/errors/actions.ts on lines 12..12

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

    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

    Function _run_async has 9 arguments (exceeds 8 allowed). Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

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

      Function radial_mask_factory has 9 arguments (exceeds 8 allowed). Consider refactoring.
      Open
      • Open
      • Confirmed
      • Invalid
      • Wontfix
      Cancel

      def radial_mask_factory(detector_y, detector_x, cx, cy, ri, ro, n_bins, max_order, use_sparse):
      Severity: Major
      Found in src/libertem/analysis/radialfourier.py - About 35 mins to fix

        Function create_radial_fourier_analysis has 9 arguments (exceeds 8 allowed). Consider refactoring.
        Open
        • Open
        • Confirmed
        • Invalid
        • Wontfix
        Cancel

            def create_radial_fourier_analysis(self, dataset: DataSet, cx: float = None, cy: float = None,
        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
          • Open
          • Confirmed
          • Invalid
          • Wontfix
          Cancel

              def _run_async(
          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
            • Open
            • Confirmed
            • Invalid
            • Wontfix
            Cancel

                def _run_sync(
            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
              • Open
              • Confirmed
              • Invalid
              • Wontfix
              Cancel

                  def _run_sync(
              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
                • Open
                • Confirmed
                • Invalid
                • Wontfix
                Cancel

                    def _run_sync(
                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
                  • Open
                  • Confirmed
                  • Invalid
                  • Wontfix
                  Cancel

                  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
                    • Open
                    • Confirmed
                    • Invalid
                    • Wontfix
                    Cancel

                        def _run_sync(
                    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
                      • Open
                      • Confirmed
                      • Invalid
                      • Wontfix
                      Cancel

                          def _run_sync(
                      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
                        • Open
                        • Confirmed
                        • Invalid
                        • Wontfix
                        Cancel

                            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
                          • Open
                          • Confirmed
                          • Invalid
                          • Wontfix
                          Cancel

                              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
                            • Open
                            • Confirmed
                            • Invalid
                            • Wontfix
                            Cancel

                                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
                              • Open
                              • Confirmed
                              • Invalid
                              • Wontfix
                              Cancel

                              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
                                • Open
                                • Confirmed
                                • Invalid
                                • Wontfix
                                Cancel

                                    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
                                  • Open
                                  • Confirmed
                                  • Invalid
                                  • Wontfix
                                  Cancel

                                      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
                                    • Open
                                    • Confirmed
                                    • Invalid
                                    • Wontfix
                                    Cancel

                                        def _run_async(
                                    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
                                      • Open
                                      • Confirmed
                                      • Invalid
                                      • Wontfix
                                      Cancel

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

                                        Function __init__ has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                        Open
                                        • Open
                                        • Confirmed
                                        • Invalid
                                        • Wontfix
                                        Cancel

                                            def __init__(self, path, tileshape=None, scan_size=None, disable_glob=False,
                                        Severity: Major
                                        Found in src/libertem/io/dataset/mib.py - About 35 mins to fix

                                          Function run_udf_iter has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                          Open
                                          • Open
                                          • Confirmed
                                          • Invalid
                                          • Wontfix
                                          Cancel

                                              def run_udf_iter(
                                          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
                                            • Open
                                            • Confirmed
                                            • Invalid
                                            • Wontfix
                                            Cancel

                                                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
                                              • Open
                                              • Confirmed
                                              • Invalid
                                              • Wontfix
                                              Cancel

                                                  def _run_async(
                                              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
                                                • Open
                                                • Confirmed
                                                • Invalid
                                                • Wontfix
                                                Cancel

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

                                                  Function __init__ has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                                  Open
                                                  • Open
                                                  • Confirmed
                                                  • Invalid
                                                  • Wontfix
                                                  Cancel

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

                                                    Function run_for_dataset_sync has 9 arguments (exceeds 8 allowed). Consider refactoring.
                                                    Open
                                                    • Open
                                                    • Confirmed
                                                    • Invalid
                                                    • Wontfix
                                                    Cancel

                                                        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
                                                      • Open
                                                      • Confirmed
                                                      • Invalid
                                                      • Wontfix
                                                      Cancel

                                                          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

                                                        Similar blocks of code found in 13 locations. Consider refactoring.
                                                        Open
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        type DatasetParamsEMPADForForm = Omit<DatasetParamsEMPAD,
                                                            "type"
                                                            | "path"
                                                            | "nav_shape"
                                                            | "sig_shape"> & {
                                                        Severity: Major
                                                        Found in client/src/dataset/components/EMPADParamsForm.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/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
                                                        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
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        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
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        type DatasetParamsRawCSRForForm = Omit<DatasetParamsRawCSR,
                                                            "type"
                                                            | "path"
                                                            | "nav_shape"
                                                            | "sig_shape"> & {
                                                        Severity: Major
                                                        Found in client/src/dataset/components/RawCSRParamsForm.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/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
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        type DatasetParamsMIBForForm = Omit<DatasetParamsMIB,
                                                            "type"
                                                            | "path"
                                                            | "nav_shape"
                                                            | "sig_shape"> & {
                                                        Severity: Major
                                                        Found in client/src/dataset/components/MIBParamsForm.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/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

                                                        Similar blocks of code found in 13 locations. Consider refactoring.
                                                        Open
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        type DatasetParamsK2ISForForm = Omit<DatasetParamsK2IS,
                                                            "type"
                                                            | "path"
                                                            | "nav_shape"
                                                            | "sig_shape"> & {
                                                        Severity: Major
                                                        Found in client/src/dataset/components/K2ISParamsForm.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/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

                                                        Similar blocks of code found in 13 locations. Consider refactoring.
                                                        Open
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        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

                                                        Similar blocks of code found in 13 locations. Consider refactoring.
                                                        Open
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        type DatasetParamsSEQForForm = Omit<DatasetParamsSEQ,
                                                            "type"
                                                            | "path"
                                                            | "nav_shape"
                                                            | "sig_shape"> & {
                                                        Severity: Major
                                                        Found in client/src/dataset/components/SEQParamsForm.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/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