{"size": 460, "ext": "js", "max_stars_repo_path": "tasks/validate.js", "max_stars_repo_name": "viktordanko/frontendisticz", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tasks/validate.js", "max_issues_repo_name": "viktordanko/frontendisticz", "max_issues_repo_issues_event_min_datetime": "2022-02-13T23:43:07.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-13T23:43:07.000Z", "max_forks_repo_path": "tasks/validate.js", "max_forks_repo_name": "viktordanko/frontendisticz", "max_forks_repo_forks_event_min_datetime": "2019-08-04T20:09:29.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-04T20:09:29.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 20.9090909091, "max_line_length": 56, "alphanum_fraction": 0.6369565217}
const config = require('./helpers/getConfig.js');
const {src} = require('gulp');
const w3cjs = require('gulp-w3cjs');
const through2 = require('through2');


module.exports = function validate() {
	return src([
		'*.html',
	], {
		cwd: config.dest.templates,
	})
		.pipe(w3cjs())
		.pipe(through2.obj(function(file, enc, callback) {
			callback(null, file);

			if (file.w3cjs.success) {
				return console.log('No errors found in', file.path);
			}
		}));
};
