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;
`
- Read upRead up
- Create a ticketCreate a ticket
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
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
Library semantic-release
contains unrecogonized licenses: MIT License 2015.0
Open
semantic-release@^15.13.3:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
Library jsonify
contains unrecogonized licenses: Public domain
Open
jsonify@~0.0.0:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
Library ua-parser-js
is licensed under a non-compliant license: GNU General Public License 2.0
Open
ua-parser-js@^0.7.18:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks
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:
- Create a ticketCreate a ticket
- Exclude checks