<commit_before># HAML-Lint

`haml-lint` is a tool to help keep your [HAML](http://haml.info) files
clean and readable. You can run it manually from the command-line, or integrate
it into your SCM hooks. It uses rules established by the team at
[Causes.com](http://causes.com).

## Requirements

 * Ruby 1.9.3+
 * HAML 4.0.3+

## Installation

`gem install haml-lint`

## Usage

Run `haml-lint` from the command-line by passing in a directory (or multiple
directories) to recursively scan:

    haml-lint app/views/

You can also specify a list of files explicitly:

    haml-lint app/**/*.html.haml

`haml-lint` will output any problems with your HAML, including the offending
filename and line number.

## What gets linted

`haml-lint` is an opinionated tool that helps you enforce a consistent style in
your HAML. As an opinionated tool, we've had to make calls about what we think
are the "best" style conventions, even when there are often reasonable arguments
for more than one possible style. While all of our choices have a rational
basis, we think that the opinions themselves are less important than the fact
that `haml-lint` provides us with an automated and low-cost means of enforcing
consistency.

To get a sense of what kinds of lints exist and what they detect, check out
[the spec suite](https://github.com/causes/haml-lint/tree/master/spec/linter).

## Contributing

We love getting feedback with or without pull requests. If you do add a new
feature, please add tests so that we can avoid breaking it in the future.

Speaking of tests, we use `rspec`, which can be run like so:

    bundle exec rspec

## See also

If you'd like to integrate `haml-lint` with Git as a pre-commit hook, check out
our Git hook gem, [overcommit](https://github.com/causes/overcommit).

## License

This project is released under the MIT license.<commit_msg>Improve syntax highlighting in README<commit_after># HAML-Lint

`haml-lint` is a tool to help keep your [HAML](http://haml.info) files
clean and readable. You can run it manually from the command-line, or integrate
it into your SCM hooks. It uses rules established by the team at
[Causes.com](http://causes.com).

## Requirements

 * Ruby 1.9.3+
 * HAML 4.0.3+

## Installation

```bash
gem install haml-lint
```

## Usage

Run `haml-lint` from the command-line by passing in a directory (or multiple
directories) to recursively scan:

```bash
haml-lint app/views/
```

You can also specify a list of files explicitly:

```bash
haml-lint app/**/*.html.haml
```

`haml-lint` will output any problems with your HAML, including the offending
filename and line number.

## What gets linted

`haml-lint` is an opinionated tool that helps you enforce a consistent style in
your HAML. As an opinionated tool, we've had to make calls about what we think
are the "best" style conventions, even when there are often reasonable arguments
for more than one possible style. While all of our choices have a rational
basis, we think that the opinions themselves are less important than the fact
that `haml-lint` provides us with an automated and low-cost means of enforcing
consistency.

To get a sense of what kinds of lints exist and what they detect, check out
[the spec suite](https://github.com/causes/haml-lint/tree/master/spec/linter).

## Contributing

We love getting feedback with or without pull requests. If you do add a new
feature, please add tests so that we can avoid breaking it in the future.

Speaking of tests, we use `rspec`, which can be run like so:

```bash
bundle exec rspec
```

## See also

If you'd like to integrate `haml-lint` with Git as a pre-commit hook, check out
our Git hook gem, [overcommit](https://github.com/causes/overcommit).

## License

This project is released under the MIT license.
{'fraction_non_alphanumeric': 0.07961783439490445, 'fraction_numerical': 0.0031847133757961785, 'mean_word_length': 4.059060402684564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1576835', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1077, 'n_words': 547}