UTD-CRSS/app.exploreapollo.org

View on GitHub

Showing 64 of 270 total issues

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

  render() {
    return (
      <div className="newsLinks">
        <font></font>

Severity: Major
Found in src/components/InTheNewsComponent/index.js - About 1 day to fix

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

    import React, { Component } from "react";
    import { AppFooter, AppHeader } from "../App";
    import config from "../../../config";
    import "./index.scss";
    import { Link } from "react-router-dom";
    Severity: Major
    Found in src/containers/Channels/index.js - About 1 day to fix

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

        render() {
          const { onEnd, autoplay } = this.props;
      
          let loading = this.state.loading;
          let transcripts = this.state.transcript;
      Severity: Major
      Found in src/containers/MomentViewer/index.js - About 6 hrs to fix

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

          render() {
            const mission = this.props.match.params.mission;
            const {tapesLoaded, channelsLoaded, selectedChannels, filteredChannels, blockIndex,
            nuggetIndex, tapes, selectedTape, channels, allChannelsLoaded} = this.state;
            const disabled = selectedChannels.length > 0 ? false : true;
        Severity: Major
        Found in src/containers/Channels/index.js - About 6 hrs to fix

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

            render() {
              let imgUrl;
              let label;
              let text;
              const url = this.props.url;
          Severity: Major
          Found in src/components/DayDisplay/index.js - About 5 hrs to fix

            Function LessonList has 142 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export function LessonList() {
              return (
                <div className="app-container">
                  <nav className="navbar navbar-inverse bg-black">
                    <a className="lessonlinks " href="/lessons#k-2">
            Severity: Major
            Found in src/components/LessonList/index.js - About 5 hrs to fix

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

                render() {
                  const { autoplay, onEnd } = this.state;
                  if (this.state.loading) {
                    return (
                      <div className="text-center lead">
              Severity: Major
              Found in src/containers/DJ/index.js - About 5 hrs to fix

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

                  render() {
                    return (
                      <div className="dashboard-container">
                        <div
                          className="container-fluid"
                Severity: Major
                Found in src/containers/Dashboard/index.js - About 5 hrs to fix

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

                  import "./index.scss";
                  import React, { Component } from "react";
                  
                  export class InTheNewsComponent extends Component {
                    render() {
                  Severity: Minor
                  Found in src/components/InTheNewsComponent/index.js - About 4 hrs to fix

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

                      render() {
                        const mission = this.props.match.params.mission;
                        const {data, playNextOrPreviousActivate, playingChannels, nextBlockIndex, nextNuggetIndex, currentBlockIndex,
                        currentNuggetIndex, tapeId, minBlock, maxBlock} = this.state;
                        return (
                    Severity: Major
                    Found in src/containers/ChannelViewer/index.js - About 4 hrs to fix

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

                        render() {
                          return (
                            <nav className="navbar navbar-brand navbar-expand-lg navbar-dark navbar-bg-dark">
                              <button
                                className="navbar-toggler"
                      Severity: Major
                      Found in src/containers/App/index.js - About 4 hrs to fix

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

                          render() {
                            const { data, containerWidth } = this.props;
                        
                            //Don't render diagram without data
                            if (
                        Severity: Major
                        Found in src/components/LineDiagram/index.js - About 4 hrs to fix

                          Function d3ChordDiagram has 101 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export default curry(function d3ChordDiagram(speakers, interactions, node) {
                            //FIXME should be the innerwidth of the tab container, not the entire window
                            var width = window.innerWidth / 2;
                            var height = width;
                            var innerRadius = Math.min(width, height) * 0.4;
                          Severity: Major
                          Found in src/components/ChordDiagram/d3ChordDiagram.js - About 4 hrs to fix

                            Function checkDay has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              checkDay() {
                                var mstart;
                                var mend;
                                const day = this.props.missionDay;
                            
                            
                            Severity: Major
                            Found in src/components/Apollo11StoryTimeline/index.js - About 3 hrs to fix

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

                                render() {
                                  if (this.props.loading) {
                                    return (
                                      <div className="text-center lead">
                                        <p>Loading Stories...</p>
                              Severity: Major
                              Found in src/containers/Apollo11Explorer/index.js - About 3 hrs to fix

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

                                import React, { Component } from "react";
                                import ReactDOM from "react-dom";
                                import Spinner from "react-spinner";
                                import { Tab, Tabs, TabList, TabPanel } from "react-tabs";
                                import config from "../../../config";
                                Severity: Minor
                                Found in src/containers/MomentViewer/index.js - About 3 hrs to fix

                                  Channels has 27 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  export class Channels extends Component {
                                    constructor(props) {
                                      super(props);
                                      this.state = {
                                        channelsLoaded: false,
                                  Severity: Minor
                                  Found in src/containers/Channels/index.js - About 3 hrs to fix

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

                                      render() {
                                        const {data, containerWidth} = this.props;
                                    
                                        //Don't render diagram without data
                                        if(data.series.every(datum => {return datum.value.size < 1;})) {
                                    Severity: Major
                                    Found in src/components/DashboardDiagram/index.js - About 3 hrs to fix

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

                                        render() {
                                          const url = "/apollo8/";
                                          return (
                                            <div className="app-container"> 
                                              <AppHeader />
                                      Severity: Major
                                      Found in src/containers/Apollo8Explorer/index.js - About 3 hrs to fix

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

                                          render() {
                                            return (
                                              <div className="app-container">
                                                <AppHeader />
                                        
                                        
                                        Severity: Major
                                        Found in src/containers/Apollo13Explorer/index.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language