johnjones4/InBrief

View on GitHub
src/ui/widgets/Widget.js

Summary

Maintainability
A
3 hrs
Test Coverage

Widget has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

class Widget extends Component {
  constructor (title, name, props) {
    super(props)
    this.name = name
    this.state = {
Severity: Minor
Found in src/ui/widgets/Widget.js - About 2 hrs to fix

    Function render has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      render () {
        return (
          <div className={['widget-wrapper', (this.state.editing ? 'widget-editing' : null)].join(' ')}>
            <div className={this.getMainClassNames().join(' ')}>
              <div className='widget-title'>
    Severity: Minor
    Found in src/ui/widgets/Widget.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status