huridocs/uwazi

View on GitHub
app/react/Library/components/Doc.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

propType "authorized" is not required, but has no corresponding defaultProps declaration.
Open

  authorized: PropTypes.bool,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "storeKey" is not required, but has no corresponding defaultProps declaration.
Open

  storeKey: PropTypes.string,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Prop type "object" is forbidden
Open

  doc: PropTypes.object,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "additionalText" is not required, but has no corresponding defaultProps declaration.
Open

  additionalText: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "onSnippetClick" is not required, but has no corresponding defaultProps declaration.
Open

  onSnippetClick: PropTypes.func,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Definition for rule 'node/no-restricted-import' was not found.
Open

import React, { Component } from 'react';
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Prop type "object" is forbidden
Open

  searchParams: PropTypes.object,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "searchParams" is not required, but has no corresponding defaultProps declaration.
Open

  searchParams: PropTypes.object,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "onClick" is not required, but has no corresponding defaultProps declaration.
Open

  onClick: PropTypes.func,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "active" is not required, but has no corresponding defaultProps declaration.
Open

  active: PropTypes.bool,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

JSX props should not use .bind()
Open

        onClick={this.onClick.bind(this)}
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Prefer named exports.
Open

export default connect(mapStateToProps)(Doc);
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Do not use Array index in keys
Open

          <div key={index} className="item-connection">
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "className" is not required, but has no corresponding defaultProps declaration.
Open

  className: PropTypes.string,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "deleteConnection" is not required, but has no corresponding defaultProps declaration.
Open

  deleteConnection: PropTypes.func,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

'authorized' PropType is defined but prop is never used
Open

  authorized: PropTypes.bool,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Export statements should appear at the end of the file
Open

export class Doc extends Component {
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

propType "doc" is not required, but has no corresponding defaultProps declaration.
Open

  doc: PropTypes.object,
Severity: Minor
Found in app/react/Library/components/Doc.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status