<commit_before>'use strict';

const gulp = require('gulp');
const gulpEslint = require('gulp-eslint');
const gulpHtmllint = require('gulp-html-lint');
const gulpStylelint = require('gulp-stylelint');
const jsdoc = require('gulp-jsdoc3');

gulp.task('lint-html', () => gulp.src(['./src/html/*.html'])
  .pipe(gulpHtmllint({ htmllintrc : '.htmllintrc.json' }))
  .pipe(gulpHtmllint.format())
);

gulp.task('lint-js', () => gulp.src(['gulpfile.js', './src/js/*.js'])
  .pipe(gulpEslint({ configFile : '.eslintrc.json' }))
  .pipe(gulpEslint.format())
);

gulp.task('lint-css', () => gulp.src(['./src/css/*.css'])
  .pipe(gulpStylelint({
    failAfterError : false,
    reporters : [
      {
        formatter : 'string',
        console : true
      }
    ]
  }))
);

const jsdocsConfig = require('./jsdoc.json');
gulp.task('docs', () => gulp.src(['CHANGELOG.md', 'README.md', './src/js/*.js'], { read : false })
  .pipe(jsdoc(jsdocsConfig))
);
<commit_msg>fixed javascript linter<commit_after>'use strict';

const gulp = require('gulp');
const gulpEslint = require('gulp-eslint');
const gulpHtmllint = require('gulp-html-lint');
const gulpStylelint = require('gulp-stylelint');
const jsdoc = require('gulp-jsdoc3');

gulp.task('lint-html', () => gulp.src(['./src/html/*.html'])
  .pipe(gulpHtmllint({ htmllintrc : '.htmllintrc.json' }))
  .pipe(gulpHtmllint.format())
);

gulp.task('lint-js', () => gulp.src(['gulpfile.js', './src/js/**/*.js'])
  .pipe(gulpEslint({ configFile : '.eslintrc.json' }))
  .pipe(gulpEslint.format())
);

gulp.task('lint-css', () => gulp.src(['./src/css/*.css'])
  .pipe(gulpStylelint({
    failAfterError : false,
    reporters : [
      {
        formatter : 'string',
        console : true
      }
    ]
  }))
);

const jsdocsConfig = require('./jsdoc.json');
gulp.task('docs', () => gulp.src(['CHANGELOG.md', 'README.md', './src/js/*.js'], { read : false })
  .pipe(jsdoc(jsdocsConfig))
);

{'fraction_non_alphanumeric': 0.2358146798542426, 'fraction_numerical': 0.001041124414367517, 'mean_word_length': 3.829145728643216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4170223', 'n_tokens_mistral': 751, 'n_tokens_neox': 744, 'n_words': 102}