nukeop/nuclear

View on GitHub

Showing 72 of 246 total issues

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

  renderArtistHeader (artist, history) {
    return (
      <div className={styles.artist_header_overlay}>
        <div className={styles.artist_header_container}>
          <div
Severity: Minor
Found in packages/app/app/components/ArtistView/index.js - About 1 hr to fix

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

      componentDidMount() {
        ipcRenderer.send('started');
        ipcRenderer.send('refresh-localfolders');
        ipcRenderer.on('next', event => onNext(event, this.props.actions));
        ipcRenderer.on('previous', event => onPrevious(event, this.props.actions));
    Severity: Minor
    Found in packages/app/app/containers/IpcContainer/index.js - About 1 hr to fix

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

        renderTrigger (track) {
          const {
            displayCover,
            displayTrackNumber,
            displayArtist,
      Severity: Minor
      Found in packages/app/app/components/TrackRow/index.js - About 1 hr to fix

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

          renderQueueItems() {
            if (!this.props.items) {
              return null;
            }
        
        
        Severity: Minor
        Found in packages/app/app/components/PlayQueue/index.js - About 1 hr to fix

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

            render () {
              let {
                genres
              } = this.props;
          
          
          Severity: Minor
          Found in packages/app/app/components/Dashboard/GenresTab/index.js - About 1 hr to fix

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

              createPopup() {
                const {
                  url,
                  width,
                  height,
            Severity: Minor
            Found in packages/app/app/components/OauthPopup/index.js - About 1 hr to fix

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

              function mapStateToProps(state) {
                const lowercaseFilter = _.lowerCase(state.local.filter);
                const checkFilter = string => _.includes(_.lowerCase(string), lowercaseFilter);
                const unfilteredTracks = _.values(state.local.tracks);
                const filteredTracks = _.filter(unfilteredTracks, track => {
              Severity: Minor
              Found in packages/app/app/containers/LibraryViewContainer/index.js - About 1 hr to fix

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

                  render () {
                    let { player, queue, plugins, equalizer, actions, enableSpectrum } = this.props;
                    let streamUrl = '';
                
                    if (queue.queueItems.length > 0) {
                Severity: Minor
                Found in packages/app/app/containers/SoundContainer/index.js - About 1 hr to fix

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

                    render() {
                      const {
                        actions,
                        queueActions,
                        playerActions,
                  Severity: Minor
                  Found in packages/app/app/containers/AlbumViewContainer/index.js - About 1 hr to fix

                    Function loadUserPlugin has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function loadUserPlugin(path) {
                      return async (dispatch, getState) => {
                        dispatch(loadUserPluginStart(path));
                        try {
                          const api = createApi();
                    Severity: Minor
                    Found in packages/app/app/actions/plugins.js - About 1 hr to fix

                      Function lastFmArtistInfoSearch has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export function lastFmArtistInfoSearch (artist, artistId) {
                        return dispatch => {
                          dispatch(lastFmArtistInfoStart(artistId));
                          Promise.all([
                            lastfm.getArtistInfo(artist),
                      Severity: Minor
                      Found in packages/app/app/actions/index.js - About 1 hr to fix

                        Function equalizerRouter has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export function equalizerRouter() {
                          const router = express.Router();
                        
                          swagger.swaggerize(router);
                        
                        
                        Severity: Minor
                        Found in packages/app/server/http/api/equalizer.js - About 1 hr to fix

                          Function default has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export default function(file, options = {}) {
                            // Handle `options` parameter being optional
                            return new Promise((resolve, reject) => {
                              // Command-line arguments to pass to fpcalc
                              const args = [];
                          Severity: Minor
                          Found in packages/app/server/lib/fpcalc.js - About 1 hr to fix

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

                              panes () {
                                let panes = [
                                  {
                                    menuItem: 'All',
                                    render: () => this.renderAllResultsPane()
                            Severity: Minor
                            Found in packages/app/app/components/SearchResults/index.js - About 1 hr to fix

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

                                renderAlbumInfoBox (album, albumImage) {
                                  return (
                                    <div className={styles.album_info_box}>
                                      <img src={albumImage} />
                                      <div className={styles.album_details}>
                              Severity: Minor
                              Found in packages/app/app/components/AlbumView/index.js - About 1 hr to fix

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

                                module.exports = () => {
                                  const entry = './server/main.dev.js';
                                
                                  return {
                                    entry,
                                Severity: Minor
                                Found in packages/app/webpack.config.electron.js - About 1 hr to fix

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

                                  export default function GithubReducer(state=initialState, action) {
                                    switch (action.type) {
                                    case GITHUB_OAUTH_ACCESS_TOKEN_SUCCESS:
                                      return Object.assign({}, state, {
                                        accessToken: action.payload.accessToken
                                  Severity: Minor
                                  Found in packages/app/app/reducers/github.js - About 1 hr to fix

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

                                    export const setupI18n = () => {
                                      return i18n.use(languageDetector).init({
                                        fallbackLng: 'en',
                                        debug: process.env.NODE_ENV !== 'production',
                                        resources: {
                                    Severity: Minor
                                    Found in packages/app/app/i18n.js - About 1 hr to fix

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

                                            render() {
                                              return (
                                                <div
                                                  style={{
                                                    background: '#282a36',
                                      Severity: Minor
                                      Found in packages/ui/stories/toasts.stories.js - About 1 hr to fix

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

                                          renderOptionsButtons (album) {
                                            return (
                                              <ContextPopup
                                                trigger={
                                                  <a href='#' className={styles.more_button}>
                                        Severity: Minor
                                        Found in packages/app/app/components/AlbumView/index.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language