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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/cops/rails.yml +21 -0
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ee0fa8a4dbbd402edf38f5362dca00494bfe5364beb7323cb13c50155c9a9c4
4
- data.tar.gz: 52bbcc8c1e1a1e293807784723df4054e6c38496aacf4c2620ebe05bc8439267
3
+ metadata.gz: fc0fbfeb36ed2bee85ab81f7f53edee110e14ea718ca8c4a4e0418fd8078d84a
4
+ data.tar.gz: 01ee7b87118849ed03450307120a2d280713baed39204f4acd8bb9594187b2c9
5
5
  SHA512:
6
- metadata.gz: 5ee19ec44155de3b03c97358e24b1efabd2f942ccc4147d08ef5bcb9d0f052a111f369286988c244385eab62cd3ab8e1898865a4e39a9499810e308a3f42cd2d
7
- data.tar.gz: 7d795767ddcce6df22e2ae86d4015766080c4e9f9971c6b3ddd83609b75231bbc14d5654b3f45f99bcad27c9ae7fc91bc3ac8a50908347c711cd9527664ef720
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.3
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.22.0
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.22.0
26
+ version: 2.34.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: webit-ruby-rubocop
29
29
  requirement: !ruby/object:Gem::Requirement