<commit_before>
/* ------------------------------------------------------------------------

    Baze Test
    v0.1.0
    Testing tool by Suitmedia

   ------------------------------------------------------------------------ */

var gulp        = require('gulp'),
    gutil       = require('gulp-util'),

    // CSS Lint
    cssLint     = require('gulp-csslint'),

    // JS Hint
    jsHint      = require('gulp-jshint'),

    // Image min
    imageMin    = require('gulp-imagemin');


/* CSS Lint
--------------------------------------------------------------------------- */

var cssLintReporter = function (file) {
    gutil.log();
    gutil.log(gutil.colors.magenta(file.path));
    gutil.log('--------------------------------------------------\n');

    file.csslint.results.forEach(function(result) {
        gutil.log(gutil.colors.gray('line: ' + result.error.line));
        gutil.log('\t' + gutil.colors.blue(result.error.message));
        gutil.log('');
    });

    gutil.log('CSS lint result: ' + gutil.colors.red('✖ ' + file.csslint.errorCount + ' problems'));
};

gulp.task('css-lint', function () {
    var options = {
        'box-sizing'                : false,    // no longer support IE7 
        'universal-selector'        : false,    // http://goo.gl/UbxPMq
        'unique-headings'           : false,
        'compatible-vendor-prefixes': false,    // handled by autoprefixer
        'gradients'                 : false,    // handled by autoprefixer
        'vendor-prefix'             : false,    // handled by autoprefixer
        'box-model'                 : false,    // border-box specified
        'known-properties'          : false,
        'floats'                    : false
    };

    return gulp
        .src('./css/*.css')
        .pipe(cssLint(options))
        .pipe(cssLint.reporter(cssLintReporter));

});


/* JS Hint
--------------------------------------------------------------------------- */

gulp.task('js-hint', function () {

    return gulp
        .src('./js/*.js')
        .pipe(jsHint())
        .pipe(jsHint.reporter('jshint-stylish'));

});


/* Optimize image
--------------------------------------------------------------------------- */<commit_msg>add task gulp lint<commit_after>
/* ------------------------------------------------------------------------

    Baze Test
    v0.1.0
    Testing tool by Suitmedia

   ------------------------------------------------------------------------ */

var gulp        = require('gulp'),
    gutil       = require('gulp-util'),

    // CSS Lint
    cssLint     = require('gulp-csslint'),

    // JS Hint
    jsHint      = require('gulp-jshint'),

    // Image min
    imageMin    = require('gulp-imagemin');


/* CSS Lint
--------------------------------------------------------------------------- */

var cssLintReporter = function (file) {
    gutil.log();
    gutil.log(gutil.colors.magenta(file.path));
    gutil.log('--------------------------------------------------\n');

    file.csslint.results.forEach(function(result) {
        gutil.log(gutil.colors.gray('line: ' + result.error.line));
        gutil.log('\t' + gutil.colors.blue(result.error.message));
        gutil.log('');
    });

    gutil.log('CSS lint result: ' + gutil.colors.red('✖ ' + file.csslint.errorCount + ' problems'));
};

gulp.task('css-lint', function () {
    var options = {
        'box-sizing'                : false,    // no longer support IE7 
        'universal-selector'        : false,    // http://goo.gl/UbxPMq
        'unique-headings'           : false,
        'compatible-vendor-prefixes': false,    // handled by autoprefixer
        'gradients'                 : false,    // handled by autoprefixer
        'vendor-prefix'             : false,    // handled by autoprefixer
        'box-model'                 : false,    // border-box specified
        'known-properties'          : false,
        'floats'                    : false
    };

    return gulp
        .src('./css/*.css')
        .pipe(cssLint(options))
        .pipe(cssLint.reporter(cssLintReporter));

});


/* JS Hint
--------------------------------------------------------------------------- */

gulp.task('js-hint', function () {

    return gulp
        .src('./js/*.js')
        .pipe(jsHint())
        .pipe(jsHint.reporter('jshint-stylish'));

});


/* Lint
--------------------------------------------------------------------------- */

gulp.task('lint', function () {
    gulp.start('css-lint', 'js-hint');
});


/* Optimize image
--------------------------------------------------------------------------- */
{'fraction_non_alphanumeric': 0.32992160278745647, 'fraction_numerical': 0.0017421602787456446, 'mean_word_length': 1.056874160322436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5161698', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1233, 'n_words': 208}