experteer/blobsterix

View on GitHub

Showing 17 of 43 total issues

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

    ['image/x-portable-graymap', [[0, 'P2', [[2, "\n"], [2, ' '], [2, "\t"], [2, "\r"]]], [0, 'P5', [[2, "\n"], [2, ' '], [2, "\t"], [2, "\r"]]]]],
Severity: Minor
Found in lib/blobsterix/mimemagic/tables.rb and 2 other locations - About 35 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1660..1660
lib/blobsterix/mimemagic/tables.rb on lines 1662..1662

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

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

    ['image/x-portable-bitmap', [[0, 'P1', [[2, "\n"], [2, ' '], [2, "\t"], [2, "\r"]]], [0, 'P4', [[2, "\n"], [2, ' '], [2, "\t"], [2, "\r"]]]]],
Severity: Minor
Found in lib/blobsterix/mimemagic/tables.rb and 2 other locations - About 35 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1661..1661
lib/blobsterix/mimemagic/tables.rb on lines 1662..1662

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

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

    ['image/x-portable-pixmap', [[0, 'P3', [[2, "\n"], [2, ' '], [2, "\t"], [2, "\r"]]], [0, 'P6', [[2, "\n"], [2, ' '], [2, "\t"], [2, "\r"]]]]],
Severity: Minor
Found in lib/blobsterix/mimemagic/tables.rb and 2 other locations - About 35 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1660..1660
lib/blobsterix/mimemagic/tables.rb on lines 1661..1661

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

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

    ['text/x-python', [[0, '#!/bin/python'], [0, '#! /bin/python'], [0, "eval \"exec /bin/python"], [0, '#!/usr/bin/python'], [0, '#! /usr/bin/python'], [0, "eval \"exec /usr/bin/python"], [0, '#!/usr/local/bin/python'], [0, '#! /usr/local/bin/python'], [0, "eval \"exec /usr/local/bin/python"], [1..16, '/bin/env python']]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 3 other locations - About 30 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1500..1500
lib/blobsterix/mimemagic/tables.rb on lines 1675..1675
lib/blobsterix/mimemagic/tables.rb on lines 1703..1703

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

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

    ['application/x-awk', [[0, '#!/bin/gawk'], [0, '#! /bin/gawk'], [0, '#!/usr/bin/gawk'], [0, '#! /usr/bin/gawk'], [0, '#!/usr/local/bin/gawk'], [0, '#! /usr/local/bin/gawk'], [0, '#!/bin/awk'], [0, '#! /bin/awk'], [0, '#!/usr/bin/awk'], [0, '#! /usr/bin/awk']]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 3 other locations - About 30 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1675..1675
lib/blobsterix/mimemagic/tables.rb on lines 1703..1703
lib/blobsterix/mimemagic/tables.rb on lines 1704..1704

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

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

    ['message/rfc822', [[0, '#! rnews'], [0, 'Forward to'], [0, 'From:'], [0, 'N#! rnews'], [0, 'Pipe to'], [0, 'Received:'], [0, 'Relay-Version:'], [0, 'Return-Path:'], [0, 'Return-path:'], [0, 'Subject: ']]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 3 other locations - About 30 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1500..1500
lib/blobsterix/mimemagic/tables.rb on lines 1703..1703
lib/blobsterix/mimemagic/tables.rb on lines 1704..1704

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

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

    ['text/x-patch', [[0, "diff\t"], [0, 'diff '], [0, "***\t"], [0, '*** '], [0, '=== '], [0, '--- '], [0, "Only in\t"], [0, 'Only in '], [0, 'Common subdirectories: '], [0, 'Index:']]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 3 other locations - About 30 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1500..1500
lib/blobsterix/mimemagic/tables.rb on lines 1675..1675
lib/blobsterix/mimemagic/tables.rb on lines 1704..1704

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

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

    ['application/x-kchart', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kchart\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kchart']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-kformula', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kformula\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kformula']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-object', [[0, "\177ELF", [[5, "\001", [[16, "\001\000"]]]]], [0, "\177ELF", [[5, "\002", [[16, "\000\001"]]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438

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

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

    ['application/x-kivio', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kivio\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kivio']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-kontour', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kontour\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kontour']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-karbon', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-karbon\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-karbon']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-kpresenter', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kpresenter\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kpresenter']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-krita', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-krita\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-krita']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-kspread', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kspread\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kspread']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1438..1438
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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

    ['application/x-kword', [[0, "\037\213", [[10, 'KOffice', [[18, "application/x-kword\004\006"]]]]], [0, "PK\003\004", [[30, 'mimetype', [[38, 'application/x-kword']]]]]]],
Severity: Major
Found in lib/blobsterix/mimemagic/tables.rb and 9 other locations - About 15 mins to fix
lib/blobsterix/mimemagic/tables.rb on lines 1429..1429
lib/blobsterix/mimemagic/tables.rb on lines 1430..1430
lib/blobsterix/mimemagic/tables.rb on lines 1431..1431
lib/blobsterix/mimemagic/tables.rb on lines 1433..1433
lib/blobsterix/mimemagic/tables.rb on lines 1434..1434
lib/blobsterix/mimemagic/tables.rb on lines 1435..1435
lib/blobsterix/mimemagic/tables.rb on lines 1436..1436
lib/blobsterix/mimemagic/tables.rb on lines 1437..1437
lib/blobsterix/mimemagic/tables.rb on lines 1566..1566

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

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