jansanchez/css-url-versioner

View on GitHub

Showing 2 of 12 total issues

Function insertVersion has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

CssUrlVersioner.prototype.insertVersion = function() {
  var arrayUrl, dot, doubleQuotes, extension, i, len, newRegEx, newString, numeral, patternExt, patternQuotes, patternRightBracket, patternSimbols, patternUrl, quote, singleQuote, theLastPartOfTheRegExp, url;
  patternUrl = /url([\(]{1})([\"|\']?)([a-zA-Z0-9\@\.\/\s_-]+)([\#]?[a-zA-Z0-9_-]+)?([\"|\']?)([\)]{1})/g;
  patternQuotes = /(\"|\')/g;
  patternExt = /(\.{1}[a-zA-Z0-9]{2,4})(\"|\')?/g;
Severity: Minor
Found in dist/package/lib/css-url-versioner.js - About 1 hr to fix

    Function getTheLastPart has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    CssUrlVersioner.prototype.getTheLastPart = function(quote, numeral, singleQuote, doubleQuotes, patternSimbols) {
    Severity: Minor
    Found in dist/package/lib/css-url-versioner.js - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language