adam-26/react-html-metadata

View on GitHub
src/HtmlTag.js

Summary

Maintainability
A
0 mins
Test Coverage

Showing 0 of 3 total issues

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

function getHtmlAttrs(props) {
if (props.htmlAttributes) {
return props.htmlAttributes;
}
 
 
Severity: Major
Found in src/HtmlTag.js and 1 other location - About 1 hr to fix
src/BodyTag.js on lines 5..15

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

static propTypes = {
htmlAttributes: PropTypes.object,
children: PropTypes.oneOfType([
PropTypes.node,
PropTypes.arrayOf(PropTypes.node)
Severity: Minor
Found in src/HtmlTag.js and 1 other location - About 50 mins to fix
src/BodyTag.js on lines 18..24

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

render() {
const htmlAttributes = getHtmlAttrs(this.props);
return <html {...htmlAttributes}>{this.props.children}</html>;
}
Severity: Minor
Found in src/HtmlTag.js and 1 other location - About 45 mins to fix
src/BodyTag.js on lines 26..29

There are no issues that match your filters.

Category
Status