ibrahimbutt/synthcal

View on GitHub

Showing 2 of 2 total issues

File button.js has 254 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React from "react";
import styled from "styled-components";
import Hotkeys from "react-hot-keys";

class Button extends React.Component {
Severity: Minor
Found in src/components/Buttons/button.js - About 2 hrs to fix

Function componentWillMount has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  componentWillMount() {
    const content = this.props.content;
    let hotkey;

    if (!isNaN(content)) {
Severity: Minor
Found in src/components/Buttons/button.js - About 1 hr to fix
Severity
Category
Status
Source
Language