lacymorrow/movie-trailer

View on GitHub

Showing 2 of 8 total issues

Function movieTrailer has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async function movieTrailer( movie, options, cb, legacy ) {

        /* Fetch movie trailers */

        // Massage inputs
Severity: Minor
Found in index.js - About 1 hr to fix

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

        function getTrailer( movieId, options ) {
    
            const path = options && options.videoType === 'tv' ? '/3/tv/' : '/3/movie/'
    
            /* Fetch single or multiple movie trailers via the TMDB API */
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language