<commit_before># gulp-clang-format
Gulp plugin to check that code is properly formatted, according to clang-format.

## Usage

Sample gulpfile.js:

```js
var format = require('gulp-clang-format');
gulp.task('check-format', function() {
	return gulp.src('*.js')
	.pipe(format.checkFormat());
});
```<commit_msg>Polish docs<commit_after># gulp-clang-format
Gulp plugin to check that code is properly formatted, according to clang-format.

If the code differs from how clang-format would format it, this prints a warning
to the build output, as well as a command to run that formats the file in-place.

## Usage

Sample gulpfile.js:

```js
var format = require('gulp-clang-format');
gulp.task('check-format', function() {
	return gulp.src('*.js')
	.pipe(format.checkFormat());
});
```
## Options
The checkFormat() function accepts an optional parameter indicating the
style to use. By default, it applies the "Google" style.

The parameter is passed to the -style argument of clang-format. See the
docs here: http://clang.llvm.org/docs/ClangFormatStyleOptions.html

A special value is the string 'file', this means that clang-format will
look for a .clang-format file in your repository. This allows you to keep
the formatting consistent even as other developers contribute.
{'fraction_non_alphanumeric': 0.11014948859166011, 'fraction_numerical': 0.0, 'mean_word_length': 4.781818181818182, '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': '32052', 'n_tokens_mistral': 383, 'n_tokens_neox': 371, 'n_words': 151}