vehiculum-codestyle 0.0.1 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -2
- data/default.yml +2 -2
- data/lib/vehiculum/codestyle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f443a224725f5340f5304a9e3430676d3cae5cd1b940657c4dae448a07902e50
|
4
|
+
data.tar.gz: 1775170cf5a6d7faf2f6d9abb1149890a0204c83d0a5bd46f1e3061b3a3ab593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 987525d5598ee694a1fcb77dd5ff0fbc8a64ec834e0716b15f3cde6279108ae65928725982023af5e5ae1d912481a6eeae86f9a49f91c05446f8784ce762bf82
|
7
|
+
data.tar.gz: 3e281a136371d968b4388bd65aacd6ee22e3c9fdc9148574bb6a86591003ba84f6a3578cbc8435fc1d6bab3c8a363733626c8b1d947eadd1a87a250471be74cf
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Add this line to your application's Gemfile:
|
|
7
7
|
|
8
8
|
```
|
9
9
|
group :test, :development do
|
10
|
-
gem '
|
10
|
+
gem 'vehiculum-codestyle'
|
11
11
|
end
|
12
12
|
```
|
13
13
|
|
@@ -16,15 +16,26 @@ You do not need to include RuboCop directly in your application's dependencies.
|
|
16
16
|
Usage
|
17
17
|
Create a .rubocop.yml with the following directives:
|
18
18
|
|
19
|
+
```
|
19
20
|
inherit_gem:
|
20
21
|
vehiculum-codestyle:
|
21
22
|
- default.yml
|
23
|
+
```
|
24
|
+
|
22
25
|
Now, run:
|
23
26
|
|
27
|
+
```
|
24
28
|
$ bundle exec rubocop
|
29
|
+
```
|
30
|
+
|
25
31
|
You can also automatically generate a .rubocop_todo.yml file to temporarily ignore failing cops until the offenses are removed from your code base. Run:
|
26
32
|
|
33
|
+
```
|
27
34
|
$ bundle exec rubocop --auto-gen-config
|
35
|
+
```
|
36
|
+
|
28
37
|
And add this to .rubocop.yml below the previous block:
|
29
38
|
|
30
|
-
|
39
|
+
```
|
40
|
+
inherit_from: .rubocop_todo.yml
|
41
|
+
```
|
data/default.yml
CHANGED
@@ -225,7 +225,7 @@ Metrics/AbcSize:
|
|
225
225
|
Metrics/BlockLength:
|
226
226
|
Enabled: false
|
227
227
|
|
228
|
-
|
228
|
+
Metrics/BlockNesting:
|
229
229
|
Enabled: true
|
230
230
|
Max: 3
|
231
231
|
|
@@ -576,4 +576,4 @@ RSpec/RepeatedExampleGroupBody:
|
|
576
576
|
Enabled: pending
|
577
577
|
|
578
578
|
RSpec/RepeatedExampleGroupDescription:
|
579
|
-
Enabled:
|
579
|
+
Enabled: pending
|