Showing 64 of 270 total issues
Function render
has 363 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="newsLinks">
<font></font>
File index.js
has 601 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component } from "react";
import { AppFooter, AppHeader } from "../App";
import config from "../../../config";
import "./index.scss";
import { Link } from "react-router-dom";
Function render
has 161 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { onEnd, autoplay } = this.props;
let loading = this.state.loading;
let transcripts = this.state.transcript;
Function render
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function render
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
let imgUrl;
let label;
let text;
const url = this.props.url;
Function LessonList
has 142 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function LessonList() {
return (
<div className="app-container">
<nav className="navbar navbar-inverse bg-black">
<a className="lessonlinks " href="/lessons#k-2">
Function render
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { autoplay, onEnd } = this.state;
if (this.state.loading) {
return (
<div className="text-center lead">
Function render
has 129 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="dashboard-container">
<div
className="container-fluid"
File index.js
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import "./index.scss";
import React, { Component } from "react";
export class InTheNewsComponent extends Component {
render() {
Function render
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const mission = this.props.match.params.mission;
const {data, playNextOrPreviousActivate, playingChannels, nextBlockIndex, nextNuggetIndex, currentBlockIndex,
currentNuggetIndex, tapeId, minBlock, maxBlock} = this.state;
return (
Function render
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<nav className="navbar navbar-brand navbar-expand-lg navbar-dark navbar-bg-dark">
<button
className="navbar-toggler"
Function render
has 107 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { data, containerWidth } = this.props;
//Don't render diagram without data
if (
Function d3ChordDiagram
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function checkDay
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkDay() {
var mstart;
var mend;
const day = this.props.missionDay;
Function render
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.props.loading) {
return (
<div className="text-center lead">
<p>Loading Stories...</p>
File index.js
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
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";
Channels
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export class Channels extends Component {
constructor(props) {
super(props);
this.state = {
channelsLoaded: false,
Function render
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {data, containerWidth} = this.props;
//Don't render diagram without data
if(data.series.every(datum => {return datum.value.size < 1;})) {
Function render
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const url = "/apollo8/";
return (
<div className="app-container">
<AppHeader />
Function render
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
return (
<div className="app-container">
<AppHeader />