michelson/dante-stories

View on GitHub

Showing 7 of 53 total issues

Function init has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  init: function() {
    /*** Simply return if it's not editor page ***/
    if (!$('[data-page="main-editor"]').length > 0) {
      return;
    }
Severity: Major
Found in app/assets/javascripts/pages/editor.js - About 2 hrs to fix

    Function componentDidMount has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      componentDidMount(){
        // preload tags if its edit.
        var tag_string = $('[data-behavior="tags"]').data("tags");
        
        //if(tag_string){
    Severity: Minor
    Found in app/javascript/components/NewEditor.js - About 1 hr to fix

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

        render () {
          return (
            <div className="notification-container dropdown">
              <a className={`dropdown-toggle ${this.state.newNotificationCount > 0 ? 'active' : ''}`}
                onClick={() => this.handleMarkAsTouched()}
      Severity: Minor
      Found in app/javascript/components/NotificationsContainer.js - About 1 hr to fix

        Function renderButton has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          renderButton() {
        
            if (window.userSignedIn === false) {
              return (
                <a href="" className="button green-border-button follow-button" onClick={this.openOverlay}>
        Severity: Minor
        Found in app/javascript/components/UserFollowButton.js - About 1 hr to fix

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

            render () {
              return (
                <div className="add-tag-popover popover bs-popover-top" x-placement="bottom">
                  <div className="arrow" />
                  <h3 className="popover-header">
          Severity: Minor
          Found in app/javascript/components/AddTagPopover.js - About 1 hr to fix

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

              render () {
                return (
                  <div className={`user-popover popover ${this.props.position}`} style={this.cssStyles()}>
                    <div className="po-buffer-top" />
                    <div className="po-buffer-bottom" />
            Severity: Minor
            Found in app/javascript/components/UserPopover.js - About 1 hr to fix

              Function postAutosave has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                postAutosave: function(url, method, title, body, all_tags) {
              Severity: Minor
              Found in app/assets/javascripts/pages/editor.js - About 35 mins to fix
                Severity
                Category
                Status
                Source
                Language