rubocop-cobra 0.4.4 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4068abd55c2397cb93ed99a2e8e02af1341d85e59a43d1b0d3895c6eee07ecf1
4
- data.tar.gz: e4c982325884b328082ae5a13bcb3357c4ea07349822ac857ecc3b63595de156
3
+ metadata.gz: 8c0272d9dce4524e867e86ce26b5c4384c5d6a7fc34d6babd18dfd1fd2dc843a
4
+ data.tar.gz: c81cc71b91f700c13b1cd3240702d7d969b4a7c0e46160e650b49ee1dd9d8b66
5
5
  SHA512:
6
- metadata.gz: 10538952600b360c4882de1bac0d514f260e3c5d356f8329f30cf53fc3df7414fe33cf2ab6cda15c4bb939c5bc73994acd57c1e19bbe80011752ffc5e67dd6db
7
- data.tar.gz: 02fc7dce3d5f2f23a10733e6a97efa4762923a8ab7ca6c8cf5adfa326c1c35a95f4497164122aa20c1568c821072e9be292ecf58c3eb30035e1c5332fc78b56b
6
+ metadata.gz: 5a0a06ce3f2f839b0441c5b3b25c71694297c817e65d0d6fb837f360aec72fde6fc8c81cc7e69e6fe10afc79ccf3ca90beb113bf195399b76bb29337f98f4d20
7
+ data.tar.gz: fd8ee70ec8846dc1feaf8b07a38d65bbb45145eee46e389523034da1d5d11d18ec3c2b9d75ff62c1b550de2b53a132022ca3b3838889cb8132e0f9c9f41adfcd
data/.rubocop_todo.yml CHANGED
@@ -6,11 +6,6 @@
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
11
- Metrics/AbcSize:
12
- Max: 19
13
-
14
9
  # Offense count: 14
15
10
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
16
11
  # IgnoredMethods: refine
@@ -21,3 +16,8 @@ Metrics/BlockLength:
21
16
  # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
22
17
  Metrics/MethodLength:
23
18
  Max: 11
19
+
20
+ Metrics/AbcSize:
21
+ Exclude:
22
+ - lib/rubocop/cop/cobra/model_file_placement.rb
23
+ - lib/rubocop/cop/cobra/controller_file_placement.rb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.5] - 2025-04-22
4
+
5
+ - Fix Rubocop base class inheritance [#323](https://github.com/powerhome/power-tools/pull/323)
6
+
3
7
  ## [0.4.4] - 2023-03-18
4
8
 
5
9
  - Bump Rubocop version to bring in bugfixes.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
4
+ rubocop-powerhome (0.5.5)
5
5
  rubocop (= 1.74.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- rubocop-cobra (0.4.4)
14
+ rubocop-cobra (0.4.5)
15
15
  rubocop (= 1.74.0)
16
16
  rubocop-powerhome
17
17
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
4
+ rubocop-powerhome (0.5.5)
5
5
  rubocop (= 1.74.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- rubocop-cobra (0.4.4)
14
+ rubocop-cobra (0.4.5)
15
15
  rubocop (= 1.74.0)
16
16
  rubocop-powerhome
17
17
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
4
+ rubocop-powerhome (0.5.5)
5
5
  rubocop (= 1.74.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- rubocop-cobra (0.4.4)
14
+ rubocop-cobra (0.4.5)
15
15
  rubocop (= 1.74.0)
16
16
  rubocop-powerhome
17
17
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.5.4)
4
+ rubocop-powerhome (0.5.5)
5
5
  rubocop (= 1.74.0)
6
6
  rubocop-performance
7
7
  rubocop-rails
@@ -11,7 +11,7 @@ PATH
11
11
  PATH
12
12
  remote: ..
13
13
  specs:
14
- rubocop-cobra (0.4.4)
14
+ rubocop-cobra (0.4.5)
15
15
  rubocop (= 1.74.0)
16
16
  rubocop-powerhome
17
17
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Cobra
5
- VERSION = "0.4.4"
5
+ VERSION = "0.4.5"
6
6
  end
7
7
  end
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class CommandFilePlacement < RuboCop::Cop::Cop
26
+ class CommandFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class ControllerFilePlacement < RuboCop::Cop::Cop
26
+ class ControllerFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -3,12 +3,12 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module Cobra
6
- class DependencyVersion < RuboCop::Cop::Cop
6
+ class DependencyVersion < RuboCop::Cop::Base
7
7
  extend NodePattern::Macros
8
8
 
9
9
  MSG = "External component dependencies should be declared with a version"
10
10
 
11
- def investigate(processed_source)
11
+ def on_new_investigation
12
12
  return if processed_source.blank?
13
13
 
14
14
  path = processed_source.file_path
@@ -3,11 +3,11 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module Cobra
6
- class GemRequirement < RuboCop::Cop::Cop
6
+ class GemRequirement < RuboCop::Cop::Base
7
7
  MSG = "Component Gemfile dependencies must specify " \
8
8
  "'require: nil'."
9
9
 
10
- def investigate(processed_source)
10
+ def on_new_investigation
11
11
  return if processed_source.blank?
12
12
 
13
13
  gem_block = component_gem_block(processed_source.ast)&.first
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class HelperFilePlacement < RuboCop::Cop::Cop
26
+ class HelperFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module Cobra
6
- class Inheritance < RuboCop::Cop::Cop
6
+ class Inheritance < RuboCop::Cop::Base
7
7
  PROTECTED_GLOBAL_CONSTANTS = %w[
8
8
  ApplicationController
9
9
  ApplicationRecord
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class JobFilePlacement < RuboCop::Cop::Cop
26
+ class JobFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -25,10 +25,10 @@ module RuboCop
25
25
  # end
26
26
  # end
27
27
  #
28
- class LibFilePlacement < RuboCop::Cop::Cop
28
+ class LibFilePlacement < RuboCop::Cop::Base
29
29
  include FilePlacementHelp
30
30
 
31
- def investigate(processed_source)
31
+ def on_new_investigation
32
32
  return if processed_source.blank?
33
33
 
34
34
  path = processed_source.file_path
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class MailerFilePlacement < RuboCop::Cop::Cop
26
+ class MailerFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class ModelFilePlacement < RuboCop::Cop::Cop
26
+ class ModelFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -23,10 +23,10 @@ module RuboCop
23
23
  # end
24
24
  # end
25
25
  #
26
- class PresenterFilePlacement < RuboCop::Cop::Cop
26
+ class PresenterFilePlacement < RuboCop::Cop::Base
27
27
  include FilePlacementHelp
28
28
 
29
- def investigate(processed_source)
29
+ def on_new_investigation
30
30
  return if processed_source.blank?
31
31
 
32
32
  path = processed_source.file_path
@@ -45,12 +45,12 @@ module RuboCop
45
45
  # end
46
46
  # end
47
47
  #
48
- class ViewComponentFilePlacement < RuboCop::Cop::Cop
48
+ class ViewComponentFilePlacement < RuboCop::Cop::Base
49
49
  FILE_PLACEMENT_MSG =
50
50
  "Nest ViewComponent definitions in the parent component and resource namespace. " \
51
51
  "For example: `%<correct_path>s`"
52
52
 
53
- def investigate(processed_source)
53
+ def on_new_investigation
54
54
  return if processed_source.blank?
55
55
  return unless path_contains_matcher?
56
56
  return if namespaced_correctly?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-cobra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
8
  - Garett Arrowood
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-19 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  requirements: []
165
- rubygems_version: 3.6.2
165
+ rubygems_version: 3.6.7
166
166
  specification_version: 4
167
167
  summary: Cobra rubocop linters
168
168
  test_files: []