nukeop/nuclear

View on GitHub

Showing 79 of 244 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 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 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 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 constructor has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            constructor(
              @inject(Config) private config: Config,
              @inject($mainLogger) private logger: Logger,
              @inject($ipcLogger) private ipcLogger: Logger,
              @inject(Platform) private platform: Platform,
          Severity: Minor
          Found in packages/main/src/services/window/index.ts - About 1 hr to fix

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

            const Toast = props => {
              return (
                <div
                  className={cx(
                    common.nuclear,
            Severity: Minor
            Found in packages/ui/lib/components/ToastContainer/Toast/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 equalizerRouter has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export function equalizerRouter(store: Store, rendererWindow: BrowserWindow['webContents']): ISwaggerizedRouter {
                  const router = express.Router() as ISwaggerizedRouter;
                
                  swagger.swaggerize(router);
                
                
                Severity: Minor
                Found in packages/main/src/services/http/server/api/equalizer.ts - 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 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 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 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 generateMdFile has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export const generateMdFile = (data: Record<string, Record<string, string[]>>) => {
                            const stream = fs.createWriteStream(FILE_PATH, {
                              encoding: 'utf-8'
                            });
                          
                          
                          Severity: Minor
                          Found in packages/i18n/scripts/helpers/md.ts - 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 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

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

                                  export default function QueueReducer(state = initialState, action) {
                                    switch (action.type) {
                                    case ADD_TO_QUEUE:
                                      return reduceAddToQueue(state, action);
                                    case REMOVE_FROM_QUEUE:
                                  Severity: Minor
                                  Found in packages/app/app/reducers/queue.js - About 1 hr to fix

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

                                      render() {
                                        const {
                                          favorites,
                                          favoritesActions,
                                          searchActions,
                                    Severity: Minor
                                    Found in packages/app/app/containers/FavoritesContainer/index.js - About 1 hr to fix

                                      Function listen has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        listen(): Server {
                                          const port = this.store.getOption('api.port');
                                          const app = express();
                                      
                                          initSwagger(app);
                                      Severity: Minor
                                      Found in packages/main/src/services/http/index.ts - About 1 hr to fix

                                        Function EqualizerViewContainer has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        const EqualizerViewContainer = () => {
                                          const equalizer = useSelector(state => state.equalizer);
                                          const preset = equalizer.presets[equalizer.selected];
                                          const dispatch = useDispatch();
                                          const actions = useMemo(() => bindActionCreators(EqualizerActions, dispatch), [dispatch]);
                                        Severity: Minor
                                        Found in packages/app/app/containers/EqualizerViewContainer/index.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language