<commit_before>[![Gem Version](https://badge.fury.io/rb/filecop.svg)](https://badge.fury.io/rb/filecop)

# Filecop

Filecop is designed to find sensitive files in a provided list. Ideally this would be integrated into something like a git pre-commit hook or post commit check to reduce instances of leaked credentials.

The base list of sensitive files is from [jandre/safe-commit-hook](https://github.com/jandre/safe-commit-hook/blob/master/git-deny-patterns.json) - I hope to add to this and contribute back over time.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'filecop'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install filecop<commit_msg>Add pushbit note to README.md<commit_after>[![Gem Version](https://badge.fury.io/rb/filecop.svg)](https://badge.fury.io/rb/filecop)

# Filecop

Filecop is designed to find sensitive files in a provided list. Ideally this would be integrated into something like a git pre-commit hook or post commit check to reduce instances of leaked credentials.

The base list of sensitive files is from [jandre/safe-commit-hook](https://github.com/jandre/safe-commit-hook/blob/master/git-deny-patterns.json) - I hope to add to this and contribute back over time.

Filecop is one of the many behaviors automatically run against your code by [Pushbit](https://www.pushbit.co), check it out!

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'filecop'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install filecop
{'fraction_non_alphanumeric': 0.0973111395646607, 'fraction_numerical': 0.0, 'mean_word_length': 4.21, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 1, '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': '6376693', 'n_tokens_mistral': 478, 'n_tokens_neox': 457, 'n_words': 178}