webit-rails-rubocop 1.0.3 → 1.0.5

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/config.yml +1 -1
  4. data/cops/rails.yml +24 -0
  5. 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: bc5cb87a2b207789ff53ca0a0a204b59ff33483bdd62201a54c191e565d41c56
4
+ data.tar.gz: 5d11100b5baa0893c41913d95a69840c25a97a789e94bf9e2ee6ebed94ef7855
5
5
  SHA512:
6
- metadata.gz: 5ee19ec44155de3b03c97358e24b1efabd2f942ccc4147d08ef5bcb9d0f052a111f369286988c244385eab62cd3ab8e1898865a4e39a9499810e308a3f42cd2d
7
- data.tar.gz: 7d795767ddcce6df22e2ae86d4015766080c4e9f9971c6b3ddd83609b75231bbc14d5654b3f45f99bcad27c9ae7fc91bc3ac8a50908347c711cd9527664ef720
6
+ metadata.gz: d20ca3793c01b7119d04b640c3d5a8e3846ce7e3582e0a7794c3a102ba4854e381cebc9767a424cf1f15551dd3da302b61aa7e1e135f95f97c872be820ca54d0
7
+ data.tar.gz: dc8157744b81b3585aef57ad59dca10446141c2d203469893f3dc2675924ce60b5161ad0d575ea8ea51791015da53c8fa9eac8aa423167bfeb656d605d322114
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/config.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  inherit_from: ./cops/rails.yml
2
2
 
3
- require:
3
+ plugins:
4
4
  - rubocop-rails
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
 
@@ -137,6 +155,9 @@ Rails/SquishedSQLHeredocs:
137
155
  Rails/StripHeredoc:
138
156
  Enabled: true
139
157
 
158
+ Rails/StrongParametersExpect:
159
+ Enabled: true
160
+
140
161
  Rails/ThreeStateBooleanColumn:
141
162
  Enabled: true
142
163
 
@@ -176,3 +197,6 @@ Rails/WhereNot:
176
197
 
177
198
  Rails/WhereNotWithMultipleConditions:
178
199
  Enabled: true
200
+
201
+ Rails/WhereRange:
202
+ 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.5
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