boxt_ruby_style_guide 7.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/VERSION +1 -1
- data/rails.yml +33 -0
- 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: 5d777a4f71c363fb460677f819ace6d3fc2a7854be28c0f879f55dc9a7c5fc06
|
4
|
+
data.tar.gz: e6799780986e824dc58bd84b26043b0b8172a61d9e1a75997f6d2e190bf85902
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 728f6d404c97ad1bf6a7fb3b7aa9fb195b528bab33f62695a0383125a246bdcc7ebac3ad90873e3b61332d0dfad25601631be436987c17aa4ecc5b7059fc50c3
|
7
|
+
data.tar.gz: 5a4197428dd85ea2340e4b510c045baaf182adb35841b2a8ec0dfa07ed3b92e727ce2289b933b8cb35d0820d9bfd0c270533990e20df6cf9f0fb2dba04e48ec1
|
data/README.md
CHANGED
@@ -43,6 +43,8 @@ inherit_gem:
|
|
43
43
|
- default.yml # use default cops
|
44
44
|
- pending.yml # use pending cops
|
45
45
|
- rails.yml # use Rails cops - see Additional Extensions/Cops
|
46
|
+
- rails-pending.yml # use pending rails cops
|
47
|
+
- rspec.yml # use rspec cops
|
46
48
|
```
|
47
49
|
|
48
50
|
### Additional Extensions/Cops
|
@@ -51,6 +53,7 @@ The following Rubocop gems are also installed with this gem:
|
|
51
53
|
|
52
54
|
* [rubocop-faker](https://github.com/koic/rubocop-faker)
|
53
55
|
* [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails)
|
56
|
+
* [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec)
|
54
57
|
|
55
58
|
To enable add the following to your `.rubocop.yml` file.
|
56
59
|
|
@@ -62,6 +65,7 @@ inherit_gem:
|
|
62
65
|
require:
|
63
66
|
- rubocop-faker # if your project is using the Faker gem then add this
|
64
67
|
- rubocop-rails # if your project is a Rails app/engine then add this, plus the - rails.yml setting above
|
68
|
+
- rubocop-rspec # if your project is using rspec then add this, plus the - rspec.yml setting above
|
65
69
|
```
|
66
70
|
|
67
71
|
## Lint Tasks
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.0.
|
1
|
+
7.0.1
|
data/rails.yml
CHANGED
@@ -9,3 +9,36 @@ Rails/SkipsModelValidations:
|
|
9
9
|
- "lib/tasks/**/*"
|
10
10
|
- "spec/**/*"
|
11
11
|
- "test/**/*"
|
12
|
+
|
13
|
+
# These rails cops are currently pending and will be enabled by default at some point, but adding for now to stop
|
14
|
+
# Rubocop or VSCode complaining...
|
15
|
+
Rails/ActiveRecordCallbacksOrder:
|
16
|
+
Enabled: true
|
17
|
+
Rails/AfterCommitOverride:
|
18
|
+
Enabled: true
|
19
|
+
Rails/FindById:
|
20
|
+
Enabled: true
|
21
|
+
Rails/Inquiry:
|
22
|
+
Enabled: true
|
23
|
+
Rails/MailerName:
|
24
|
+
Enabled: true
|
25
|
+
Rails/MatchRoute:
|
26
|
+
Enabled: true
|
27
|
+
Rails/NegateInclude:
|
28
|
+
Enabled: true
|
29
|
+
Rails/Pluck:
|
30
|
+
Enabled: true
|
31
|
+
Rails/PluckInWhere:
|
32
|
+
Enabled: true
|
33
|
+
Rails/RenderInline:
|
34
|
+
Enabled: true
|
35
|
+
Rails/RenderPlainText:
|
36
|
+
Enabled: true
|
37
|
+
Rails/ShortI18n:
|
38
|
+
Enabled: true
|
39
|
+
Rails/SquishedSQLHeredocs:
|
40
|
+
Enabled: true
|
41
|
+
Rails/WhereExists:
|
42
|
+
Enabled: true
|
43
|
+
Rails/WhereNot:
|
44
|
+
Enabled: true
|