jzaefferer/grunt-html

View on GitHub

Showing 2 of 11 total issues

Function htmllint has 104 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function htmllint(config, done) {
  const maxChars = 5000;

  // increase child process buffer to accommodate large amounts of
  // validation output. (default is a paltry 200k.)
Severity: Major
Found in lib/htmllint.js - About 4 hrs to fix

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

    module.exports = function(grunt) {
      grunt.registerMultiTask('htmllint', 'Validate html files', function() {
        const done = this.async();
        const files = grunt.file.expand(this.filesSrc);
        const options = this.options({
    Severity: Major
    Found in tasks/html.js - About 2 hrs to fix
      Severity
      Category
      Status
      Source
      Language