Coursemology/coursemology2

View on GitHub
client/app/bundles/course/video/submission/containers/Charts/ProgressGraph.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

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

  renderPlot() {
    const displayData = this.computeData(this.state.selectedSessionId);
    if (!displayData) {
      return <Scatter />;
    }

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

  renderDropDown() {
    const sessionKeys = Object.keys(this.props.sessions);
    const items = sessionKeys.map((key) => {
      const session = this.props.sessions[key];
      const startTime = new Date(session.sessionStart);

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

  generateToolTipOptions() {
    return {
      tooltip: {
        displayColors: false,
        bodyFont: {

There are no issues that match your filters.

Category
Status