justinformentin/lstner

View on GitHub
imports/ui/components/AudioPlayer.js

Summary

Maintainability
D
1 day
Test Coverage

File AudioPlayer.js has 582 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React, { Component } from "react";
import { Meteor } from "meteor/meteor";
import { withTracker } from "meteor/react-meteor-data";
import { Link } from "react-router-dom";
import moment from "moment";
Severity: Major
Found in imports/ui/components/AudioPlayer.js - About 1 day to fix

    AudioPlayer has 29 functions (exceeds 20 allowed). Consider refactoring.
    Open

    export class AudioPlayer extends Component {
      constructor(props) {
        super(props);
    
        this.player = React.createRef();
    Severity: Minor
    Found in imports/ui/components/AudioPlayer.js - About 3 hrs to fix

      Function render has 165 lines of code (exceeds 150 allowed). Consider refactoring.
      Open

        render() {
          const {
            episode,
            isReady,
            isPlaying,
      Severity: Major
      Found in imports/ui/components/AudioPlayer.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status