web-author 0.1.0
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 +7 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +234 -0
- data/Rakefile +12 -0
- data/lib/web_author/author/strategies/author_from_ld_schema.rb +54 -0
- data/lib/web_author/author/strategies/author_from_meta.rb +16 -0
- data/lib/web_author/author/strategy.rb +25 -0
- data/lib/web_author/json_ld_schema_processor.rb +46 -0
- data/lib/web_author/ld_author.rb +30 -0
- data/lib/web_author/ld_schema.rb +74 -0
- data/lib/web_author/page.rb +54 -0
- data/lib/web_author/version.rb +5 -0
- data/lib/web_author.rb +14 -0
- data/sig/webauthor.rbs +4 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/mocha.rbi +34 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/addressable.rbi +203 -0
- data/sorbet/rbi/gems/addressable@2.8.7.rbi +1994 -0
- data/sorbet/rbi/gems/ast.rbi +49 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal.rbi +86 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +8 -0
- data/sorbet/rbi/gems/crack.rbi +62 -0
- data/sorbet/rbi/gems/crack@1.0.0.rbi +145 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/hashdiff.rbi +66 -0
- data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +353 -0
- data/sorbet/rbi/gems/json@2.10.2.rbi +2112 -0
- data/sorbet/rbi/gems/language_server-protocol.rbi +2868 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller.rbi +75 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/minitest.rbi +440 -0
- data/sorbet/rbi/gems/minitest@5.25.5.rbi +1547 -0
- data/sorbet/rbi/gems/mocha.rbi +653 -0
- data/sorbet/rbi/gems/mocha@2.7.1.rbi +12 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nokogiri-1.18.6-arm64.rbi +1135 -0
- data/sorbet/rbi/gems/parallel.rbi +88 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/parser.rbi +1544 -0
- data/sorbet/rbi/gems/parser@3.3.7.3.rbi +5532 -0
- data/sorbet/rbi/gems/prism.rbi +4090 -0
- data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
- data/sorbet/rbi/gems/public_suffix.rbi +105 -0
- data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +936 -0
- data/sorbet/rbi/gems/racc.rbi +15 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
- data/sorbet/rbi/gems/rainbow.rbi +122 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake.rbi +650 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3033 -0
- data/sorbet/rbi/gems/rbi@0.3.1.rbi +6599 -0
- data/sorbet/rbi/gems/rbs@3.9.2.rbi +6978 -0
- data/sorbet/rbi/gems/rdoc.rbi +555 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +1039 -0
- data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
- data/sorbet/rbi/gems/rexml.rbi +637 -0
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5346 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1470 -0
- data/sorbet/rbi/gems/rubocop-ast@1.43.0.rbi +7765 -0
- data/sorbet/rbi/gems/rubocop-minitest.rbi +450 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.37.1.rbi +2609 -0
- data/sorbet/rbi/gems/rubocop-performance.rbi +593 -0
- data/sorbet/rbi/gems/rubocop-performance@1.24.0.rbi +3359 -0
- data/sorbet/rbi/gems/rubocop-rake.rbi +87 -0
- data/sorbet/rbi/gems/rubocop-rake@0.7.1.rbi +328 -0
- data/sorbet/rbi/gems/rubocop-rubycw.rbi +40 -0
- data/sorbet/rbi/gems/rubocop-rubycw@0.2.2.rbi +91 -0
- data/sorbet/rbi/gems/rubocop.rbi +10554 -0
- data/sorbet/rbi/gems/rubocop@1.75.1.rbi +61875 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +321 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +28 -0
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji.rbi +18 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/web_author.rbi +20 -0
- data/sorbet/rbi/gems/webmock.rbi +512 -0
- data/sorbet/rbi/gems/webmock@3.25.1.rbi +1792 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard.rbi +36 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/rbi/gems/zeitwerk.rbi +240 -0
- data/sorbet/rbi/gems/zeitwerk@2.7.2.rbi +1141 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +188 -0
@@ -0,0 +1,87 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop-rake/all/rubocop-rake.rbi
|
9
|
+
#
|
10
|
+
# rubocop-rake-0.7.1
|
11
|
+
|
12
|
+
module RuboCop
|
13
|
+
end
|
14
|
+
module RuboCop::Rake
|
15
|
+
end
|
16
|
+
class RuboCop::Rake::Error < StandardError
|
17
|
+
end
|
18
|
+
class RuboCop::Rake::Plugin < LintRoller::Plugin
|
19
|
+
def about; end
|
20
|
+
def rules(_context); end
|
21
|
+
def supported?(context); end
|
22
|
+
end
|
23
|
+
module RuboCop::Cop
|
24
|
+
end
|
25
|
+
module RuboCop::Cop::Rake
|
26
|
+
end
|
27
|
+
module RuboCop::Cop::Rake::Helper
|
28
|
+
end
|
29
|
+
module RuboCop::Cop::Rake::Helper::ClassDefinition
|
30
|
+
def class_definition?(param0 = nil); end
|
31
|
+
def in_class_definition?(node); end
|
32
|
+
extend RuboCop::AST::NodePattern::Macros
|
33
|
+
extend RuboCop::Cop::Rake::Helper::ClassDefinition
|
34
|
+
end
|
35
|
+
module RuboCop::Cop::Rake::Helper::OnTask
|
36
|
+
def on_send(node); end
|
37
|
+
def task?(param0 = nil); end
|
38
|
+
extend RuboCop::AST::NodePattern::Macros
|
39
|
+
end
|
40
|
+
module RuboCop::Cop::Rake::Helper::TaskDefinition
|
41
|
+
def in_task_or_namespace?(node); end
|
42
|
+
def task_or_namespace?(param0 = nil); end
|
43
|
+
extend RuboCop::AST::NodePattern::Macros
|
44
|
+
extend RuboCop::Cop::Rake::Helper::TaskDefinition
|
45
|
+
end
|
46
|
+
module RuboCop::Cop::Rake::Helper::TaskName
|
47
|
+
def task_name(node); end
|
48
|
+
extend RuboCop::Cop::Rake::Helper::TaskName
|
49
|
+
end
|
50
|
+
module RuboCop::Cop::Rake::Helper::OnNamespace
|
51
|
+
def namespace?(param0 = nil); end
|
52
|
+
def on_send(node); end
|
53
|
+
extend RuboCop::AST::NodePattern::Macros
|
54
|
+
end
|
55
|
+
class RuboCop::Cop::Rake::ClassDefinitionInTask < RuboCop::Cop::Base
|
56
|
+
def on_class(node); end
|
57
|
+
def on_module(node); end
|
58
|
+
end
|
59
|
+
class RuboCop::Cop::Rake::Desc < RuboCop::Cop::Base
|
60
|
+
def can_insert_desc_to?(parent); end
|
61
|
+
def on_task(node); end
|
62
|
+
def parent_and_task(task_node); end
|
63
|
+
def prerequisites(param0 = nil); end
|
64
|
+
def task_with_desc?(node); end
|
65
|
+
extend RuboCop::Cop::AutoCorrector
|
66
|
+
include RuboCop::Cop::Rake::Helper::OnTask
|
67
|
+
end
|
68
|
+
class RuboCop::Cop::Rake::DuplicateTask < RuboCop::Cop::Base
|
69
|
+
def initialize(*); end
|
70
|
+
def message_for_dup(previous:, current:, task_name:); end
|
71
|
+
def namespaces(node); end
|
72
|
+
def on_task(node); end
|
73
|
+
def source_location(node); end
|
74
|
+
include RuboCop::Cop::Rake::Helper::OnTask
|
75
|
+
end
|
76
|
+
class RuboCop::Cop::Rake::DuplicateNamespace < RuboCop::Cop::Base
|
77
|
+
def initialize(*); end
|
78
|
+
def message_for_dup(previous:, current:, namespace:); end
|
79
|
+
def namespaces(node); end
|
80
|
+
def on_namespace(node); end
|
81
|
+
def source_location(node); end
|
82
|
+
include RuboCop::Cop::Rake::Helper::OnNamespace
|
83
|
+
end
|
84
|
+
class RuboCop::Cop::Rake::MethodDefinitionInTask < RuboCop::Cop::Base
|
85
|
+
def on_def(node); end
|
86
|
+
def on_defs(node); end
|
87
|
+
end
|
@@ -0,0 +1,328 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `rubocop-rake` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rubocop-rake`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://rubocop-rake//lib/rubocop/rake/version.rb#3
|
9
|
+
module RuboCop; end
|
10
|
+
|
11
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#4
|
12
|
+
module RuboCop::Cop; end
|
13
|
+
|
14
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#5
|
15
|
+
module RuboCop::Cop::Rake; end
|
16
|
+
|
17
|
+
# Detects class or module definition in a task or namespace,
|
18
|
+
# because it is defined to the top level.
|
19
|
+
# It is confusing because the scope looks in the task or namespace,
|
20
|
+
# but actually it is defined to the top level.
|
21
|
+
#
|
22
|
+
# @example
|
23
|
+
# # bad
|
24
|
+
# task :foo do
|
25
|
+
# class C
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
#
|
29
|
+
# # bad
|
30
|
+
# namespace :foo do
|
31
|
+
# module M
|
32
|
+
# end
|
33
|
+
# end
|
34
|
+
#
|
35
|
+
# # good - It is also defined to the top level,
|
36
|
+
# # but it looks expected behavior.
|
37
|
+
# class C
|
38
|
+
# end
|
39
|
+
# task :foo do
|
40
|
+
# end
|
41
|
+
#
|
42
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#31
|
43
|
+
class RuboCop::Cop::Rake::ClassDefinitionInTask < ::RuboCop::Cop::Base
|
44
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
|
45
|
+
def on_class(node); end
|
46
|
+
|
47
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
|
48
|
+
def on_module(node); end
|
49
|
+
end
|
50
|
+
|
51
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#32
|
52
|
+
RuboCop::Cop::Rake::ClassDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
|
53
|
+
|
54
|
+
# Rake task definition should have a description with `desc` method.
|
55
|
+
# It is useful as a documentation of task. And Rake does not display
|
56
|
+
# task that does not have `desc` by `rake -T`.
|
57
|
+
#
|
58
|
+
# Note: This cop does not require description for the default task,
|
59
|
+
# because the default task is executed with `rake` without command.
|
60
|
+
#
|
61
|
+
# @example
|
62
|
+
# # bad
|
63
|
+
# task :do_something
|
64
|
+
#
|
65
|
+
# # bad
|
66
|
+
# task :do_something do
|
67
|
+
# end
|
68
|
+
#
|
69
|
+
# # good
|
70
|
+
# desc 'Do something'
|
71
|
+
# task :do_something
|
72
|
+
#
|
73
|
+
# # good
|
74
|
+
# desc 'Do something'
|
75
|
+
# task :do_something do
|
76
|
+
# end
|
77
|
+
#
|
78
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#30
|
79
|
+
class RuboCop::Cop::Rake::Desc < ::RuboCop::Cop::Base
|
80
|
+
include ::RuboCop::Cop::Rake::Helper::OnTask
|
81
|
+
extend ::RuboCop::Cop::AutoCorrector
|
82
|
+
|
83
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#40
|
84
|
+
def on_task(node); end
|
85
|
+
|
86
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#36
|
87
|
+
def prerequisites(param0 = T.unsafe(nil)); end
|
88
|
+
|
89
|
+
private
|
90
|
+
|
91
|
+
# @return [Boolean]
|
92
|
+
#
|
93
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#76
|
94
|
+
def can_insert_desc_to?(parent); end
|
95
|
+
|
96
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#62
|
97
|
+
def parent_and_task(task_node); end
|
98
|
+
|
99
|
+
# @return [Boolean]
|
100
|
+
#
|
101
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#50
|
102
|
+
def task_with_desc?(node); end
|
103
|
+
end
|
104
|
+
|
105
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#34
|
106
|
+
RuboCop::Cop::Rake::Desc::MSG = T.let(T.unsafe(nil), String)
|
107
|
+
|
108
|
+
# If namespaces are defined with the same name, Rake executes the both namespaces
|
109
|
+
# in definition order.
|
110
|
+
# It is redundant. You should squash them into one definition.
|
111
|
+
# This cop detects it.
|
112
|
+
#
|
113
|
+
# @example
|
114
|
+
# # bad
|
115
|
+
# namespace :foo do
|
116
|
+
# task :bar do
|
117
|
+
# end
|
118
|
+
# end
|
119
|
+
# namespace :foo do
|
120
|
+
# task :hoge do
|
121
|
+
# end
|
122
|
+
# end
|
123
|
+
#
|
124
|
+
# # good
|
125
|
+
# namespace :foo do
|
126
|
+
# task :bar do
|
127
|
+
# end
|
128
|
+
# task :hoge do
|
129
|
+
# end
|
130
|
+
# end
|
131
|
+
#
|
132
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#30
|
133
|
+
class RuboCop::Cop::Rake::DuplicateNamespace < ::RuboCop::Cop::Base
|
134
|
+
include ::RuboCop::Cop::Rake::Helper::OnNamespace
|
135
|
+
|
136
|
+
# @return [DuplicateNamespace] a new instance of DuplicateNamespace
|
137
|
+
#
|
138
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#35
|
139
|
+
def initialize(*_arg0); end
|
140
|
+
|
141
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#67
|
142
|
+
def message_for_dup(previous:, current:, namespace:); end
|
143
|
+
|
144
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#53
|
145
|
+
def namespaces(node); end
|
146
|
+
|
147
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#40
|
148
|
+
def on_namespace(node); end
|
149
|
+
|
150
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#76
|
151
|
+
def source_location(node); end
|
152
|
+
end
|
153
|
+
|
154
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#33
|
155
|
+
RuboCop::Cop::Rake::DuplicateNamespace::MSG = T.let(T.unsafe(nil), String)
|
156
|
+
|
157
|
+
# If tasks are defined with the same name, Rake executes the both tasks
|
158
|
+
# in definition order.
|
159
|
+
# It is misleading sometimes. You should squash them into one definition.
|
160
|
+
# This cop detects it.
|
161
|
+
#
|
162
|
+
# @example
|
163
|
+
# # bad
|
164
|
+
# task :foo do
|
165
|
+
# p 'foo 1'
|
166
|
+
# end
|
167
|
+
# task :foo do
|
168
|
+
# p 'foo 2'
|
169
|
+
# end
|
170
|
+
#
|
171
|
+
# # good
|
172
|
+
# task :foo do
|
173
|
+
# p 'foo 1'
|
174
|
+
# p 'foo 2'
|
175
|
+
# end
|
176
|
+
#
|
177
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#26
|
178
|
+
class RuboCop::Cop::Rake::DuplicateTask < ::RuboCop::Cop::Base
|
179
|
+
include ::RuboCop::Cop::Rake::Helper::OnTask
|
180
|
+
|
181
|
+
# @return [DuplicateTask] a new instance of DuplicateTask
|
182
|
+
#
|
183
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#31
|
184
|
+
def initialize(*_arg0); end
|
185
|
+
|
186
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#66
|
187
|
+
def message_for_dup(previous:, current:, task_name:); end
|
188
|
+
|
189
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#52
|
190
|
+
def namespaces(node); end
|
191
|
+
|
192
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#36
|
193
|
+
def on_task(node); end
|
194
|
+
|
195
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#75
|
196
|
+
def source_location(node); end
|
197
|
+
end
|
198
|
+
|
199
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#29
|
200
|
+
RuboCop::Cop::Rake::DuplicateTask::MSG = T.let(T.unsafe(nil), String)
|
201
|
+
|
202
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#6
|
203
|
+
module RuboCop::Cop::Rake::Helper; end
|
204
|
+
|
205
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#7
|
206
|
+
module RuboCop::Cop::Rake::Helper::ClassDefinition
|
207
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
208
|
+
extend ::RuboCop::Cop::Rake::Helper::ClassDefinition
|
209
|
+
|
210
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#11
|
211
|
+
def class_definition?(param0 = T.unsafe(nil)); end
|
212
|
+
|
213
|
+
# @return [Boolean]
|
214
|
+
#
|
215
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#22
|
216
|
+
def in_class_definition?(node); end
|
217
|
+
end
|
218
|
+
|
219
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#7
|
220
|
+
module RuboCop::Cop::Rake::Helper::OnNamespace
|
221
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
222
|
+
|
223
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#10
|
224
|
+
def namespace?(param0 = T.unsafe(nil)); end
|
225
|
+
|
226
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#14
|
227
|
+
def on_send(node); end
|
228
|
+
end
|
229
|
+
|
230
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#7
|
231
|
+
module RuboCop::Cop::Rake::Helper::OnTask
|
232
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
233
|
+
|
234
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#16
|
235
|
+
def on_send(node); end
|
236
|
+
|
237
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#12
|
238
|
+
def task?(param0 = T.unsafe(nil)); end
|
239
|
+
end
|
240
|
+
|
241
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#10
|
242
|
+
RuboCop::Cop::Rake::Helper::OnTask::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
243
|
+
|
244
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#7
|
245
|
+
module RuboCop::Cop::Rake::Helper::TaskDefinition
|
246
|
+
extend ::RuboCop::AST::NodePattern::Macros
|
247
|
+
extend ::RuboCop::Cop::Rake::Helper::TaskDefinition
|
248
|
+
|
249
|
+
# @return [Boolean]
|
250
|
+
#
|
251
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#19
|
252
|
+
def in_task_or_namespace?(node); end
|
253
|
+
|
254
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#11
|
255
|
+
def task_or_namespace?(param0 = T.unsafe(nil)); end
|
256
|
+
end
|
257
|
+
|
258
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#7
|
259
|
+
module RuboCop::Cop::Rake::Helper::TaskName
|
260
|
+
extend ::RuboCop::Cop::Rake::Helper::TaskName
|
261
|
+
|
262
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#10
|
263
|
+
def task_name(node); end
|
264
|
+
end
|
265
|
+
|
266
|
+
# Detects method definition in a task or namespace,
|
267
|
+
# because it is defined to the top level.
|
268
|
+
# It is confusing because the scope looks in the task or namespace,
|
269
|
+
# but actually it is defined to the top level.
|
270
|
+
#
|
271
|
+
# @example
|
272
|
+
# # bad
|
273
|
+
# task :foo do
|
274
|
+
# def helper_method
|
275
|
+
# do_something
|
276
|
+
# end
|
277
|
+
# end
|
278
|
+
#
|
279
|
+
# # bad
|
280
|
+
# namespace :foo do
|
281
|
+
# def helper_method
|
282
|
+
# do_something
|
283
|
+
# end
|
284
|
+
# end
|
285
|
+
#
|
286
|
+
# # good - It is also defined to the top level,
|
287
|
+
# # but it looks expected behavior.
|
288
|
+
# def helper_method
|
289
|
+
# end
|
290
|
+
# task :foo do
|
291
|
+
# end
|
292
|
+
#
|
293
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#33
|
294
|
+
class RuboCop::Cop::Rake::MethodDefinitionInTask < ::RuboCop::Cop::Base
|
295
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
|
296
|
+
def on_def(node); end
|
297
|
+
|
298
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
|
299
|
+
def on_defs(node); end
|
300
|
+
end
|
301
|
+
|
302
|
+
# source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#34
|
303
|
+
RuboCop::Cop::Rake::MethodDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
|
304
|
+
|
305
|
+
# source://rubocop-rake//lib/rubocop/rake/version.rb#4
|
306
|
+
module RuboCop::Rake; end
|
307
|
+
|
308
|
+
# source://rubocop-rake//lib/rubocop/rake.rb#8
|
309
|
+
class RuboCop::Rake::Error < ::StandardError; end
|
310
|
+
|
311
|
+
# A plugin that integrates RuboCop Rake with RuboCop's plugin system.
|
312
|
+
#
|
313
|
+
# source://rubocop-rake//lib/rubocop/rake/plugin.rb#8
|
314
|
+
class RuboCop::Rake::Plugin < ::LintRoller::Plugin
|
315
|
+
# source://rubocop-rake//lib/rubocop/rake/plugin.rb#9
|
316
|
+
def about; end
|
317
|
+
|
318
|
+
# source://rubocop-rake//lib/rubocop/rake/plugin.rb#22
|
319
|
+
def rules(_context); end
|
320
|
+
|
321
|
+
# @return [Boolean]
|
322
|
+
#
|
323
|
+
# source://rubocop-rake//lib/rubocop/rake/plugin.rb#18
|
324
|
+
def supported?(context); end
|
325
|
+
end
|
326
|
+
|
327
|
+
# source://rubocop-rake//lib/rubocop/rake/version.rb#5
|
328
|
+
RuboCop::Rake::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop-rubycw/all/rubocop-rubycw.rbi
|
9
|
+
#
|
10
|
+
# rubocop-rubycw-0.2.2
|
11
|
+
|
12
|
+
module RuboCop
|
13
|
+
end
|
14
|
+
module RuboCop::Rubycw
|
15
|
+
end
|
16
|
+
class RuboCop::Rubycw::Error < StandardError
|
17
|
+
end
|
18
|
+
class RuboCop::Rubycw::Plugin < LintRoller::Plugin
|
19
|
+
def about; end
|
20
|
+
def rules(_context); end
|
21
|
+
def supported?(context); end
|
22
|
+
end
|
23
|
+
module RuboCop::Rubycw::WarningCapturer
|
24
|
+
def self.capture(source); end
|
25
|
+
def self.start; end
|
26
|
+
def self.stop; end
|
27
|
+
def self.warnings; end
|
28
|
+
end
|
29
|
+
module Warning
|
30
|
+
def self.warn(*message, **kwargs); end
|
31
|
+
end
|
32
|
+
module RuboCop::Cop
|
33
|
+
end
|
34
|
+
module RuboCop::Cop::Rubycw
|
35
|
+
end
|
36
|
+
class RuboCop::Cop::Rubycw::Rubycw < RuboCop::Cop::Base
|
37
|
+
def on_new_investigation; end
|
38
|
+
def warnings(source); end
|
39
|
+
include RuboCop::Cop::RangeHelp
|
40
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `rubocop-rubycw` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem rubocop-rubycw`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/version.rb#1
|
9
|
+
module RuboCop; end
|
10
|
+
|
11
|
+
# source://rubocop-rubycw//lib/rubocop/cop/rubycw/rubycw.rb#4
|
12
|
+
module RuboCop::Cop; end
|
13
|
+
|
14
|
+
# source://rubocop-rubycw//lib/rubocop/cop/rubycw/rubycw.rb#5
|
15
|
+
module RuboCop::Cop::Rubycw; end
|
16
|
+
|
17
|
+
# Execute `ruby -cw` and wrap the warning as RuboCop offense.
|
18
|
+
#
|
19
|
+
# source://rubocop-rubycw//lib/rubocop/cop/rubycw/rubycw.rb#7
|
20
|
+
class RuboCop::Cop::Rubycw::Rubycw < ::RuboCop::Cop::Base
|
21
|
+
include ::RuboCop::Cop::RangeHelp
|
22
|
+
|
23
|
+
# source://rubocop-rubycw//lib/rubocop/cop/rubycw/rubycw.rb#10
|
24
|
+
def on_new_investigation; end
|
25
|
+
|
26
|
+
# source://rubocop-rubycw//lib/rubocop/cop/rubycw/rubycw.rb#22
|
27
|
+
def warnings(source); end
|
28
|
+
end
|
29
|
+
|
30
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/version.rb#2
|
31
|
+
module RuboCop::Rubycw; end
|
32
|
+
|
33
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw.rb#9
|
34
|
+
RuboCop::Rubycw::CONFIG = T.let(T.unsafe(nil), Hash)
|
35
|
+
|
36
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw.rb#8
|
37
|
+
RuboCop::Rubycw::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
|
38
|
+
|
39
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw.rb#5
|
40
|
+
class RuboCop::Rubycw::Error < ::StandardError; end
|
41
|
+
|
42
|
+
# Your code goes here...
|
43
|
+
#
|
44
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw.rb#7
|
45
|
+
RuboCop::Rubycw::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
|
46
|
+
|
47
|
+
# A plugin that integrates RuboCop Rubycw with RuboCop's plugin system.
|
48
|
+
#
|
49
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/plugin.rb#8
|
50
|
+
class RuboCop::Rubycw::Plugin < ::LintRoller::Plugin
|
51
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/plugin.rb#9
|
52
|
+
def about; end
|
53
|
+
|
54
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/plugin.rb#22
|
55
|
+
def rules(_context); end
|
56
|
+
|
57
|
+
# @return [Boolean]
|
58
|
+
#
|
59
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/plugin.rb#18
|
60
|
+
def supported?(context); end
|
61
|
+
end
|
62
|
+
|
63
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/version.rb#3
|
64
|
+
RuboCop::Rubycw::VERSION = T.let(T.unsafe(nil), String)
|
65
|
+
|
66
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#5
|
67
|
+
module RuboCop::Rubycw::WarningCapturer
|
68
|
+
class << self
|
69
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#22
|
70
|
+
def capture(source); end
|
71
|
+
|
72
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#30
|
73
|
+
def start; end
|
74
|
+
|
75
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#36
|
76
|
+
def stop; end
|
77
|
+
|
78
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#41
|
79
|
+
def warnings; end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#7
|
84
|
+
module Warning
|
85
|
+
extend ::Warning
|
86
|
+
|
87
|
+
class << self
|
88
|
+
# source://rubocop-rubycw//lib/rubocop/rubycw/warning_capturer.rb#8
|
89
|
+
def warn(*message, **kwargs); end
|
90
|
+
end
|
91
|
+
end
|