Showing 7 of 53 total issues
Function init
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function() {
/*** Simply return if it's not editor page ***/
if (!$('[data-page="main-editor"]').length > 0) {
return;
}
Function componentDidMount
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentDidMount(){
// preload tags if its edit.
var tag_string = $('[data-behavior="tags"]').data("tags");
//if(tag_string){
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
return (
<div className="notification-container dropdown">
<a className={`dropdown-toggle ${this.state.newNotificationCount > 0 ? 'active' : ''}`}
onClick={() => this.handleMarkAsTouched()}
Function renderButton
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderButton() {
if (window.userSignedIn === false) {
return (
<a href="" className="button green-border-button follow-button" onClick={this.openOverlay}>
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
return (
<div className="add-tag-popover popover bs-popover-top" x-placement="bottom">
<div className="arrow" />
<h3 className="popover-header">
Function render
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
return (
<div className={`user-popover popover ${this.props.position}`} style={this.cssStyles()}>
<div className="po-buffer-top" />
<div className="po-buffer-bottom" />
Function postAutosave
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
postAutosave: function(url, method, title, body, all_tags) {