LiberTEM/LiberTEM

View on GitHub

Showing 220 of 903 total issues

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

    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

        <DraggableHandle x={x} y={y}
            imageWidth={scanWidth}
            onDragMove={handleCornerChange}
            parentOnDragStart={handleDragStart}
            parentOnDrop={handleDrop} />
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 60..62

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

    const runOrParamsChannel = (yield actionChannel(compoundAnalysisActions.ActionTypes.SET_PARAMS, buffers.sliding(2))) as TakeableChannel<compoundAnalysisActions.ActionTypes.SET_PARAMS>;
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 157..159

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

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

    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

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

    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

    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

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

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

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

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

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

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

    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

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

type DatasetParamsRawForForm = Omit<DatasetParamsRaw,
    "type"
    | "path"
    | "nav_shape"
    | "sig_shape"> & {
Severity: Major
Found in client/src/dataset/components/RawFileParamsForm.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/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 DatasetParamsBLOForForm = Omit<DatasetParamsBLO,
    "type"
    | "path"
    | "nav_shape"
    | "sig_shape"> & {
Severity: Major
Found in client/src/dataset/components/BLOParamsForm.tsx and 12 other locations - About 35 mins to fix
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
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 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 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

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

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