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 +4 -4
- data/.rubocop_todo.yml +5 -5
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/gemfiles/rails_6_0.gemfile.lock +2 -2
- data/gemfiles/rails_6_1.gemfile.lock +2 -2
- data/gemfiles/rails_7_0.gemfile.lock +2 -2
- data/lib/rubocop/cobra/version.rb +1 -1
- data/lib/rubocop/cop/cobra/command_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/controller_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/dependency_version.rb +2 -2
- data/lib/rubocop/cop/cobra/gem_requirement.rb +2 -2
- data/lib/rubocop/cop/cobra/helper_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/inheritance.rb +1 -1
- data/lib/rubocop/cop/cobra/job_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/lib_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/mailer_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/model_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/presenter_file_placement.rb +2 -2
- data/lib/rubocop/cop/cobra/view_component_file_placement.rb +2 -2
- 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: 8c0272d9dce4524e867e86ce26b5c4384c5d6a7fc34d6babd18dfd1fd2dc843a
|
4
|
+
data.tar.gz: c81cc71b91f700c13b1cd3240702d7d969b4a7c0e46160e650b49ee1dd9d8b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
+
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.
|
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
|
+
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.
|
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
|
+
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.
|
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
|
+
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.
|
14
|
+
rubocop-cobra (0.4.5)
|
15
15
|
rubocop (= 1.74.0)
|
16
16
|
rubocop-powerhome
|
17
17
|
|
@@ -23,10 +23,10 @@ module RuboCop
|
|
23
23
|
# end
|
24
24
|
# end
|
25
25
|
#
|
26
|
-
class CommandFilePlacement < RuboCop::Cop::
|
26
|
+
class CommandFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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::
|
26
|
+
class ControllerFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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::
|
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
|
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::
|
6
|
+
class GemRequirement < RuboCop::Cop::Base
|
7
7
|
MSG = "Component Gemfile dependencies must specify " \
|
8
8
|
"'require: nil'."
|
9
9
|
|
10
|
-
def
|
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::
|
26
|
+
class HelperFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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 JobFilePlacement < RuboCop::Cop::
|
26
|
+
class JobFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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::
|
28
|
+
class LibFilePlacement < RuboCop::Cop::Base
|
29
29
|
include FilePlacementHelp
|
30
30
|
|
31
|
-
def
|
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::
|
26
|
+
class MailerFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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::
|
26
|
+
class ModelFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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::
|
26
|
+
class PresenterFilePlacement < RuboCop::Cop::Base
|
27
27
|
include FilePlacementHelp
|
28
28
|
|
29
|
-
def
|
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::
|
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
|
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
|
+
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:
|
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.
|
165
|
+
rubygems_version: 3.6.7
|
166
166
|
specification_version: 4
|
167
167
|
summary: Cobra rubocop linters
|
168
168
|
test_files: []
|