LiberTEM/LiberTEM

View on GitHub

Showing 220 of 903 total issues

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

                    {driveOptions.map((option) =>
                        <PathDropDownItem key={option.key} value={option.key} content={option.text} onChange={onChange} />
                    )}
Severity: Major
Found in client/src/browser/components/PathBar.tsx and 2 other locations - About 1 hr to fix
client/src/browser/components/PathBar.tsx on lines 58..60
client/src/browser/components/PathBar.tsx on lines 65..67

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

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

        out[i * 4 + 3] = inp[i * 4 + 0]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 4 + 0] = inp[i * 4 + 3]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 2 + 0] = inp[i * 2 + 1]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 6] = inp[i * 8 + 1]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 5] = inp[i * 8 + 2]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 2 + 1] = inp[i * 2 + 0]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 4 + 1] = inp[i * 4 + 2]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 3] = inp[i * 8 + 4]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 4] = inp[i * 8 + 3]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 0] = inp[i * 8 + 7]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50

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

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

        out[i * 8 + 7] = inp[i * 8 + 0]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 2] = inp[i * 8 + 5]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 8 + 1] = inp[i * 8 + 6]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 26..26
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

        out[i * 4 + 2] = inp[i * 4 + 1]
Severity: Major
Found in src/libertem/io/dataset/base/decode.py and 13 other locations - About 1 hr to fix
src/libertem/io/dataset/base/decode.py on lines 10..10
src/libertem/io/dataset/base/decode.py on lines 11..11
src/libertem/io/dataset/base/decode.py on lines 25..25
src/libertem/io/dataset/base/decode.py on lines 27..27
src/libertem/io/dataset/base/decode.py on lines 28..28
src/libertem/io/dataset/base/decode.py on lines 44..44
src/libertem/io/dataset/base/decode.py on lines 45..45
src/libertem/io/dataset/base/decode.py on lines 46..46
src/libertem/io/dataset/base/decode.py on lines 47..47
src/libertem/io/dataset/base/decode.py on lines 48..48
src/libertem/io/dataset/base/decode.py on lines 49..49
src/libertem/io/dataset/base/decode.py on lines 50..50
src/libertem/io/dataset/base/decode.py on lines 51..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 41.

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

    useRoiPicker({
        enabled: frameMode === DefaultModes.SUM && doAutoStart,
        scanWidth, scanHeight,
        analysisIndex: 0,
        compoundAnalysisId,
Severity: Major
Found in client/src/compoundAnalysis/components/DefaultFrameView.tsx and 1 other location - About 1 hr to fix
client/src/compoundAnalysis/components/DefaultFrameView.tsx on lines 124..131

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

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

    useRoiPicker({
        enabled: frameMode === DefaultModes.SD && doAutoStart,
        scanWidth, scanHeight,
        analysisIndex: 0,
        compoundAnalysisId,
Severity: Major
Found in client/src/compoundAnalysis/components/DefaultFrameView.tsx and 1 other location - About 1 hr to fix
client/src/compoundAnalysis/components/DefaultFrameView.tsx on lines 133..140

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

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

        for (const oldJobId of jobs) {
            const job = (yield select(selectJob, oldJobId)) as JobState;
            if (job && job.running !== JobRunning.DONE) {
                // wait until the job is cancelled:
                yield call(cancelJob, oldJobId);
Severity: Major
Found in client/src/compoundAnalysis/sagas.ts and 1 other location - About 1 hr to fix
client/src/compoundAnalysis/sagas.ts on lines 199..205

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

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

    for (const oldJobId of analysis.jobs) {
        const job = (yield select(selectJob, oldJobId)) as JobState;
        if (job && job.running !== JobRunning.DONE) {
            // wait until the job is cancelled:
            yield call(cancelJob, oldJobId);
Severity: Major
Found in client/src/compoundAnalysis/sagas.ts and 1 other location - About 1 hr to fix
client/src/compoundAnalysis/sagas.ts on lines 98..104

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

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

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

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

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

Refactorings

Further Reading

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

        <Header as='h3' attached="top">
            <Icon name="cog" />
            <Header.Content>{title}</Header.Content>
        </Header>
client/src/compoundAnalysis/components/layouts/AnalysisLayoutTwoCol.tsx on lines 22..25
client/src/compoundAnalysis/components/layouts/AnalysisLayoutTwoRes.tsx on lines 25..28

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

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