bokuweb/tsukiakari

View on GitHub

Showing 27 of 103 total issues

File redux-saga_v0.11.x.js has 380 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// flow-typed signature: 1e96cf6769e05579c2d7814fd0704fe4
// flow-typed version: 55e9aa7930/redux-saga_v0.11.x/flow_>=v0.28.x

/* @flow */

Severity: Minor
Found in flow-typed/npm/redux-saga_v0.11.x.js - About 5 hrs to fix

    File tweet-window.js has 284 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* @flow */
    
    import React, { Component } from 'react';
    import Window from 'react-window-component';
    import B from '../lib/bem';
    Severity: Minor
    Found in src/renderer/src/components/tweet-window.js - About 2 hrs to fix

      File tweetitem.js has 268 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      import React, { Component } from 'react';
      import B from '../lib/bem';
      import log from '../lib/log';
      import { decodeHtml } from '../utils/utils';
      import { isEqual } from 'lodash';
      Severity: Minor
      Found in src/renderer/src/components/tweetitem.js - About 2 hrs to fix

        Video has 22 functions (exceeds 20 allowed). Consider refactoring.
        Open

        var Video = React.createClass({
        
            propTypes: {
                // Non-standard props
                copyKeys: React.PropTypes.object,
        Severity: Minor
        Found in src/renderer/stylesheets/components/video/Video.js - About 2 hrs to fix

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

            render(): ?React$Element<*> {
              // eslint-disable-next-line no-undef
              const remain = 140 - twttr.txt.getTweetLength(this.state.status);
              let buttonState;
              if (remain < 0 || remain === 140) buttonState = 'isDisabled';
          Severity: Minor
          Found in src/renderer/src/components/tweet-window.js - About 1 hr to fix

            Function renderTweet has 48 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              renderTweet(tweet, user, text) {
                return (
                  <div className={b('body')}>
                    <div
                      onMouseOver={() => this.setState({ destroyTooltip: false })}
            Severity: Minor
            Found in src/renderer/src/components/tweetitem.js - About 1 hr to fix

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

                render() {
                  const { account, buttonText } = this.props;
                  return (
                    <div className={b()}>
                      <div
              Severity: Minor
              Found in src/renderer/src/components/account-tooltip.js - About 1 hr to fix

                Function watchFilterStreamRequest has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export const watchFilterStreamRequest = () => {
                  // const q = [];
                  let stream;
                
                  ipcMain.on('request-filterstream-connection', (event, account, params) => {
                Severity: Minor
                Found in src/browser/src/filter-stream.js - About 1 hr to fix

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

                    request() {
                      return new Promise((resolve, reject) => {
                        this.twitter.getRequestToken((error, requestToken, requestTokenSecret) => {
                          if (error) {
                            console.log(error);
                  Severity: Minor
                  Found in src/browser/src/auth.js - About 1 hr to fix

                    Function renderImages has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      renderImages(entities) {
                        if (entities.media.length === 1) {
                          return (
                            <div className={b('media')}>
                              {this.renderFirstMedia(entities.media[0].media_url_https, 'single')}
                    Severity: Minor
                    Found in src/renderer/src/components/tweetitem.js - About 1 hr to fix

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

                        render(): ?React$Element<*> {
                          return (
                            <div className={b()}>
                              <div className={b('input-wrapper')}>
                                <i className={`${b('icon', { file: true })} fa fa-camera`} />
                      Severity: Minor
                      Found in src/renderer/src/components/tweet-window-footer.js - About 1 hr to fix

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

                          render() {
                            if (this.props.accountLength === 0) {
                              return <Spinner style={{ padding: '10% 0 0 80px' }} />;
                            }
                            const isBlur = this.props.isLightBoxOpen || this.props.video.isFullscreen;
                        Severity: Minor
                        Found in src/renderer/src/components/tsukiakari.js - About 1 hr to fix

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

                            render() {
                              const { account, removeAccount } = this.props;
                              return (
                                <div
                                  className={b()}
                          Severity: Minor
                          Found in src/renderer/src/components/account.js - About 1 hr to fix

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

                              render() {
                                return (
                                  <div className={b()}>
                                    <div className={b('title-wrapper')}>
                                      <span className={b('title')}>Choose account</span>
                            Severity: Minor
                            Found in src/renderer/src/components/account-selector.js - About 1 hr to fix

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

                              export const watchUserStreamRequest = () => {
                                ipcMain.on('request-userstream-connection', (event, account) => {
                                  const t = new T({
                                    consumer_key: global.consumerKey,
                                    consumer_secret: global.consumerSecret,
                              Severity: Minor
                              Found in src/browser/src/user-stream.js - About 1 hr to fix

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

                                  render(): ?React$Element<*> {
                                    const { loadingStatus, result } = this.props;
                                    if (loadingStatus === 'idle') return null;
                                    if (loadingStatus === 'loading') return <Spinner style={{ marginTop: '90px' }} />;
                                    if (loadingStatus === 'loaded' && result.length === 0) {
                                Severity: Minor
                                Found in src/renderer/src/components/add-column-menu-timeline.js - About 1 hr to fix

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

                                    RECIEVE_TWEET: (state, action) => {
                                      // TODO: refactor
                                      let results;
                                      const { account: { id_str }, tweet, type, q } = action.payload;
                                      const key = type === 'Search' ? `${q}:${type}` : `${id_str}:${type}`;
                                  Severity: Minor
                                  Found in src/renderer/src/reducers/tweets.js - About 1 hr to fix

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

                                      render(): ?React$Element<*> {
                                        return (
                                          <div className={b()}>
                                            <div className={b('title-wrapper')} >
                                              <span className={b('title')}>Search tweets</span>
                                    Severity: Minor
                                    Found in src/renderer/src/components/add-column-search-form.js - About 1 hr to fix

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

                                        render() {
                                          const { tweet } = this.props;
                                          return (
                                            <div className={b()}>
                                              <span className={b('icon-wrapper')}>
                                      Severity: Minor
                                      Found in src/renderer/src/components/tweetitem-footer.js - About 1 hr to fix

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

                                          render() {
                                            const { id, title, icon, subTitle, results } = this.props.column;
                                            return (
                                              <div className={b()}>
                                                <div className={b('wrapper', { title: true })}>
                                        Severity: Minor
                                        Found in src/renderer/src/components/timeline-box.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language