nukeop/nuclear

View on GitHub

Showing 64 of 209 total issues

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

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

    Function TrackPopupContainer has 95 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const TrackPopupContainer = props => {
      const {
        trigger,
        track,
        artist,
    Severity: Major
    Found in app/containers/TrackPopupContainer/index.js - About 3 hrs to fix

      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

        Function playerRouter has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function playerRouter() {
        
          const router = express.Router();
          
          swagger.swaggerize(router);
        Severity: Major
        Found in server/http/api/player.js - About 3 hrs to fix

          Function initSwagger has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function initSwagger(app) {
            swagger.reset();
            swagger.initialise(app, {
              title: 'Nuclear REST API',
              description: 'This Api allow you to remotly control nuclear desktop app',
          Severity: Major
          Found in server/http/lib/swagger.js - About 3 hrs to fix

            Function createWindow has 76 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 3 hrs to fix

              Function createWindow has 70 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

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

                import React from 'react';
                import PropTypes from 'prop-types';
                import { Button, Input, Radio, Segment } from 'semantic-ui-react';
                import Range from 'react-range-progress';
                import cx from 'classnames';
                Severity: Minor
                Found in app/components/Settings/index.js - About 2 hrs to fix

                  Function createWindow has 65 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 swaggerRouter has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function swaggerRouter() {
                      const router = express.Router();
                    
                      router.get('/swagger.json', (req, res) => {
                        res.json(swagger.json());
                    Severity: Major
                    Found in server/http/api/swagger.js - About 2 hrs to fix

                      Function createWindow has 59 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.linux.js - About 2 hrs to fix

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

                          panes () {
                            const {
                              actions,
                              dashboardData,
                              history,
                        Severity: Major
                        Found in app/components/Dashboard/index.js - About 2 hrs to fix

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

                          function initStore () {
                            if (!store.get('lastFm')) {
                              store.set('lastFm', {});
                            }
                          
                          
                          Severity: Major
                          Found in app/persistence/store.js - About 2 hrs to fix

                            Function QueueMenuMore has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            const QueueMenuMore = props => {
                              const {
                                clearQueue,
                                savePlaylistDialog,
                                addFavoriteTrack,
                            Severity: Major
                            Found in app/components/PlayQueue/QueueMenu/QueueMenuMore/index.js - About 2 hrs to fix

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

                              export function playlistRouter() {
                              
                                const router = express.Router();
                                
                                swagger.swaggerize(router);
                              Severity: Minor
                              Found in server/http/api/playlist.js - About 2 hrs to fix

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

                                function getChartOptions(data) {
                                  return {
                                    type: 'line',
                                    data,
                                    options: {
                                Severity: Minor
                                Found in app/components/Equalizer/chart.js - About 2 hrs to fix

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

                                  export function settingsRouter() {
                                  
                                    const router = express.Router();
                                  
                                    swagger.swaggerize(router);
                                  Severity: Minor
                                  Found in server/http/api/settings.js - About 2 hrs to fix

                                    Function BestNewMusicContent has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    const BestNewMusicContent = props => {
                                      const {
                                        item,
                                        albumInfoSearchByName,
                                        artistInfoSearchByName,

                                      Function render has 49 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 renderSidebarMenu has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          renderSidebarMenu (settings, toggleOption) {
                                            return (
                                              <VerticalPanel
                                                className={classnames(styles.left_panel, {
                                                  [`${compact.compact_panel}`]: settings.compactMenuBar
                                        Severity: Minor
                                        Found in app/App.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language