rubocop-config-captive 1.16.1 → 1.16.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f99323665b07ddee16ef287c37c3d3d0e8e69976e81534b10880bf7b6a4a0e6c
4
- data.tar.gz: 1e0355369871f031e909e215203e82b25454ba3f9b81f10fe97232c74dcdeae4
3
+ metadata.gz: 974aa4249ecaee7812fa74c5566c3578ee969c94dee2643710bc5b4b1071cf61
4
+ data.tar.gz: 50f1ac44286b70c25f09337c6abed36d958cdd85bf289f03249a25867515b074
5
5
  SHA512:
6
- metadata.gz: 6b070046a311cb2e15df47754629a427020cf3f3b88f7fe8d486ceb4af79083988ed8134efcd5bd11451201b6beb1d5078f5e89c973b8f4b133b7b338ea35999
7
- data.tar.gz: 964cf6b224d95f54b23c7dbfb4767734945f6621d935c69e4d5e51e03ba069d530ab38f9dce2f2869e7894aca1cb07416d653e906fd83c0c4f9b4550eeeb7fb7
6
+ metadata.gz: ed2937e7d5a6c021244c73f42cf0645cc0339abc1dd789c96185761f97a13f4f2c6da844c8f5d42167f3367283b2ad1a36c179ee44ab145567bddff0e97a56a0
7
+ data.tar.gz: 7a5c331bf8187182a88899c8a363de07f5ffbed30907ed9ead34b207c0b730880d2445f4c22af6639d8956cd82e3c9457c8c4b464c5685373f9439841eb09883
@@ -87,10 +87,10 @@ RSpec/ExpectInHook:
87
87
  RSpec/ExpectOutput:
88
88
  Description: Checks for opportunities to use `expect { ... }.to output`.
89
89
  Enabled: false
90
- RSpec/FilePath:
90
+ Rails/FilePath:
91
91
  Description: 'Checks the file and folder naming of the spec file.'
92
92
  Enabled: false
93
- CustomTransform:
93
+ SupportedStyles:
94
94
  RuboCop: rubocop
95
95
  RSpec: rspec
96
96
  RSpec/Focus:
@@ -154,3 +154,18 @@ Rails/WhereNot:
154
154
 
155
155
  Rails/WhereNotWithMultipleConditions:
156
156
  Enabled: true
157
+
158
+ Rails/DangerousColumnNames: # new in 2.21
159
+ Enabled: true
160
+ Rails/EnumSyntax: # new in 2.26
161
+ Enabled: true
162
+ Rails/EnvLocal: # new in 2.22
163
+ Enabled: true
164
+ Rails/RedundantActiveRecordAllMethod: # new in 2.21
165
+ Enabled: true
166
+ Rails/ThreeStateBooleanColumn: # new in 2.19
167
+ Enabled: true
168
+ Rails/UnusedRenderContent: # new in 2.21
169
+ Enabled: true
170
+ Rails/WhereRange: # new in 2.25
171
+ Enabled: true
@@ -3,6 +3,6 @@
3
3
  module RuboCop
4
4
  module Captive
5
5
  # Version information for the the Airbnb RuboCop plugin.
6
- VERSION = "1.16.1"
6
+ VERSION = "1.16.2"
7
7
  end
8
8
  end
@@ -13,7 +13,7 @@ module RuboCop
13
13
  # # good
14
14
  # gem 'activeadmin'
15
15
  # gem 'activeadmin_addons'
16
- class ActiveAdminAddonsPresence < RuboCop::Cop::Cop
16
+ class ActiveAdminAddonsPresence < RuboCop::Cop::Base
17
17
  MSG = "The gem `activeadmin_addons` should be added to the Gemfile "\
18
18
  "if `activeadmin` is present in Gemfile"
19
19
 
@@ -6,7 +6,7 @@ module RuboCop
6
6
  # This cop checks for usages of the `APP_ENV` environment variable.
7
7
  # Usage of `APP_ENV` is prohibited as it conflicts with standard Rails/Rack
8
8
  # environment variable `RAILS_ENV` and may lead to unexpected results.
9
- class NoAppEnv < RuboCop::Cop::Cop
9
+ class NoAppEnv < RuboCop::Cop::Base
10
10
  MSG = "Do not use `APP_ENV` environment variable as it conflicts with "\
11
11
  "standard Rails/Rack environment variable `RAILS_ENV`."
12
12
 
@@ -7,7 +7,7 @@ module RuboCop
7
7
  # Avoid using `find_by` in a scope. Use `where` to return a collection or define a class method if you need a single record.
8
8
  #
9
9
  # @see https://stackoverflow.com/questions/31329554/find-by-inside-a-scope-is-firing-2-queries
10
- class NoFindByInScope < RuboCop::Cop::Cop
10
+ class NoFindByInScope < RuboCop::Cop::Base
11
11
  MSG = "Avoid using `find_by` in a scope. Use `where` to return \
12
12
  a collection or define a class method if you need a single record."
13
13
 
@@ -17,7 +17,7 @@ module RuboCop
17
17
  # date_after(Date.current)
18
18
  #
19
19
  # scope :date_after, ->(date) { where('date > ?', date) }
20
- class StringWhereInScope < RuboCop::Cop::Cop
20
+ class StringWhereInScope < RuboCop::Cop::Base
21
21
  MSG = "The `where` method should be used in a scope in a model."
22
22
 
23
23
  def_node_matcher :where_with_string?, <<~PATTERN
@@ -13,7 +13,7 @@ module RuboCop
13
13
  # # good
14
14
  # gem 'devise'
15
15
  # gem 'devise-i18n'
16
- class DeviseI18nPresence < RuboCop::Cop::Cop
16
+ class DeviseI18nPresence < RuboCop::Cop::Base
17
17
  MSG = "The gem `devise-i18n` should be added to the Gemfile "\
18
18
  "if `devise` is present in Gemfile"
19
19
 
@@ -15,7 +15,7 @@ module RuboCop
15
15
  # # good
16
16
  # gem 'kaminari'
17
17
  # gem 'kaminari-i18n'
18
- class KaminariI18nPresence < RuboCop::Cop::Cop
18
+ class KaminariI18nPresence < RuboCop::Cop::Base
19
19
  MSG = "The gem `kaminari-i18n` should be added to the Gemfile "\
20
20
  "if `kaminari` is present in Gemfile"
21
21
 
@@ -15,7 +15,7 @@ module RuboCop
15
15
  # # good
16
16
  # gem 'rails'
17
17
  # gem 'rails-i18n'
18
- class RailsI18nPresence < RuboCop::Cop::Cop
18
+ class RailsI18nPresence < RuboCop::Cop::Base
19
19
  MSG = "The gem `rails-i18n` should be added to the Gemfile "\
20
20
  "if `rails` is present in Gemfile"
21
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-config-captive
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Captive