<commit_before>[![CircleCI](https://circleci.com/gh/ashfurrow/danger-swiftlint.svg?style=svg)](https://circleci.com/gh/ashfurrow/danger-swiftlint)

# Danger SwiftLint

A [Danger](https://github.com/danger/danger) plugin for [SwiftLint](https://github.com/realm/SwiftLint).

## Installation

Coming soon!

## Usage

The easiest way to use is just add this to your Dangerfile:

```rb
swiftlint.lint_files
```

That will lint any changed or added Swift files in the PR. You can also set up a config file first.

```rb
swiftlint.config_file = '.swiftlint.yml'
swiftlint.lint_files
```

And finally, you can provide a list of files manually:

``` ruby
# Look through all changed Markdown files
swift_files = (modified_files + added_files).select do |file|
  file.end_with?(".swift")
end

swiftlint.lint_files swift_files
```

## Attribution

Original structure, sequence, and organization of repo taken from [danger-prose](https://github.com/dbgrandi/danger-prose) by [<NAME>](https://github.com/dbgrandi/).

## License

MIT<commit_msg>readme: s/Markdown/Swift<commit_after>[![CircleCI](https://circleci.com/gh/ashfurrow/danger-swiftlint.svg?style=svg)](https://circleci.com/gh/ashfurrow/danger-swiftlint)

# Danger SwiftLint

A [Danger](https://github.com/danger/danger) plugin for [SwiftLint](https://github.com/realm/SwiftLint).

## Installation

Coming soon!

## Usage

The easiest way to use is just add this to your Dangerfile:

```rb
swiftlint.lint_files
```

That will lint any changed or added Swift files in the PR. You can also set up a config file first.

```rb
swiftlint.config_file = '.swiftlint.yml'
swiftlint.lint_files
```

And finally, you can provide a list of files manually:

``` ruby
# Look through all changed Swift files
swift_files = (modified_files + added_files).select do |file|
  file.end_with?(".swift")
end

swiftlint.lint_files swift_files
```

## Attribution

Original structure, sequence, and organization of repo taken from [danger-prose](https://github.com/dbgrandi/danger-prose) by [<NAME>](https://github.com/dbgrandi/).

## License

MIT
{'fraction_non_alphanumeric': 0.13285024154589373, 'fraction_numerical': 0.0, 'mean_word_length': 4.9511494252873565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 12, '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': '7161429', 'n_tokens_mistral': 738, 'n_tokens_neox': 665, 'n_words': 184}