fission-suite/ipfs-user-settings

View on GitHub

Showing 4 of 10 total issues

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

  render() {
    const { preferences, justSaved, saving, justLoaded, classes } = this.props;

    return (
      <Paper className={classes.root}>
Severity: Major
Found in src/components/PreferenceForm.js - About 3 hrs to fix

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

      render() {
        const { preferences = {}, classes } = this.props;
        const theme = this.getTheme(preferences);
        const isDark = preferences.theme === "dark";
    
    
    Severity: Major
    Found in src/components/Preview.js - About 2 hrs to fix

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

        render() {
          const { classes } = this.props;
          return (
            <Container className={classes.container}>
              <Typography variant="h4">
      Severity: Minor
      Found in src/components/Main.js - About 1 hr to fix

        Function ErrorSnackbar has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const ErrorSnackbar = props => {
          const { classes } = props;
          return (
            <Snackbar
              anchorOrigin={{
        Severity: Minor
        Found in src/components/ErrorSnackbar.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language