gerarts/style-provider

View on GitHub

Showing 19 of 20 total issues

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

    purple: {
        shade50: {
            color: '#F3E5F5',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    green: {
        shade50: {
            color: '#E8F5E9',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    red: {
        shade50: {
            color: '#FFEBEE',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    teal: {
        shade50: {
            color: '#E0F2F1',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    lightGreen: {
        shade50: {
            color: '#F1F8E9',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    pink: {
        shade50: {
            color: '#FCE4EC',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    deepPurple: {
        shade50: {
            color: '#EDE7F6',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    cyan: {
        shade50: {
            color: '#E0F7FA',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    indigo: {
        shade50: {
            color: '#E8EAF6',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    orange: {
        shade50: {
            color: '#FFF3E0',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 934..991

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

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

    lightBlue: {
        shade50: {
            color: '#E1F5FE',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    amber: {
        shade50: {
            color: '#FFF8E1',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    lime: {
        shade50: {
            color: '#F9FBE7',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    deepOrange: {
        shade50: {
            color: '#FBE9E7',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933

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

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

    blue: {
        shade50: {
            color: '#E3F2FD',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 760..817
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    yellow: {
        shade50: {
            color: '#FFFDE7',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 15 other locations - About 1 day to fix
lib/materialDesign.ts on lines 64..121
lib/materialDesign.ts on lines 122..179
lib/materialDesign.ts on lines 180..237
lib/materialDesign.ts on lines 238..295
lib/materialDesign.ts on lines 296..353
lib/materialDesign.ts on lines 354..411
lib/materialDesign.ts on lines 412..469
lib/materialDesign.ts on lines 470..527
lib/materialDesign.ts on lines 528..585
lib/materialDesign.ts on lines 586..643
lib/materialDesign.ts on lines 644..701
lib/materialDesign.ts on lines 702..759
lib/materialDesign.ts on lines 818..875
lib/materialDesign.ts on lines 876..933
lib/materialDesign.ts on lines 934..991

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

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

    blueGray: {
        shade50: {
            color: '#ECEFF1',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 2 other locations - About 6 hrs to fix
lib/materialDesign.ts on lines 992..1033
lib/materialDesign.ts on lines 1034..1075

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

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

    brown: {
        shade50: {
            color: '#EFEBE9',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 2 other locations - About 6 hrs to fix
lib/materialDesign.ts on lines 1034..1075
lib/materialDesign.ts on lines 1076..1117

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

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

    gray: {
        shade50: {
            color: '#FAFAFA',
            contrast: 'black',
        },
Severity: Major
Found in lib/materialDesign.ts and 2 other locations - About 6 hrs to fix
lib/materialDesign.ts on lines 992..1033
lib/materialDesign.ts on lines 1076..1117

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

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