tasks/lib/common.js
function(results, filePath) {

  var destDir = path.dirname(filePath);

  if (!grunt.file.exists(destDir)) {
    grunt.file.mkdir(destDir);
  }

  grunt.file.write(filePath, results);
  grunt.log.ok('File "' + filePath + '" created.');
}
function(results, filePath) {

  var destDir = path.dirname(filePath);

  if (!grunt.file.exists(destDir)) {
    grunt.file.mkdir(destDir);
  }

  grunt.file.write(filePath, results);
  grunt.log.ok('File "' + filePath + '" created.');
}
function ( results , filePath ) { var destDir = path . dirname ( filePath ) ; if ( ! grunt . file . exists ( destDir ) ) { grunt . file . mkdir ( destDir ) ; } grunt . file . write ( filePath , results ) ; grunt . log . ok ( 'File "' + filePath + '" created.' ) ; }
Writes linter |results| to file.
@param {!string} results Linter results as a string.
@param {!string} filePath Path to the file.
Writes linter |results| to file .