codenothing/CSSCompressor

View on GitHub
build/comment.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function exports has 80 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function( content ) {
    var html = '', m, i,
        seek = null,
        comexit = false,
        props = {
Severity: Major
Found in build/comment.js - About 3 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if ( ralpha.exec( line = line.replace( rcomkey, '' ) ) ) {
                            html += line;
                        }
    Severity: Major
    Found in build/comment.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                      else if ( line.trim().indexOf( '*/' ) === 0 ) {
                          comexit = true;
                      }
      Severity: Major
      Found in build/comment.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if ( m = rlink.exec( line ) ) {
                        props.source = "<div class='source'>Source: <a href='" + m[ 1 ] + "'>" + 
                            encode( line.replace( rlink, '' ).trim() ) +
                            "</a></div>";
                    }
        Severity: Major
        Found in build/comment.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                  else if ( m = rcomkey.exec( line ) ) {
                      seek = m[ 1 ];
                      html = '';
          
                      if ( ralpha.exec( line = line.replace( rcomkey, '' ) ) ) {
          Severity: Major
          Found in build/comment.js - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status