<commit_before># YAML Lint

> A simple (CLI) tool to lint YAML files

[![Build Status](https://travis-ci.org/rasshofer/yaml-lint.svg)](https://travis-ci.org/rasshofer/yaml-lint)
[![Dependency Status](https://david-dm.org/rasshofer/yaml-lint/status.svg)](https://david-dm.org/rasshofer/yaml-lint)
[![Dependency Status](https://david-dm.org/rasshofer/yaml-lint/dev-status.svg)](https://david-dm.org/rasshofer/yaml-lint)

## Usage

```shell
npm install --save-dev yaml-lint
```

```js
var yamlLint = require('yaml-lint');

yamlLint.lint('test: 123').then(function () {
  console.log('Valid YAML file.');
}).catch(function (error) {
  console.error('Invalid YAML file.', error);
});
```

## CLI

```shell
npm install -g yaml-lint
```

```shell
$ yamllint test.yaml
```

## options

### `schema` (string)

> Specifies a schema to use

- `DEFAULT_FULL_SCHEMA` All supported YAML types (default)
- `FAILSAFE_SCHEMA` Only strings, arrays, and plain objects ([http://www.yaml.org/spec/1.2/spec.html#id2802346](http://www.yaml.org/spec/1.2/spec.html#id2802346))
- `JSON_SCHEMA` All JSON-supported types ([http://www.yaml.org/spec/1.2/spec.html#id2803231](http://www.yaml.org/spec/1.2/spec.html#id2803231))
- `CORE_SCHEMA` Same as `JSON_SCHEMA` ([http://www.yaml.org/spec/1.2/spec.html#id2804923](http://www.yaml.org/spec/1.2/spec.html#id2804923))
- `DEFAULT_SAFE_SCHEMA` All supported YAML types, without unsafe ones (`!!js/undefined`, `!!js/regexp`, and `!!js/function`) ([http://yaml.org/type/](http://yaml.org/type/))

## Changelog

* 0.0.4
  * Print file names when logging YAML errors while using the CLI
* 0.0.3
  * Implement check for empty file selections while using the CLI
* 0.0.2
  * Prettier error messages within CLI
  * Add shebang for CLI
* 0.0.1
  * Initial version

## License

Copyright (c) 2016 [<NAME>](http://thomasrasshofer.com/)  
Licensed under the MIT license.

See LICENSE for more info.

## Contributors

- [@rasshofer](https://github.com/rasshofer)
- [@sapegin](https://github.com/sapegin)
<commit_msg>Fix contributors<commit_after># YAML Lint

> A simple (CLI) tool to lint YAML files

[![Build Status](https://travis-ci.org/rasshofer/yaml-lint.svg)](https://travis-ci.org/rasshofer/yaml-lint)
[![Dependency Status](https://david-dm.org/rasshofer/yaml-lint/status.svg)](https://david-dm.org/rasshofer/yaml-lint)
[![Dependency Status](https://david-dm.org/rasshofer/yaml-lint/dev-status.svg)](https://david-dm.org/rasshofer/yaml-lint)

## Usage

```shell
npm install --save-dev yaml-lint
```

```js
var yamlLint = require('yaml-lint');

yamlLint.lint('test: 123').then(function () {
  console.log('Valid YAML file.');
}).catch(function (error) {
  console.error('Invalid YAML file.', error);
});
```

## CLI

```shell
npm install -g yaml-lint
```

```shell
$ yamllint test.yaml
```

## options

### `schema` (string)

> Specifies a schema to use

- `DEFAULT_FULL_SCHEMA` All supported YAML types (default)
- `FAILSAFE_SCHEMA` Only strings, arrays, and plain objects ([http://www.yaml.org/spec/1.2/spec.html#id2802346](http://www.yaml.org/spec/1.2/spec.html#id2802346))
- `JSON_SCHEMA` All JSON-supported types ([http://www.yaml.org/spec/1.2/spec.html#id2803231](http://www.yaml.org/spec/1.2/spec.html#id2803231))
- `CORE_SCHEMA` Same as `JSON_SCHEMA` ([http://www.yaml.org/spec/1.2/spec.html#id2804923](http://www.yaml.org/spec/1.2/spec.html#id2804923))
- `DEFAULT_SAFE_SCHEMA` All supported YAML types, without unsafe ones (`!!js/undefined`, `!!js/regexp`, and `!!js/function`) ([http://yaml.org/type/](http://yaml.org/type/))

## Changelog

* 0.0.4
  * Print file names when logging YAML errors while using the CLI
* 0.0.3
  * Implement check for empty file selections while using the CLI
* 0.0.2
  * Prettier error messages within CLI
  * Add shebang for CLI
* 0.0.1
  * Initial version

## License

Copyright (c) 2016 [<NAME>](http://thomasrasshofer.com/)  
Licensed under the MIT license.

See LICENSE for more info.

## Contributors

- [@rasshofer](https://github.com/rasshofer)
- [@sapegin](https://github.com/sapegin)
- [@bendrucker](https://github.com/bendrucker)

{'fraction_non_alphanumeric': 0.1889051808406647, 'fraction_numerical': 0.03567937438905181, 'mean_word_length': 4.350326797385621, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 17, 'lorem ipsum': 0, 'www.': 12, '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': '1931897', 'n_tokens_mistral': 1664, 'n_tokens_neox': 1524, 'n_words': 296}