GregBrimble/gregbrimble-components

View on GitHub

Showing 38 of 39 total issues

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

export const Subtitle = styled.h6`
  color: ${props => props.theme.neutral[`900`]};
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
`
Severity: Minor
Found in src/components/Typography/Subtitles/shared.js and 2 other locations - About 40 mins to fix
src/components/Typography/Bodies/shared.js on lines 5..9
src/components/Typography/Headlines/shared.js on lines 4..8

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

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

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

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

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

Refactorings

Further Reading

No licenses found for node-version. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

node-version@^1.0.0:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for path. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

path@^0.12.7:
Severity: Minor
Found in yarn.lock by git-legal

Library semantic-release contains unrecogonized licenses: MIT License 2015.0
Open

semantic-release@^15.13.3:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for util. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

util@0.10.3:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for enhanced-resolve. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

enhanced-resolve@^4.1.0:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for jest-util. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

jest-util@^24.5.0, jest-util@^24.7.1:
Severity: Minor
Found in yarn.lock by git-legal

Library jsonify contains unrecogonized licenses: Public domain
Open

jsonify@~0.0.0:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for defs. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

defs@~1.1.0:
Severity: Minor
Found in yarn.lock by git-legal

Library ua-parser-js is licensed under a non-compliant license: GNU General Public License 2.0
Open

ua-parser-js@^0.7.18:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for url. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

url@^0.11.0:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for editorconfig. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

editorconfig@^0.15.2:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for util. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

util@0.10.3:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for makeerror. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

makeerror@1.0.x:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for util. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

util@0.10.3:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for ejs. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

ejs@^2.6.1:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for jest-get-type. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

jest-get-type@^24.3.0:
Severity: Minor
Found in yarn.lock by git-legal

No licenses found for tmp. Either the library reports the licenses in an unsupported format, or the library is unlicensed.
Open

tmp@^0.0.33:
Severity: Minor
Found in yarn.lock by git-legal
Severity
Category
Status
Source
Language