scold 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +2 -0
- data/README.md +25 -0
- data/bin/hound +4 -0
- data/bin/scold +4 -0
- data/lib/scold/exit.rb +6 -0
- data/lib/scold/hound.yml +1068 -0
- data/lib/scold/hounder.rb +28 -0
- data/lib/scold/scolder.rb +47 -0
- data/lib/scold/version.rb +3 -0
- data/lib/scold.rb +2 -0
- data/scold.gemspec +31 -0
- data/spec/fixtures/custom/.rubocop.yml +3 -0
- data/spec/fixtures/custom/c140.rb +1 -0
- data/spec/fixtures/custom/c90.rb +1 -0
- data/spec/fixtures/simple/c140.rb +1 -0
- data/spec/fixtures/simple/c90.rb +1 -0
- data/spec/hounder_spec.rb +7 -0
- data/spec/scolder_spec.rb +33 -0
- metadata +114 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ada4b04063e566dad5f1904f978a773b173c9708
|
4
|
+
data.tar.gz: 84436b3bc0df4921722acf7654f16dc3b74ad2f7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0bd4088af46216582e36515ddd0ecd54bfe77b014080c86219aaf09c5cce6f1800f0344e632ab098e752ce752de416af7e6d447a841aae73bda95923d9b1197d
|
7
|
+
data.tar.gz: 34dbf0ac59a32205e4e61af3652febee4faecce86ee46059aac42016f8a89be1d422aba803b02fd8dadfa93d64d893ccdffc77e08722b89b6b5236d77ff0fc28
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# scold
|
2
|
+
Hound-like Rubocop utilities
|
3
|
+
|
4
|
+
The `scold` command calls Rubucop using the same configuration as Hound
|
5
|
+
merged with `.rubocop.yml` file in the current directory, if present, then
|
6
|
+
merged with `~/.rubocop_strict.yml` if present.
|
7
|
+
|
8
|
+
The `hound` command calls `scold` with uncommitted git files, if any;
|
9
|
+
otherwise does nothing. Unlike the Hound web service, this command examines
|
10
|
+
entire files, not just changed lines.
|
11
|
+
|
12
|
+
# Usage
|
13
|
+
|
14
|
+
Add to `Gemfile`:
|
15
|
+
```
|
16
|
+
gem "scold", require: false, github: "apptentive/scold"
|
17
|
+
```
|
18
|
+
|
19
|
+
From command line:
|
20
|
+
```
|
21
|
+
bundle exec scold [rubocop-options] [files...]
|
22
|
+
```
|
23
|
+
```
|
24
|
+
bundle exec hound [rubocop-options]
|
25
|
+
```
|
data/bin/hound
ADDED
data/bin/scold
ADDED