webit-rails-rubocop 1.0.3 → 1.0.4
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 +4 -4
- data/README.md +1 -1
- data/cops/rails.yml +21 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc0fbfeb36ed2bee85ab81f7f53edee110e14ea718ca8c4a4e0418fd8078d84a
|
|
4
|
+
data.tar.gz: 01ee7b87118849ed03450307120a2d280713baed39204f4acd8bb9594187b2c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc2be3ae19846994a1841a4a6145b3a8c4cc3ca31e939a5f3c0405619fd2f0a9d6d462ffc40ad62b183b594ca70c2d70bf855937c6f8be60f43ac6b2586471c2
|
|
7
|
+
data.tar.gz: 002c120b509a90cc61d7b34f49972d2131508a7b20e4f4918724ce3dd973c629b316a9c009423108d9038dfc7f9ea54c69af8c3e4a86f104ea17dd6fce5e02eb
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# webit-rails-rubocop
|
|
2
2
|
|
|
3
|
-
This gem provides webit specific rubocop configurations for Rails. This **does not** include configurations from [webit-ruby-rubocop](https://github.com/webit-de/webit-ruby-rubocop).
|
|
3
|
+
This gem provides webit! specific rubocop configurations for Rails. This **does not** include configurations from [webit-ruby-rubocop](https://github.com/webit-de/webit-ruby-rubocop).
|
|
4
4
|
|
|
5
5
|
For ruby-only configurations consider only using [webit-ruby-rubocop](https://github.com/webit-de/webit-ruby-rubocop).
|
|
6
6
|
|
data/cops/rails.yml
CHANGED
|
@@ -46,6 +46,9 @@ Rails/DurationArithmetic:
|
|
|
46
46
|
Rails/EagerEvaluationLogMessage:
|
|
47
47
|
Enabled: true
|
|
48
48
|
|
|
49
|
+
Rails/EnumSyntax:
|
|
50
|
+
Enabled: true
|
|
51
|
+
|
|
49
52
|
Rails/EnvLocal:
|
|
50
53
|
Enabled: false
|
|
51
54
|
|
|
@@ -59,9 +62,15 @@ Rails/FilePath:
|
|
|
59
62
|
Rails/FindById:
|
|
60
63
|
Enabled: true
|
|
61
64
|
|
|
65
|
+
Rails/FindByOrAssignmentMemoization:
|
|
66
|
+
Enabled: true
|
|
67
|
+
|
|
62
68
|
Rails/FreezeTime:
|
|
63
69
|
Enabled: true
|
|
64
70
|
|
|
71
|
+
Rails/HttpStatusNameConsistency:
|
|
72
|
+
Enabled: true
|
|
73
|
+
|
|
65
74
|
Rails/I18nLazyLookup:
|
|
66
75
|
Enabled: true
|
|
67
76
|
|
|
@@ -86,15 +95,24 @@ Rails/MatchRoute:
|
|
|
86
95
|
Rails/MigrationClassName:
|
|
87
96
|
Enabled: true
|
|
88
97
|
|
|
98
|
+
Rails/MultipleRoutePaths:
|
|
99
|
+
Enabled: true
|
|
100
|
+
|
|
89
101
|
Rails/NegateInclude:
|
|
90
102
|
Enabled: true
|
|
91
103
|
|
|
104
|
+
Rails/OrderArguments:
|
|
105
|
+
Enabled: true
|
|
106
|
+
|
|
92
107
|
Rails/Pluck:
|
|
93
108
|
Enabled: true
|
|
94
109
|
|
|
95
110
|
Rails/PluckInWhere:
|
|
96
111
|
Enabled: true
|
|
97
112
|
|
|
113
|
+
Rails/RedirectBackOrTo:
|
|
114
|
+
Enabled: true
|
|
115
|
+
|
|
98
116
|
Rails/RedundantActiveRecordAllMethod:
|
|
99
117
|
Enabled: true
|
|
100
118
|
|
|
@@ -176,3 +194,6 @@ Rails/WhereNot:
|
|
|
176
194
|
|
|
177
195
|
Rails/WhereNotWithMultipleConditions:
|
|
178
196
|
Enabled: true
|
|
197
|
+
|
|
198
|
+
Rails/WhereRange:
|
|
199
|
+
Enabled: true
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webit-rails-rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Böhme
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.
|
|
19
|
+
version: 2.34.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 2.
|
|
26
|
+
version: 2.34.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: webit-ruby-rubocop
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|