basantech89/awesome-ui

View on GitHub

Showing 49 of 49 total issues

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

  gray: {
    50: '#fafafa',
    100: '#f4f4f5',
    200: '#e4e4e7',
    300: '#d4d4d8',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  flamingo: {
    50: '#fdf2f8',
    100: '#fce7f3',
    200: '#fbcfe8',
    300: '#f9a8d4',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  blue: {
    50: '#eff6ff',
    100: '#dbeafe',
    200: '#bfdbfe',
    300: '#93c5fd',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  strawberry: {
    50: '#fef2f2',
    100: '#fee2e2',
    200: '#fecaca',
    300: '#fca5a5',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  violet: {
    50: '#f5f3ff',
    100: '#ede9fe',
    200: '#ddd6fe',
    300: '#c4b5fd',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  cyan: {
    50: '#ecfeff',
    100: '#cffafe',
    200: '#a5f3fc',
    300: '#67e8f9',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  everGreen: {
    50: '#f0fdf4',
    100: '#dcfce7',
    200: '#bbf7d0',
    300: '#86efac',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  rose: {
    50: '#fff1f2',
    100: '#ffe4e6',
    200: '#fecdd3',
    300: '#fda4af',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  candy: {
    50: '#fefce8',
    100: '#fef9c3',
    200: '#fef08a',
    300: '#fde047',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  coolGray: {
    50: '#f9fafb',
    100: '#f3f4f6',
    200: '#e5e7eb',
    300: '#d1d5db',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 96..107
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

  indigo: {
    50: '#eef2ff',
    100: '#e0e7ff',
    200: '#c7d2fe',
    300: '#a5b4fc',
Severity: Major
Found in src/shared/theme/themeEngine/colors.ts and 22 other locations - About 1 hr to fix
src/shared/theme/themeEngine/colors.ts on lines 24..35
src/shared/theme/themeEngine/colors.ts on lines 36..47
src/shared/theme/themeEngine/colors.ts on lines 48..59
src/shared/theme/themeEngine/colors.ts on lines 60..71
src/shared/theme/themeEngine/colors.ts on lines 72..83
src/shared/theme/themeEngine/colors.ts on lines 84..95
src/shared/theme/themeEngine/colors.ts on lines 108..119
src/shared/theme/themeEngine/colors.ts on lines 120..131
src/shared/theme/themeEngine/colors.ts on lines 132..143
src/shared/theme/themeEngine/colors.ts on lines 144..155
src/shared/theme/themeEngine/colors.ts on lines 156..167
src/shared/theme/themeEngine/colors.ts on lines 168..179
src/shared/theme/themeEngine/colors.ts on lines 180..191
src/shared/theme/themeEngine/colors.ts on lines 192..203
src/shared/theme/themeEngine/colors.ts on lines 204..215
src/shared/theme/themeEngine/colors.ts on lines 216..227
src/shared/theme/themeEngine/colors.ts on lines 228..239
src/shared/theme/themeEngine/colors.ts on lines 240..251
src/shared/theme/themeEngine/colors.ts on lines 252..263
src/shared/theme/themeEngine/colors.ts on lines 264..275
src/shared/theme/themeEngine/colors.ts on lines 276..287
src/shared/theme/themeEngine/colors.ts on lines 288..299

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

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

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

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

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

Refactorings

Further Reading

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

  const {
    primary,
    secondary,
    tertiary,
    info,
Severity: Minor
Found in src/shared/theme/themeEngine/createPalette.ts and 1 other location - About 50 mins to fix
src/shared/theme/themeEngine/createTypography.ts on lines 37..47

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

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

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

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

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

Refactorings

Further Reading

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

  const {
    fontFamily,
    fontWeightLight,
    fontWeightRegular,
    fontWeightMedium,
Severity: Minor
Found in src/shared/theme/themeEngine/createTypography.ts and 1 other location - About 50 mins to fix
src/shared/theme/themeEngine/createPalette.ts on lines 51..61

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

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

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

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

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

Refactorings

Further Reading

Function AwesomeButton has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

const AwesomeButton: React.ForwardRefRenderFunction<HTMLButtonElement, ButtonProps> = (
  props,
  ref
) => {
  const theme = useTheme()
Severity: Minor
Found in src/components/form/button/index.tsx - About 45 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

      {(loading && spinnerPlacement === 'left' && spinner) ?? (
        <Spinner className={cx(spinnerClassName)} color={spinnerColor} size={spinnerSize} />
      )}
Severity: Minor
Found in src/components/form/button/index.tsx and 1 other location - About 45 mins to fix
src/components/form/button/index.tsx on lines 95..97

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

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

      {!loading && icon && iconPlacement === 'left' && (
        <ButtonIcon spacing={iconSpacing} placement={iconPlacement}>
          {icon}
        </ButtonIcon>
      )}
Severity: Minor
Found in src/components/form/button/index.tsx and 1 other location - About 45 mins to fix
src/components/form/button/index.tsx on lines 99..103

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

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

Avoid deeply nested control flow statements.
Open

        if (gapX) {
          styles = { ...styles, columnGap: getSpacing(gapX) }
        }
Severity: Major
Found in src/utils/theme.ts - About 45 mins to fix

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

          {!loading && icon && iconPlacement === 'right' && (
            <ButtonIcon spacing={iconSpacing} placement={iconPlacement}>
              {icon}
            </ButtonIcon>
          )}
    Severity: Minor
    Found in src/components/form/button/index.tsx and 1 other location - About 45 mins to fix
    src/components/form/button/index.tsx on lines 83..87

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

    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

    Avoid deeply nested control flow statements.
    Open

            if (gapY) {
              styles = { ...styles, rowGap: getSpacing(gapY) }
            }
    Severity: Major
    Found in src/utils/theme.ts - About 45 mins to fix

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

            {(loading && spinnerPlacement === 'right' && spinner) ?? (
              <Spinner className={cx(spinnerClassName)} color={spinnerColor} size={spinnerSize} />
            )}
      Severity: Minor
      Found in src/components/form/button/index.tsx and 1 other location - About 45 mins to fix
      src/components/form/button/index.tsx on lines 89..91

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

      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