vehiculum-codestyle 0.0.1 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +15 -2
- data/default.yml +3 -3
- data/lib/vehiculum/codestyle/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c4c67956924d1595eb562aaea9c2f6f0dd557529c58dd6af1aaf2cc0ed3126
|
4
|
+
data.tar.gz: b8f896a4c4524e21a813cec5934d1e3f8398414d17e351c3df71267cc1d337a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 296364b4a6512425e60b3719d7d5e60ac1e604f8bac5c987dd4839247bad2ba12e2d61a5c9692bdd65fd343ebd8f05d0ae7f5faae8f7c3f05189eb2c74cb1bf0
|
7
|
+
data.tar.gz: a6ec42607f28f9be33cc26da9b141cd4430ef6856a8fb8f3673fd074686e64b752fa23b0c89e914e2b6f08a0c8839b10eeac7df6511d48227502f91173c4eb8b
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# vehiculum-codestyle
|
2
2
|
|
3
|
+
![vehiculum-codestyle](https://github.com/vehiculum-berlin/vehiculum-codestyle/workflows/vehiculum-codestyle/badge.svg?branch=master)
|
4
|
+
|
3
5
|
Shared Ruby style guide used by Vehiculum Tech team
|
4
6
|
|
5
7
|
## Installation
|
@@ -7,7 +9,7 @@ Add this line to your application's Gemfile:
|
|
7
9
|
|
8
10
|
```
|
9
11
|
group :test, :development do
|
10
|
-
gem '
|
12
|
+
gem 'vehiculum-codestyle'
|
11
13
|
end
|
12
14
|
```
|
13
15
|
|
@@ -16,15 +18,26 @@ You do not need to include RuboCop directly in your application's dependencies.
|
|
16
18
|
Usage
|
17
19
|
Create a .rubocop.yml with the following directives:
|
18
20
|
|
21
|
+
```
|
19
22
|
inherit_gem:
|
20
23
|
vehiculum-codestyle:
|
21
24
|
- default.yml
|
25
|
+
```
|
26
|
+
|
22
27
|
Now, run:
|
23
28
|
|
29
|
+
```
|
24
30
|
$ bundle exec rubocop
|
31
|
+
```
|
32
|
+
|
25
33
|
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
34
|
|
35
|
+
```
|
27
36
|
$ bundle exec rubocop --auto-gen-config
|
37
|
+
```
|
38
|
+
|
28
39
|
And add this to .rubocop.yml below the previous block:
|
29
40
|
|
30
|
-
|
41
|
+
```
|
42
|
+
inherit_from: .rubocop_todo.yml
|
43
|
+
```
|
data/default.yml
CHANGED
@@ -153,7 +153,7 @@ Lint/Loop:
|
|
153
153
|
Enabled: true
|
154
154
|
|
155
155
|
Lint/MissingCopEnableDirective:
|
156
|
-
|
156
|
+
Enabled: true
|
157
157
|
|
158
158
|
Lint/ParenthesesAsGroupedExpression:
|
159
159
|
Enabled: true
|
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vehiculum-codestyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vehiculum Tech Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|