<commit_before>// Load global config and gulp
var config    = require('../config.json');
var argv      = require('yargs').argv;
var gulp      = require('gulp');
var plumber   = require('gulp-plumber');
var debug     = require('gulp-debug');
var gulpif    = require('gulp-if');

// Specific task modules
var browserSync = require('browser-sync');
var sourcemaps  = require('gulp-sourcemaps');
var sass        = require('gulp-sass');
var postcss     = require('gulp-postcss');
var Eyeglass    = require('eyeglass').Eyeglass;

var sassOptions = {}; // put whatever eyeglass and node-sass options you need here.
var eyeglass    = new Eyeglass(sassOptions);

// Postcss workflow modules
var autoprefixer  = require('autoprefixer');
var pxtorem       = require('postcss-pxtorem');
var mqpacker      = require('css-mqpacker');
var cssnano       = require('cssnano');
var stylelint     = require('stylelint');
var reporter      = require('postcss-reporter');

var processors = [
  autoprefixer({ browsers: config.autoprefixer.browsers }),
  pxtorem({
    replace: true
  }),
  mqpacker(),
  stylelint({
    // add config file path - add to this config file
    extends: [
      './tasks/config/.stylelint.json'
    ]
  }),
  reporter({
    clearMessages: true
  })
];

// Add cssnano if there is a production flag
if (argv.production) {
  processors.push(cssnano());
}

// Disable import once with gulp until we
// figure out how to make them work together.
eyeglass.enableImportOnce = false;

// Postcss task
gulp.task('scss', function () {
  return gulp.src(config.paths.scss + '**/*.scss')
    .pipe(gulpif(argv.debug === true, debug({title: 'CSS Processed:'})))<commit_msg>add documentation link for stylelint<commit_after>// Load global config and gulp
var config    = require('../config.json');
var argv      = require('yargs').argv;
var gulp      = require('gulp');
var plumber   = require('gulp-plumber');
var debug     = require('gulp-debug');
var gulpif    = require('gulp-if');

// Specific task modules
var browserSync = require('browser-sync');
var sourcemaps  = require('gulp-sourcemaps');
var sass        = require('gulp-sass');
var postcss     = require('gulp-postcss');
var Eyeglass    = require('eyeglass').Eyeglass;

var sassOptions = {}; // put whatever eyeglass and node-sass options you need here.
var eyeglass    = new Eyeglass(sassOptions);

// Postcss workflow modules
var autoprefixer  = require('autoprefixer');
var pxtorem       = require('postcss-pxtorem');
var mqpacker      = require('css-mqpacker');
var cssnano       = require('cssnano');
var stylelint     = require('stylelint');
var reporter      = require('postcss-reporter');

var processors = [
  autoprefixer({ browsers: config.autoprefixer.browsers }),
  pxtorem({
    replace: true
  }),
  mqpacker(),
  stylelint({
    // add config file path - add to this config file
    // @see {@Link https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md}
    extends: [
      './tasks/config/.stylelint.json'
    ]
  }),
  reporter({
    clearMessages: true
  })
];

// Add cssnano if there is a production flag
if (argv.production) {
  processors.push(cssnano());
}

// Disable import once with gulp until we
// figure out how to make them work together.
eyeglass.enableImportOnce = false;

// Postcss task
gulp.task('scss', function () {
  return gulp.src(config.paths.scss + '**/*.scss')
    .pipe(gulpif(argv.debug === true, debug({title: 'CSS Processed:'})))
{'fraction_non_alphanumeric': 0.14747474747474748, 'fraction_numerical': 0.0, 'mean_word_length': 3.5545335085413927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7608101', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1122, 'n_words': 290}