nukeop/nuclear

View on GitHub

Showing 38 of 138 total issues

File index.js has 323 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import logger from 'electron-timber';
import core from 'nuclear-core';
import _ from 'lodash';
import globals from '../globals';

Severity: Minor
Found in app/actions/index.js - About 3 hrs to fix

    File App.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import React from 'react';
    import FontAwesome from 'react-fontawesome';
    import Sound from 'react-sound';
    import { connect } from 'react-redux';
    import { bindActionCreators } from 'redux';
    Severity: Minor
    Found in app/App.js - About 3 hrs to fix

      Function createWindow has 67 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function createWindow () {
        win = new BrowserWindow({
          width: 1366,
          height: 768,
          frame: !getOption('framelessWindow'),
      Severity: Major
      Found in server/main.dev.js - About 2 hrs to fix

        Function createWindow has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function createWindow() {
          logger.log('Electron is ready, creating a window');
          win = new BrowserWindow({
            width: 1366,
            height: 768,
        Severity: Major
        Found in server/main.dev.linux.js - About 2 hrs to fix

          Function createWindow has 56 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function createWindow() {
            win = new BrowserWindow({
              width: 1366,
              height: 768,
              frame: !getOption('framelessWindow'),
          Severity: Major
          Found in server/main.prod.js - About 2 hrs to fix

            Function createWindow has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function createWindow() {
              win = new BrowserWindow({
                width: 1366,
                height: 768,
                frame: !getOption('framelessWindow'),
            Severity: Minor
            Found in server/main.prod.linux.js - About 2 hrs to fix

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

                render () {
                  let { artist, tracks } = this.props;
              
                  return (
                    <div className={styles.popular_tracks_container}>
              Severity: Minor
              Found in app/components/ArtistView/PopularTracks/index.js - About 1 hr to fix

                Function panes has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  panes () {
                    return [
                      {
                        menuItem: 'Best new music',
                        render: () => (
                Severity: Minor
                Found in app/components/Dashboard/index.js - About 1 hr to fix

                  Function PlayerReducer has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export default function PlayerReducer(state=initialState, action) {
                    switch (action.type) {
                    case START_PLAYBACK:
                      return Object.assign({}, state, {
                        playbackStatus: Sound.status.PLAYING
                  Severity: Minor
                  Found in app/reducers/player.js - About 1 hr to fix

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

                      render () {
                        let {
                          dashboardData,
                          artistInfoSearchByName,
                          history,
                    Severity: Minor
                    Found in app/components/Dashboard/BestNewMusicTab/index.js - About 1 hr to fix

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

                        render() {
                          let {
                            compact,
                            items,
                            settings
                      Severity: Minor
                      Found in app/components/PlayQueue/index.js - About 1 hr to fix

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

                          render() {
                            let {
                              trigger,
                              header,
                              placeholder,
                        Severity: Minor
                        Found in app/components/InputDialog/index.js - About 1 hr to fix

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

                            render() {
                              let {
                                topList,
                                onClick,
                                header
                          Severity: Minor
                          Found in app/components/TagView/TagTopList/index.js - About 1 hr to fix

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

                              render () {
                                let {
                                  data,
                                  artistInfoSearchByName,
                                  albumInfoSearchByName,
                            Severity: Minor
                            Found in app/components/Dashboard/BestNewMusicTab/BestNewList/index.js - About 1 hr to fix

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

                                render () {
                                  return (
                                    <Tab.Pane attached={false}>
                                      <div className={styles.popular_tracks_container}>
                                        <h3>Top Tracks from LastFm.</h3>
                              Severity: Minor
                              Found in app/components/Dashboard/ChartsTab/index.js - About 1 hr to fix

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

                                  render () {
                                    let { tracks } = this.props;
                                    return (
                                      <div className={styles.tag_top_tracks}>
                                        {this.renderAddAllButton()}
                                Severity: Minor
                                Found in app/components/TagView/TagTopTracks/index.js - About 1 hr to fix

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

                                    render () {
                                      let { item } = this.props;
                                  
                                      if (!item) {
                                        return null;

                                    Function SearchReducer has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export default function SearchReducer (state = initialState, action) {
                                      switch (action.type) {
                                        case UNIFIED_SEARCH_START:
                                          return reduceUnifiedSearchStart(state, action);
                                        case ALBUM_SEARCH_SUCCESS:
                                    Severity: Minor
                                    Found in app/reducers/search.js - About 1 hr to fix

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

                                        render() {
                                          let {
                                            actions,
                                            plugins,
                                            defaultMusicSource
                                      Severity: Minor
                                      Found in app/components/PluginsView/index.js - About 1 hr to fix

                                        Function exports has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        module.exports = env => {
                                          let entry = env && env.LINUX ? './server/main.prod.linux.js' : './server/main.prod.js';
                                        
                                          return {
                                            entry: entry,
                                        Severity: Minor
                                        Found in webpack.config.electron.prod.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language