lunchmoney 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +7 -0
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/check_pipeline.yml +2 -2
- data/.github/workflows/ci.yml +10 -2
- data/.github/workflows/release_pipeline.yml +1 -1
- data/.mdlrc +5 -0
- data/.rubocop.yml +1 -0
- data/.simplecov +30 -0
- data/.toys/.toys.rb +1 -0
- data/.toys/coverage.rb +5 -0
- data/.toys/mdl.rb +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +64 -37
- data/LICENSE +1 -1
- data/README.md +7 -3
- data/lib/lunchmoney/objects/crypto.rb +6 -1
- data/lib/lunchmoney/objects/object.rb +3 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +11 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.rbi → activesupport@7.1.3.2.rbi} +23 -23
- data/sorbet/rbi/gems/chef-utils@18.4.2.rbi +8 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/dotenv@3.1.0.rbi +300 -0
- data/sorbet/rbi/gems/{i18n@1.14.1.rbi → i18n@1.14.4.rbi} +48 -43
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +127 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +444 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.22.3.rbi} +19 -18
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +313 -0
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +580 -0
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +628 -0
- data/sorbet/rbi/gems/{prism@0.19.0.rbi → prism@0.24.0.rbi} +8266 -7109
- data/sorbet/rbi/gems/{rack@3.0.8.rbi → rack@3.0.10.rbi} +83 -83
- data/sorbet/rbi/gems/{rbi@0.1.6.rbi → rbi@0.1.9.rbi} +114 -13
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.2.rbi} +61 -50
- data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +34 -0
- data/sorbet/rbi/gems/{rubocop-rails@2.23.1.rbi → rubocop-rails@2.24.1.rbi} +159 -147
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.8.0.rbi} +24 -42
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.62.1.rbi} +807 -646
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +238 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.13.1.rbi} +83 -62
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +89 -50
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +8 -0
- data/sorbet/rbi/gems/{webmock@3.20.0.rbi → webmock@3.23.0.rbi} +25 -25
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +194 -58
- data/sorbet/tapioca/require.rb +1 -0
- metadata +39 -23
- data/.DS_Store +0 -0
- data/.github/workflows/publish_gem.yml +0 -29
- data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
- /data/sorbet/rbi/gems/{bigdecimal@3.1.6.rbi → bigdecimal@3.1.7.rbi} +0 -0
- /data/sorbet/rbi/gems/{drb@2.2.0.rbi → drb@2.2.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-shopify@2.14.0.rbi → rubocop-shopify@2.15.1.rbi} +0 -0
@@ -100,15 +100,18 @@ class RuboCop::CLI
|
|
100
100
|
# source://rubocop//lib/rubocop/cli.rb#152
|
101
101
|
def act_on_options; end
|
102
102
|
|
103
|
-
# source://rubocop//lib/rubocop/cli.rb#
|
103
|
+
# source://rubocop//lib/rubocop/cli.rb#194
|
104
104
|
def apply_default_formatter; end
|
105
105
|
|
106
106
|
# source://rubocop//lib/rubocop/cli.rb#121
|
107
107
|
def execute_runners; end
|
108
108
|
|
109
|
+
# source://rubocop//lib/rubocop/cli.rb#178
|
110
|
+
def handle_editor_mode; end
|
111
|
+
|
109
112
|
# @raise [Finished]
|
110
113
|
#
|
111
|
-
# source://rubocop//lib/rubocop/cli.rb#
|
114
|
+
# source://rubocop//lib/rubocop/cli.rb#183
|
112
115
|
def handle_exiting_options; end
|
113
116
|
|
114
117
|
# source://rubocop//lib/rubocop/cli.rb#140
|
@@ -123,7 +126,7 @@ class RuboCop::CLI
|
|
123
126
|
# source://rubocop//lib/rubocop/cli.rb#117
|
124
127
|
def run_command(name); end
|
125
128
|
|
126
|
-
# source://rubocop//lib/rubocop/cli.rb#
|
129
|
+
# source://rubocop//lib/rubocop/cli.rb#170
|
127
130
|
def set_options_to_config_loader; end
|
128
131
|
|
129
132
|
# source://rubocop//lib/rubocop/cli.rb#129
|
@@ -166,77 +169,83 @@ end
|
|
166
169
|
class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
|
167
170
|
# @api private
|
168
171
|
#
|
169
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
172
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#25
|
170
173
|
def run; end
|
171
174
|
|
172
175
|
private
|
173
176
|
|
174
177
|
# @api private
|
175
178
|
#
|
176
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
179
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#107
|
177
180
|
def add_formatter; end
|
178
181
|
|
179
182
|
# @api private
|
180
183
|
#
|
181
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
184
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#115
|
182
185
|
def add_inheritance_from_auto_generated_file(config_file); end
|
183
186
|
|
184
187
|
# @api private
|
185
188
|
#
|
186
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
189
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#111
|
187
190
|
def execute_runner; end
|
188
191
|
|
189
192
|
# @api private
|
190
193
|
#
|
191
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
194
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#136
|
192
195
|
def existing_configuration(config_file); end
|
193
196
|
|
194
197
|
# @api private
|
195
198
|
#
|
196
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
199
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#65
|
197
200
|
def line_length_cop(config); end
|
198
201
|
|
199
202
|
# @api private
|
200
203
|
# @return [Boolean]
|
201
204
|
#
|
202
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
205
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#53
|
203
206
|
def line_length_enabled?(config); end
|
204
207
|
|
205
208
|
# @api private
|
206
209
|
#
|
207
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
210
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#61
|
208
211
|
def max_line_length(config); end
|
209
212
|
|
210
213
|
# @api private
|
211
214
|
#
|
212
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
215
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#34
|
213
216
|
def maybe_run_line_length_cop; end
|
214
217
|
|
215
218
|
# @api private
|
216
219
|
# @return [Boolean]
|
217
220
|
#
|
218
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
221
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#73
|
222
|
+
def only_exclude?; end
|
223
|
+
|
224
|
+
# @api private
|
225
|
+
# @return [Boolean]
|
226
|
+
#
|
227
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#162
|
219
228
|
def options_config_in_root?; end
|
220
229
|
|
221
230
|
# @api private
|
222
231
|
# @return [Boolean]
|
223
232
|
#
|
224
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
233
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#69
|
225
234
|
def options_has_only_flag?; end
|
226
235
|
|
227
236
|
# @api private
|
228
237
|
#
|
229
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
238
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#153
|
230
239
|
def relative_path_to_todo_from_options_config; end
|
231
240
|
|
232
241
|
# @api private
|
233
242
|
#
|
234
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
243
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#100
|
235
244
|
def reset_config_and_auto_gen_file; end
|
236
245
|
|
237
246
|
# @api private
|
238
247
|
#
|
239
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
248
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#91
|
240
249
|
def run_all_cops(line_length_contents); end
|
241
250
|
|
242
251
|
# Do an initial run with only Layout/LineLength so that cops that
|
@@ -245,23 +254,23 @@ class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
|
|
245
254
|
#
|
246
255
|
# @api private
|
247
256
|
#
|
248
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
257
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#80
|
249
258
|
def run_line_length_cop; end
|
250
259
|
|
251
260
|
# @api private
|
252
261
|
# @return [Boolean]
|
253
262
|
#
|
254
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
263
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#57
|
255
264
|
def same_max_line_length?(config1, config2); end
|
256
265
|
|
257
266
|
# @api private
|
258
267
|
#
|
259
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
268
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48
|
260
269
|
def skip_line_length_cop(reason); end
|
261
270
|
|
262
271
|
# @api private
|
263
272
|
#
|
264
|
-
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#
|
273
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#142
|
265
274
|
def write_config_file(file_name, file_string, rubocop_yml_contents); end
|
266
275
|
end
|
267
276
|
|
@@ -288,7 +297,12 @@ RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(n
|
|
288
297
|
# @api private
|
289
298
|
#
|
290
299
|
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#20
|
291
|
-
RuboCop::CLI::Command::AutoGenerateConfig::
|
300
|
+
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_COPS = T.let(T.unsafe(nil), String)
|
301
|
+
|
302
|
+
# @api private
|
303
|
+
#
|
304
|
+
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#22
|
305
|
+
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_EXCLUDE = T.let(T.unsafe(nil), String)
|
292
306
|
|
293
307
|
# @api private
|
294
308
|
#
|
@@ -426,7 +440,7 @@ RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String)
|
|
426
440
|
# @api private
|
427
441
|
#
|
428
442
|
# source://rubocop//lib/rubocop/cli/command/lsp.rb#10
|
429
|
-
class RuboCop::CLI::Command::
|
443
|
+
class RuboCop::CLI::Command::LSP < ::RuboCop::CLI::Command::Base
|
430
444
|
# @api private
|
431
445
|
#
|
432
446
|
# source://rubocop//lib/rubocop/cli/command/lsp.rb#13
|
@@ -985,7 +999,7 @@ class RuboCop::Config
|
|
985
999
|
# source://rubocop//lib/rubocop/config.rb#237
|
986
1000
|
def base_dir_for_path_parameters; end
|
987
1001
|
|
988
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1002
|
+
# source://rubocop//lib/rubocop/config.rb#266
|
989
1003
|
def bundler_lock_file_path; end
|
990
1004
|
|
991
1005
|
# source://rubocop//lib/rubocop/config.rb#51
|
@@ -1061,7 +1075,7 @@ class RuboCop::Config
|
|
1061
1075
|
# source://rubocop//lib/rubocop/config.rb#153
|
1062
1076
|
def for_department(department_name); end
|
1063
1077
|
|
1064
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1078
|
+
# source://rubocop//lib/rubocop/config.rb#289
|
1065
1079
|
def inspect; end
|
1066
1080
|
|
1067
1081
|
# True if this is a config file that is shipped with RuboCop
|
@@ -1094,6 +1108,9 @@ class RuboCop::Config
|
|
1094
1108
|
# source://forwardable/1.3.3/forwardable.rb#231
|
1095
1109
|
def merge(*args, **_arg1, &block); end
|
1096
1110
|
|
1111
|
+
# source://rubocop//lib/rubocop/config.rb#247
|
1112
|
+
def parser_engine; end
|
1113
|
+
|
1097
1114
|
# source://rubocop//lib/rubocop/config.rb#228
|
1098
1115
|
def path_relative_to_config(path); end
|
1099
1116
|
|
@@ -1103,7 +1120,7 @@ class RuboCop::Config
|
|
1103
1120
|
# source://rubocop//lib/rubocop/config.rb#220
|
1104
1121
|
def patterns_to_include; end
|
1105
1122
|
|
1106
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1123
|
+
# source://rubocop//lib/rubocop/config.rb#277
|
1107
1124
|
def pending_cops; end
|
1108
1125
|
|
1109
1126
|
# Returns true if there's a chance that an Include pattern matches hidden
|
@@ -1120,10 +1137,10 @@ class RuboCop::Config
|
|
1120
1137
|
# source://rubocop//lib/rubocop/config.rb#71
|
1121
1138
|
def signature; end
|
1122
1139
|
|
1123
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1140
|
+
# source://rubocop//lib/rubocop/config.rb#262
|
1124
1141
|
def smart_loaded_path; end
|
1125
1142
|
|
1126
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1143
|
+
# source://rubocop//lib/rubocop/config.rb#251
|
1127
1144
|
def target_rails_version; end
|
1128
1145
|
|
1129
1146
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -1149,18 +1166,18 @@ class RuboCop::Config
|
|
1149
1166
|
|
1150
1167
|
private
|
1151
1168
|
|
1152
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1169
|
+
# source://rubocop//lib/rubocop/config.rb#324
|
1153
1170
|
def department_of(qualified_cop_name); end
|
1154
1171
|
|
1155
1172
|
# @return [Boolean]
|
1156
1173
|
#
|
1157
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1174
|
+
# source://rubocop//lib/rubocop/config.rb#312
|
1158
1175
|
def enable_cop?(qualified_cop_name, cop_options); end
|
1159
1176
|
|
1160
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1177
|
+
# source://rubocop//lib/rubocop/config.rb#299
|
1161
1178
|
def read_rails_version_from_bundler_lock_file; end
|
1162
1179
|
|
1163
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1180
|
+
# source://rubocop//lib/rubocop/config.rb#295
|
1164
1181
|
def target_rails_version_from_bundler_lock_file; end
|
1165
1182
|
|
1166
1183
|
class << self
|
@@ -1236,7 +1253,7 @@ class RuboCop::ConfigFinder
|
|
1236
1253
|
|
1237
1254
|
# @api private
|
1238
1255
|
#
|
1239
|
-
# source://rubocop//lib/rubocop/config_finder.rb#
|
1256
|
+
# source://rubocop//lib/rubocop/config_finder.rb#69
|
1240
1257
|
def expand_path(path); end
|
1241
1258
|
|
1242
1259
|
# @api private
|
@@ -1252,11 +1269,16 @@ class RuboCop::ConfigFinder
|
|
1252
1269
|
# @api private
|
1253
1270
|
#
|
1254
1271
|
# source://rubocop//lib/rubocop/config_finder.rb#44
|
1272
|
+
def find_project_root_dot_config; end
|
1273
|
+
|
1274
|
+
# @api private
|
1275
|
+
#
|
1276
|
+
# source://rubocop//lib/rubocop/config_finder.rb#54
|
1255
1277
|
def find_user_dotfile; end
|
1256
1278
|
|
1257
1279
|
# @api private
|
1258
1280
|
#
|
1259
|
-
# source://rubocop//lib/rubocop/config_finder.rb#
|
1281
|
+
# source://rubocop//lib/rubocop/config_finder.rb#62
|
1260
1282
|
def find_user_xdg_config; end
|
1261
1283
|
end
|
1262
1284
|
end
|
@@ -2213,7 +2235,7 @@ class RuboCop::ConfigValidator
|
|
2213
2235
|
|
2214
2236
|
# @return [ConfigValidator] a new instance of ConfigValidator
|
2215
2237
|
#
|
2216
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2238
|
+
# source://rubocop//lib/rubocop/config_validator.rb#26
|
2217
2239
|
def initialize(config); end
|
2218
2240
|
|
2219
2241
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -2222,10 +2244,10 @@ class RuboCop::ConfigValidator
|
|
2222
2244
|
# source://forwardable/1.3.3/forwardable.rb#231
|
2223
2245
|
def smart_loaded_path(*args, **_arg1, &block); end
|
2224
2246
|
|
2225
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2247
|
+
# source://rubocop//lib/rubocop/config_validator.rb#62
|
2226
2248
|
def target_ruby_version; end
|
2227
2249
|
|
2228
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2250
|
+
# source://rubocop//lib/rubocop/config_validator.rb#32
|
2229
2251
|
def validate; end
|
2230
2252
|
|
2231
2253
|
# Validations that should only be run after all config resolving has
|
@@ -2234,76 +2256,76 @@ class RuboCop::ConfigValidator
|
|
2234
2256
|
# chain has been loaded so that only the final value is validated, and
|
2235
2257
|
# any obsolete but overridden values are ignored.
|
2236
2258
|
#
|
2237
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2259
|
+
# source://rubocop//lib/rubocop/config_validator.rb#58
|
2238
2260
|
def validate_after_resolution; end
|
2239
2261
|
|
2240
2262
|
# @raise [ValidationError]
|
2241
2263
|
#
|
2242
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2264
|
+
# source://rubocop//lib/rubocop/config_validator.rb#66
|
2243
2265
|
def validate_section_presence(name); end
|
2244
2266
|
|
2245
2267
|
private
|
2246
2268
|
|
2247
2269
|
# @raise [ValidationError]
|
2248
2270
|
#
|
2249
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2271
|
+
# source://rubocop//lib/rubocop/config_validator.rb#103
|
2250
2272
|
def alert_about_unrecognized_cops(invalid_cop_names); end
|
2251
2273
|
|
2252
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2274
|
+
# source://rubocop//lib/rubocop/config_validator.rb#253
|
2253
2275
|
def check_cop_config_value(hash, parent = T.unsafe(nil)); end
|
2254
2276
|
|
2255
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2277
|
+
# source://rubocop//lib/rubocop/config_validator.rb#76
|
2256
2278
|
def check_obsoletions; end
|
2257
2279
|
|
2258
2280
|
# @raise [ValidationError]
|
2259
2281
|
#
|
2260
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2282
|
+
# source://rubocop//lib/rubocop/config_validator.rb#83
|
2261
2283
|
def check_target_ruby; end
|
2262
2284
|
|
2263
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2285
|
+
# source://rubocop//lib/rubocop/config_validator.rb#194
|
2264
2286
|
def each_invalid_parameter(cop_name); end
|
2265
2287
|
|
2266
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2288
|
+
# source://rubocop//lib/rubocop/config_validator.rb#119
|
2267
2289
|
def list_unknown_cops(invalid_cop_names); end
|
2268
2290
|
|
2269
2291
|
# FIXME: Handling colors in exception messages like this is ugly.
|
2270
2292
|
#
|
2271
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2272
|
-
def
|
2293
|
+
# source://rubocop//lib/rubocop/config_validator.rb#273
|
2294
|
+
def param_error_message(parent, key, value, supposed_values); end
|
2273
2295
|
|
2274
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2296
|
+
# source://rubocop//lib/rubocop/config_validator.rb#241
|
2275
2297
|
def reject_conflicting_safe_settings; end
|
2276
2298
|
|
2277
2299
|
# @raise [ValidationError]
|
2278
2300
|
#
|
2279
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2301
|
+
# source://rubocop//lib/rubocop/config_validator.rb#232
|
2280
2302
|
def reject_mutually_exclusive_defaults; end
|
2281
2303
|
|
2282
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2304
|
+
# source://rubocop//lib/rubocop/config_validator.rb#141
|
2283
2305
|
def suggestion(name); end
|
2284
2306
|
|
2285
2307
|
# Returns the value of attribute target_ruby.
|
2286
2308
|
#
|
2287
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2309
|
+
# source://rubocop//lib/rubocop/config_validator.rb#74
|
2288
2310
|
def target_ruby; end
|
2289
2311
|
|
2290
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2312
|
+
# source://rubocop//lib/rubocop/config_validator.rb#206
|
2291
2313
|
def validate_enforced_styles(valid_cop_names); end
|
2292
2314
|
|
2293
2315
|
# @raise [ValidationError]
|
2294
2316
|
#
|
2295
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2317
|
+
# source://rubocop//lib/rubocop/config_validator.rb#168
|
2296
2318
|
def validate_new_cops_parameter; end
|
2297
2319
|
|
2298
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2320
|
+
# source://rubocop//lib/rubocop/config_validator.rb#179
|
2299
2321
|
def validate_parameter_names(valid_cop_names); end
|
2300
2322
|
|
2301
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2323
|
+
# source://rubocop//lib/rubocop/config_validator.rb#226
|
2302
2324
|
def validate_support_and_has_list(name, formats, valid); end
|
2303
2325
|
|
2304
2326
|
# @raise [ValidationError]
|
2305
2327
|
#
|
2306
|
-
# source://rubocop//lib/rubocop/config_validator.rb#
|
2328
|
+
# source://rubocop//lib/rubocop/config_validator.rb#157
|
2307
2329
|
def validate_syntax_cop; end
|
2308
2330
|
end
|
2309
2331
|
|
@@ -2312,6 +2334,9 @@ end
|
|
2312
2334
|
# source://rubocop//lib/rubocop/config_validator.rb#10
|
2313
2335
|
RuboCop::ConfigValidator::COMMON_PARAMS = T.let(T.unsafe(nil), Array)
|
2314
2336
|
|
2337
|
+
# source://rubocop//lib/rubocop/config_validator.rb#21
|
2338
|
+
RuboCop::ConfigValidator::CONFIG_CHECK_AUTOCORRECTS = T.let(T.unsafe(nil), Array)
|
2339
|
+
|
2315
2340
|
# source://rubocop//lib/rubocop/config_validator.rb#20
|
2316
2341
|
RuboCop::ConfigValidator::CONFIG_CHECK_DEPARTMENTS = T.let(T.unsafe(nil), Array)
|
2317
2342
|
|
@@ -2748,34 +2773,34 @@ module RuboCop::Cop::AutocorrectLogic
|
|
2748
2773
|
|
2749
2774
|
private
|
2750
2775
|
|
2751
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2776
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#51
|
2752
2777
|
def disable_offense(offense_range); end
|
2753
2778
|
|
2754
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2779
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#118
|
2755
2780
|
def disable_offense_at_end_of_line(range, eol_comment); end
|
2756
2781
|
|
2757
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2782
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#122
|
2758
2783
|
def disable_offense_before_and_after(range_by_lines); end
|
2759
2784
|
|
2760
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2785
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#61
|
2761
2786
|
def disable_offense_with_eol_or_surround_comment(range); end
|
2762
2787
|
|
2763
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2788
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#114
|
2764
2789
|
def max_line_length; end
|
2765
2790
|
|
2766
2791
|
# Expand the given range to include all of any lines it covers. Does not
|
2767
2792
|
# include newline at end of the last line.
|
2768
2793
|
#
|
2769
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2794
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104
|
2770
2795
|
def range_by_lines(range); end
|
2771
2796
|
|
2772
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2797
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#95
|
2773
2798
|
def range_of_first_line(range); end
|
2774
2799
|
|
2775
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2800
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#72
|
2776
2801
|
def surrounding_heredoc(offense_range); end
|
2777
2802
|
|
2778
|
-
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#
|
2803
|
+
# source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#83
|
2779
2804
|
def surrounding_percent_array(offense_range); end
|
2780
2805
|
end
|
2781
2806
|
|
@@ -2893,7 +2918,7 @@ class RuboCop::Cop::Base
|
|
2893
2918
|
|
2894
2919
|
# @return [Boolean]
|
2895
2920
|
#
|
2896
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2921
|
+
# source://rubocop//lib/rubocop/cop/base.rb#243
|
2897
2922
|
def active_support_extensions_enabled?; end
|
2898
2923
|
|
2899
2924
|
# Adds an offense that has no particular location.
|
@@ -2910,16 +2935,22 @@ class RuboCop::Cop::Base
|
|
2910
2935
|
# source://rubocop//lib/rubocop/cop/base.rb#172
|
2911
2936
|
def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end
|
2912
2937
|
|
2938
|
+
# @api private
|
2939
|
+
# @return [Boolean]
|
2940
|
+
#
|
2941
|
+
# source://rubocop//lib/rubocop/cop/base.rb#313
|
2942
|
+
def always_autocorrect?; end
|
2943
|
+
|
2913
2944
|
# Called before any investigation
|
2914
2945
|
#
|
2915
2946
|
# @api private
|
2916
2947
|
#
|
2917
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2948
|
+
# source://rubocop//lib/rubocop/cop/base.rb#299
|
2918
2949
|
def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end
|
2919
2950
|
|
2920
2951
|
# @api private
|
2921
2952
|
#
|
2922
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2953
|
+
# source://rubocop//lib/rubocop/cop/base.rb#284
|
2923
2954
|
def callbacks_needed; end
|
2924
2955
|
|
2925
2956
|
# Returns the value of attribute config.
|
@@ -2933,6 +2964,12 @@ class RuboCop::Cop::Base
|
|
2933
2964
|
# source://rubocop//lib/rubocop/cop/base.rb#227
|
2934
2965
|
def config_to_allow_offenses=(hash); end
|
2935
2966
|
|
2967
|
+
# @api private
|
2968
|
+
# @return [Boolean]
|
2969
|
+
#
|
2970
|
+
# source://rubocop//lib/rubocop/cop/base.rb#319
|
2971
|
+
def contextual_autocorrect?; end
|
2972
|
+
|
2936
2973
|
# Configuration Helpers
|
2937
2974
|
#
|
2938
2975
|
# source://rubocop//lib/rubocop/cop/base.rb#217
|
@@ -2943,7 +2980,7 @@ class RuboCop::Cop::Base
|
|
2943
2980
|
|
2944
2981
|
# @return [Boolean]
|
2945
2982
|
#
|
2946
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2983
|
+
# source://rubocop//lib/rubocop/cop/base.rb#255
|
2947
2984
|
def excluded_file?(file); end
|
2948
2985
|
|
2949
2986
|
# This method should be overridden when a cop's behavior depends
|
@@ -2965,7 +3002,7 @@ class RuboCop::Cop::Base
|
|
2965
3002
|
# source://rubocop//lib/rubocop/cop/base.rb#205
|
2966
3003
|
def external_dependency_checksum; end
|
2967
3004
|
|
2968
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3005
|
+
# source://rubocop//lib/rubocop/cop/base.rb#323
|
2969
3006
|
def inspect; end
|
2970
3007
|
|
2971
3008
|
# Gets called if no message is specified when calling `add_offense` or
|
@@ -2980,7 +3017,7 @@ class RuboCop::Cop::Base
|
|
2980
3017
|
|
2981
3018
|
# @deprecated Make potential errors with previous API more obvious
|
2982
3019
|
#
|
2983
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3020
|
+
# source://rubocop//lib/rubocop/cop/base.rb#275
|
2984
3021
|
def offenses; end
|
2985
3022
|
|
2986
3023
|
# Called after all on_... have been called
|
@@ -3003,9 +3040,12 @@ class RuboCop::Cop::Base
|
|
3003
3040
|
|
3004
3041
|
# There should be very limited reasons for a Cop to do it's own parsing
|
3005
3042
|
#
|
3006
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3043
|
+
# source://rubocop//lib/rubocop/cop/base.rb#260
|
3007
3044
|
def parse(source, path = T.unsafe(nil)); end
|
3008
3045
|
|
3046
|
+
# source://rubocop//lib/rubocop/cop/base.rb#235
|
3047
|
+
def parser_engine; end
|
3048
|
+
|
3009
3049
|
# Returns the value of attribute processed_source.
|
3010
3050
|
#
|
3011
3051
|
# source://rubocop//lib/rubocop/cop/base.rb#43
|
@@ -3015,15 +3055,15 @@ class RuboCop::Cop::Base
|
|
3015
3055
|
#
|
3016
3056
|
# @api private
|
3017
3057
|
#
|
3018
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3058
|
+
# source://rubocop//lib/rubocop/cop/base.rb#266
|
3019
3059
|
def ready; end
|
3020
3060
|
|
3021
3061
|
# @return [Boolean]
|
3022
3062
|
#
|
3023
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3063
|
+
# source://rubocop//lib/rubocop/cop/base.rb#247
|
3024
3064
|
def relevant_file?(file); end
|
3025
3065
|
|
3026
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3066
|
+
# source://rubocop//lib/rubocop/cop/base.rb#239
|
3027
3067
|
def target_rails_version; end
|
3028
3068
|
|
3029
3069
|
# source://rubocop//lib/rubocop/cop/base.rb#231
|
@@ -3031,91 +3071,83 @@ class RuboCop::Cop::Base
|
|
3031
3071
|
|
3032
3072
|
private
|
3033
3073
|
|
3034
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3074
|
+
# source://rubocop//lib/rubocop/cop/base.rb#451
|
3035
3075
|
def annotate(message); end
|
3036
3076
|
|
3037
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3077
|
+
# source://rubocop//lib/rubocop/cop/base.rb#335
|
3038
3078
|
def apply_correction(corrector); end
|
3039
3079
|
|
3040
3080
|
# @return [Symbol] offense status
|
3041
3081
|
#
|
3042
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3082
|
+
# source://rubocop//lib/rubocop/cop/base.rb#415
|
3043
3083
|
def attempt_correction(range, corrector); end
|
3044
3084
|
|
3045
3085
|
# Reserved for Cop::Cop
|
3046
3086
|
#
|
3047
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3087
|
+
# source://rubocop//lib/rubocop/cop/base.rb#331
|
3048
3088
|
def callback_argument(range); end
|
3049
3089
|
|
3050
3090
|
# Called to complete an investigation
|
3051
3091
|
#
|
3052
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3092
|
+
# source://rubocop//lib/rubocop/cop/base.rb#364
|
3053
3093
|
def complete_investigation; end
|
3054
3094
|
|
3055
3095
|
# @return [Symbol, Corrector] offense status
|
3056
3096
|
#
|
3057
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3097
|
+
# source://rubocop//lib/rubocop/cop/base.rb#389
|
3058
3098
|
def correct(range); end
|
3059
3099
|
|
3060
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3100
|
+
# source://rubocop//lib/rubocop/cop/base.rb#349
|
3061
3101
|
def current_corrector; end
|
3062
3102
|
|
3063
3103
|
# Reserved for Commissioner:
|
3064
3104
|
#
|
3065
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3105
|
+
# source://rubocop//lib/rubocop/cop/base.rb#341
|
3066
3106
|
def current_offense_locations; end
|
3067
3107
|
|
3068
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3108
|
+
# source://rubocop//lib/rubocop/cop/base.rb#353
|
3069
3109
|
def current_offenses; end
|
3070
3110
|
|
3071
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3111
|
+
# source://rubocop//lib/rubocop/cop/base.rb#345
|
3072
3112
|
def currently_disabled_lines; end
|
3073
3113
|
|
3074
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3114
|
+
# source://rubocop//lib/rubocop/cop/base.rb#479
|
3075
3115
|
def custom_severity; end
|
3076
3116
|
|
3077
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3117
|
+
# source://rubocop//lib/rubocop/cop/base.rb#475
|
3078
3118
|
def default_severity; end
|
3079
3119
|
|
3080
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3120
|
+
# source://rubocop//lib/rubocop/cop/base.rb#429
|
3081
3121
|
def disable_uncorrectable(range); end
|
3082
3122
|
|
3083
3123
|
# @return [Boolean]
|
3084
3124
|
#
|
3085
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3125
|
+
# source://rubocop//lib/rubocop/cop/base.rb#465
|
3086
3126
|
def enabled_line?(line_number); end
|
3087
3127
|
|
3088
3128
|
# @return [Boolean]
|
3089
3129
|
#
|
3090
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3130
|
+
# source://rubocop//lib/rubocop/cop/base.rb#457
|
3091
3131
|
def file_name_matches_any?(file, parameter, default_result); end
|
3092
3132
|
|
3093
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3133
|
+
# source://rubocop//lib/rubocop/cop/base.rb#447
|
3094
3134
|
def find_message(range, message); end
|
3095
3135
|
|
3096
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3136
|
+
# source://rubocop//lib/rubocop/cop/base.rb#471
|
3097
3137
|
def find_severity(_range, severity); end
|
3098
3138
|
|
3099
|
-
#
|
3100
|
-
#
|
3101
|
-
# @api private
|
3102
|
-
# @return [Boolean]
|
3103
|
-
#
|
3104
|
-
# source://rubocop//lib/rubocop/cop/base.rb#487
|
3105
|
-
def lsp_mode?; end
|
3106
|
-
|
3107
|
-
# source://rubocop//lib/rubocop/cop/base.rb#477
|
3139
|
+
# source://rubocop//lib/rubocop/cop/base.rb#492
|
3108
3140
|
def range_for_original(range); end
|
3109
3141
|
|
3110
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3142
|
+
# source://rubocop//lib/rubocop/cop/base.rb#436
|
3111
3143
|
def range_from_node_or_range(node_or_range); end
|
3112
3144
|
|
3113
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3145
|
+
# source://rubocop//lib/rubocop/cop/base.rb#384
|
3114
3146
|
def reset_investigation; end
|
3115
3147
|
|
3116
3148
|
# @return [Symbol] offense status
|
3117
3149
|
#
|
3118
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3150
|
+
# source://rubocop//lib/rubocop/cop/base.rb#404
|
3119
3151
|
def use_corrector(range, corrector); end
|
3120
3152
|
|
3121
3153
|
class << self
|
@@ -3135,7 +3167,7 @@ class RuboCop::Cop::Base
|
|
3135
3167
|
|
3136
3168
|
# @api private
|
3137
3169
|
#
|
3138
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3170
|
+
# source://rubocop//lib/rubocop/cop/base.rb#289
|
3139
3171
|
def callbacks_needed; end
|
3140
3172
|
|
3141
3173
|
# source://rubocop//lib/rubocop/cop/base.rb#93
|
@@ -3205,15 +3237,15 @@ class RuboCop::Cop::Base
|
|
3205
3237
|
|
3206
3238
|
# @return [Boolean]
|
3207
3239
|
#
|
3208
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3240
|
+
# source://rubocop//lib/rubocop/cop/base.rb#375
|
3209
3241
|
def builtin?; end
|
3210
3242
|
|
3211
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3243
|
+
# source://rubocop//lib/rubocop/cop/base.rb#357
|
3212
3244
|
def restrict_on_send; end
|
3213
3245
|
end
|
3214
3246
|
end
|
3215
3247
|
|
3216
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3248
|
+
# source://rubocop//lib/rubocop/cop/base.rb#361
|
3217
3249
|
RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
|
3218
3250
|
|
3219
3251
|
# Reports of an investigation.
|
@@ -5239,9 +5271,6 @@ class RuboCop::Cop::EachToForCorrector
|
|
5239
5271
|
|
5240
5272
|
# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#36
|
5241
5273
|
def offending_range; end
|
5242
|
-
|
5243
|
-
# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#44
|
5244
|
-
def replacement_range(end_pos); end
|
5245
5274
|
end
|
5246
5275
|
|
5247
5276
|
# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#10
|
@@ -5339,24 +5368,24 @@ RuboCop::Cop::EndKeywordAlignment::MSG = T.let(T.unsafe(nil), String)
|
|
5339
5368
|
module RuboCop::Cop::EnforceSuperclass
|
5340
5369
|
# @api private
|
5341
5370
|
#
|
5342
|
-
# source://rubocop-rails/2.
|
5371
|
+
# source://rubocop-rails/2.24.0/lib/rubocop/cop/mixin/enforce_superclass.rb#19
|
5343
5372
|
def on_class(node); end
|
5344
5373
|
|
5345
5374
|
# @api private
|
5346
5375
|
#
|
5347
|
-
# source://rubocop-rails/2.
|
5376
|
+
# source://rubocop-rails/2.24.0/lib/rubocop/cop/mixin/enforce_superclass.rb#25
|
5348
5377
|
def on_send(node); end
|
5349
5378
|
|
5350
5379
|
private
|
5351
5380
|
|
5352
|
-
# source://rubocop-rails/2.
|
5381
|
+
# source://rubocop-rails/2.24.0/lib/rubocop/cop/mixin/enforce_superclass.rb#33
|
5353
5382
|
def register_offense(offense_node); end
|
5354
5383
|
|
5355
5384
|
class << self
|
5356
5385
|
# @api private
|
5357
5386
|
# @private
|
5358
5387
|
#
|
5359
|
-
# source://rubocop-rails/2.
|
5388
|
+
# source://rubocop-rails/2.24.0/lib/rubocop/cop/mixin/enforce_superclass.rb#7
|
5360
5389
|
def included(base); end
|
5361
5390
|
end
|
5362
5391
|
end
|
@@ -5402,45 +5431,39 @@ class RuboCop::Cop::ForToEachCorrector
|
|
5402
5431
|
|
5403
5432
|
private
|
5404
5433
|
|
5405
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5434
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#57
|
5406
5435
|
def collection_end; end
|
5407
5436
|
|
5408
5437
|
# Returns the value of attribute collection_node.
|
5409
5438
|
#
|
5410
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5439
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
|
5411
5440
|
def collection_node; end
|
5412
5441
|
|
5413
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5442
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#31
|
5414
5443
|
def collection_source; end
|
5415
5444
|
|
5416
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5445
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#27
|
5417
5446
|
def correction; end
|
5418
5447
|
|
5419
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5420
|
-
def
|
5448
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#45
|
5449
|
+
def end_range; end
|
5421
5450
|
|
5422
5451
|
# Returns the value of attribute for_node.
|
5423
5452
|
#
|
5424
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5453
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
|
5425
5454
|
def for_node; end
|
5426
5455
|
|
5427
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5456
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#53
|
5428
5457
|
def keyword_begin; end
|
5429
5458
|
|
5430
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#63
|
5431
|
-
def offending_range; end
|
5432
|
-
|
5433
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#67
|
5434
|
-
def replacement_range(end_pos); end
|
5435
|
-
|
5436
5459
|
# @return [Boolean]
|
5437
5460
|
#
|
5438
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5461
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#39
|
5439
5462
|
def requires_parentheses?; end
|
5440
5463
|
|
5441
5464
|
# Returns the value of attribute variable_node.
|
5442
5465
|
#
|
5443
|
-
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#
|
5466
|
+
# source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
|
5444
5467
|
def variable_node; end
|
5445
5468
|
end
|
5446
5469
|
|
@@ -6113,7 +6136,7 @@ class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base
|
|
6113
6136
|
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#78
|
6114
6137
|
def on_new_investigation; end
|
6115
6138
|
|
6116
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6139
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#84
|
6117
6140
|
def on_send(node); end
|
6118
6141
|
|
6119
6142
|
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#65
|
@@ -6123,13 +6146,13 @@ class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base
|
|
6123
6146
|
|
6124
6147
|
# @return [Boolean]
|
6125
6148
|
#
|
6126
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6149
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#96
|
6127
6150
|
def dynamic_version?(node); end
|
6128
6151
|
|
6129
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6152
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#102
|
6130
6153
|
def extract_ruby_version(required_ruby_version); end
|
6131
6154
|
|
6132
|
-
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#
|
6155
|
+
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#120
|
6133
6156
|
def not_equal_message(required_ruby_version, target_ruby_version); end
|
6134
6157
|
end
|
6135
6158
|
|
@@ -8912,15 +8935,19 @@ class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base
|
|
8912
8935
|
|
8913
8936
|
private
|
8914
8937
|
|
8938
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#61
|
8939
|
+
def comments_before_code(source); end
|
8940
|
+
|
8915
8941
|
# Find the last magic comment in the source file.
|
8916
8942
|
#
|
8917
|
-
# Take all comments that precede the first line of code
|
8943
|
+
# Take all comments that precede the first line of code (or just take
|
8944
|
+
# them all in the case when there is no code), select the
|
8918
8945
|
# magic comments, and return the last magic comment in the file.
|
8919
8946
|
#
|
8920
8947
|
# @return [Parser::Source::Comment] if magic comments exist before code
|
8921
8948
|
# @return [nil] otherwise
|
8922
8949
|
#
|
8923
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#
|
8950
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#55
|
8924
8951
|
def last_magic_comment(source); end
|
8925
8952
|
|
8926
8953
|
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43
|
@@ -10053,7 +10080,9 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St
|
|
10053
10080
|
# This `Layout/EndAlignment` cop aligns with keywords (e.g. `if`, `while`, `case`)
|
10054
10081
|
# by default. On the other hand, `Layout/BeginEndAlignment` cop aligns with
|
10055
10082
|
# `EnforcedStyleAlignWith: start_of_line` by default due to `||= begin` tends
|
10056
|
-
# to align with the start of the line.
|
10083
|
+
# to align with the start of the line. `Layout/DefEndAlignment` cop also aligns with
|
10084
|
+
# `EnforcedStyleAlignWith: start_of_line` by default.
|
10085
|
+
# These style can be configured by each cop.
|
10057
10086
|
#
|
10058
10087
|
# @example EnforcedStyleAlignWith: keyword (default)
|
10059
10088
|
# # bad
|
@@ -10104,7 +10133,7 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St
|
|
10104
10133
|
# if true
|
10105
10134
|
# end
|
10106
10135
|
#
|
10107
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10136
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#77
|
10108
10137
|
class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
|
10109
10138
|
include ::RuboCop::Cop::CheckAssignment
|
10110
10139
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
@@ -10112,54 +10141,54 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
|
|
10112
10141
|
include ::RuboCop::Cop::EndKeywordAlignment
|
10113
10142
|
extend ::RuboCop::Cop::AutoCorrector
|
10114
10143
|
|
10115
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10144
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111
|
10116
10145
|
def on_case(node); end
|
10117
10146
|
|
10118
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10147
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111
|
10119
10148
|
def on_case_match(node); end
|
10120
10149
|
|
10121
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10150
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#83
|
10122
10151
|
def on_class(node); end
|
10123
10152
|
|
10124
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10153
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#99
|
10125
10154
|
def on_if(node); end
|
10126
10155
|
|
10127
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10156
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#95
|
10128
10157
|
def on_module(node); end
|
10129
10158
|
|
10130
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10159
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#87
|
10131
10160
|
def on_sclass(node); end
|
10132
10161
|
|
10133
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10162
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#107
|
10134
10163
|
def on_until(node); end
|
10135
10164
|
|
10136
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10165
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#103
|
10137
10166
|
def on_while(node); end
|
10138
10167
|
|
10139
10168
|
private
|
10140
10169
|
|
10141
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10170
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#167
|
10142
10171
|
def alignment_node(node); end
|
10143
10172
|
|
10144
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10173
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#184
|
10145
10174
|
def alignment_node_for_variable_style(node); end
|
10146
10175
|
|
10147
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10176
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#148
|
10148
10177
|
def asgn_variable_align_with(outer_node, inner_node); end
|
10149
10178
|
|
10150
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10179
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#202
|
10151
10180
|
def assignment_or_operator_method(node); end
|
10152
10181
|
|
10153
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10182
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#122
|
10154
10183
|
def autocorrect(corrector, node); end
|
10155
10184
|
|
10156
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10185
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#137
|
10157
10186
|
def check_asgn_alignment(outer_node, inner_node); end
|
10158
10187
|
|
10159
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10188
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#126
|
10160
10189
|
def check_assignment(node, rhs); end
|
10161
10190
|
|
10162
|
-
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#
|
10191
|
+
# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#158
|
10163
10192
|
def check_other_alignment(node); end
|
10164
10193
|
end
|
10165
10194
|
|
@@ -14115,17 +14144,17 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14115
14144
|
|
14116
14145
|
# @return [Boolean]
|
14117
14146
|
#
|
14118
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14147
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133
|
14119
14148
|
def comment_within?(node); end
|
14120
14149
|
|
14121
14150
|
# @return [Boolean]
|
14122
14151
|
#
|
14123
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14152
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103
|
14124
14153
|
def configured_to_not_be_inspected?(node); end
|
14125
14154
|
|
14126
14155
|
# @return [Boolean]
|
14127
14156
|
#
|
14128
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14157
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#127
|
14129
14158
|
def convertible_block?(node); end
|
14130
14159
|
|
14131
14160
|
# @return [Boolean]
|
@@ -14135,10 +14164,10 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14135
14164
|
|
14136
14165
|
# @return [Boolean]
|
14137
14166
|
#
|
14138
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14167
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97
|
14139
14168
|
def index_access_call_chained?(node); end
|
14140
14169
|
|
14141
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14170
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#155
|
14142
14171
|
def max_line_length; end
|
14143
14172
|
|
14144
14173
|
# @return [Boolean]
|
@@ -14148,7 +14177,7 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14148
14177
|
|
14149
14178
|
# @return [Boolean]
|
14150
14179
|
#
|
14151
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14180
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#110
|
14152
14181
|
def other_cop_takes_precedence?(node); end
|
14153
14182
|
|
14154
14183
|
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#79
|
@@ -14156,20 +14185,25 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
|
|
14156
14185
|
|
14157
14186
|
# @return [Boolean]
|
14158
14187
|
#
|
14159
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14188
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#93
|
14189
|
+
def require_backslash?(node); end
|
14190
|
+
|
14191
|
+
# @return [Boolean]
|
14192
|
+
#
|
14193
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#116
|
14160
14194
|
def single_line_block_chain_enabled?; end
|
14161
14195
|
|
14162
14196
|
# @return [Boolean]
|
14163
14197
|
#
|
14164
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14198
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120
|
14165
14199
|
def suitable_as_single_line?(node); end
|
14166
14200
|
|
14167
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14201
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#146
|
14168
14202
|
def to_single_line(source); end
|
14169
14203
|
|
14170
14204
|
# @return [Boolean]
|
14171
14205
|
#
|
14172
|
-
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#
|
14206
|
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#141
|
14173
14207
|
def too_long?(node); end
|
14174
14208
|
end
|
14175
14209
|
|
@@ -15145,35 +15179,38 @@ class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base
|
|
15145
15179
|
|
15146
15180
|
private
|
15147
15181
|
|
15148
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15182
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#133
|
15149
15183
|
def autocorrect(corrector, range); end
|
15150
15184
|
|
15151
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15185
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#153
|
15152
15186
|
def block_delimiters_style; end
|
15153
15187
|
|
15154
15188
|
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#83
|
15155
15189
|
def check_empty(left_brace, space_plus_brace, used_style); end
|
15156
15190
|
|
15157
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15191
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#109
|
15158
15192
|
def check_non_empty(left_brace, space_plus_brace, used_style); end
|
15159
15193
|
|
15160
15194
|
# @return [Boolean]
|
15161
15195
|
#
|
15162
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15196
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#149
|
15163
15197
|
def conflict_with_block_delimiters?(node); end
|
15164
15198
|
|
15165
15199
|
# @return [Boolean]
|
15166
15200
|
#
|
15167
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15201
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#157
|
15168
15202
|
def empty_braces?(loc); end
|
15169
15203
|
|
15170
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15204
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#101
|
15205
|
+
def handle_different_styles_for_empty_braces(used_style); end
|
15206
|
+
|
15207
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#124
|
15171
15208
|
def space_detected(left_brace, space_plus_brace); end
|
15172
15209
|
|
15173
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15210
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#117
|
15174
15211
|
def space_missing(left_brace); end
|
15175
15212
|
|
15176
|
-
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#
|
15213
|
+
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#140
|
15177
15214
|
def style_for_empty_braces; end
|
15178
15215
|
|
15179
15216
|
class << self
|
@@ -22098,7 +22135,8 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T
|
|
22098
22135
|
|
22099
22136
|
# Checks for redundant safe navigation calls.
|
22100
22137
|
# Use cases where a constant, named in camel case for classes and modules is `nil` are rare,
|
22101
|
-
# and an offense is not detected when the receiver is a
|
22138
|
+
# and an offense is not detected when the receiver is a constant. The detection also applies
|
22139
|
+
# to literal receivers, except for `nil`.
|
22102
22140
|
#
|
22103
22141
|
# For all receivers, the `instance_of?`, `kind_of?`, `is_a?`, `eql?`, `respond_to?`,
|
22104
22142
|
# and `equal?` methods are checked by default.
|
@@ -22161,10 +22199,9 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T
|
|
22161
22199
|
# do_something if attrs.nil_safe_method(:[])
|
22162
22200
|
# do_something if attrs&.not_nil_safe_method(:[])
|
22163
22201
|
#
|
22164
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#
|
22202
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#78
|
22165
22203
|
class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base
|
22166
22204
|
include ::RuboCop::Cop::AllowedMethods
|
22167
|
-
include ::RuboCop::Cop::RangeHelp
|
22168
22205
|
extend ::RuboCop::Cop::AutoCorrector
|
22169
22206
|
|
22170
22207
|
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#95
|
@@ -22183,12 +22220,17 @@ class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base
|
|
22183
22220
|
|
22184
22221
|
# @return [Boolean]
|
22185
22222
|
#
|
22186
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#
|
22223
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#133
|
22224
|
+
def assume_receiver_instance_exists?(receiver); end
|
22225
|
+
|
22226
|
+
# @return [Boolean]
|
22227
|
+
#
|
22228
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#139
|
22187
22229
|
def check?(node); end
|
22188
22230
|
|
22189
22231
|
# @return [Boolean]
|
22190
22232
|
#
|
22191
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#
|
22233
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#149
|
22192
22234
|
def condition?(parent, node); end
|
22193
22235
|
end
|
22194
22236
|
|
@@ -22434,15 +22476,15 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base
|
|
22434
22476
|
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
|
22435
22477
|
def on_numblock(node); end
|
22436
22478
|
|
22437
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#
|
22479
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#57
|
22438
22480
|
def redundant_with_index?(param0 = T.unsafe(nil)); end
|
22439
22481
|
|
22440
22482
|
private
|
22441
22483
|
|
22442
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#
|
22484
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#67
|
22443
22485
|
def message(node); end
|
22444
22486
|
|
22445
|
-
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#
|
22487
|
+
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#75
|
22446
22488
|
def with_index_range(send); end
|
22447
22489
|
end
|
22448
22490
|
|
@@ -22776,13 +22818,13 @@ class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Base
|
|
22776
22818
|
|
22777
22819
|
private
|
22778
22820
|
|
22779
|
-
# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#
|
22821
|
+
# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#69
|
22780
22822
|
def correction(*exceptions); end
|
22781
22823
|
|
22782
|
-
# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#
|
22824
|
+
# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#80
|
22783
22825
|
def invalid_exceptions(exceptions); end
|
22784
22826
|
|
22785
|
-
# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#
|
22827
|
+
# source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#76
|
22786
22828
|
def valid_exceptions(exceptions); end
|
22787
22829
|
end
|
22788
22830
|
|
@@ -23020,7 +23062,7 @@ class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Base
|
|
23020
23062
|
private
|
23021
23063
|
|
23022
23064
|
# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#55
|
23023
|
-
def autocorrect
|
23065
|
+
def autocorrect; end
|
23024
23066
|
|
23025
23067
|
# @return [Boolean]
|
23026
23068
|
#
|
@@ -23797,12 +23839,12 @@ class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base
|
|
23797
23839
|
|
23798
23840
|
# @return [Boolean]
|
23799
23841
|
#
|
23800
|
-
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#
|
23842
|
+
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#83
|
23801
23843
|
def argument_match?(send_arg, def_arg); end
|
23802
23844
|
|
23803
23845
|
# @return [Boolean]
|
23804
23846
|
#
|
23805
|
-
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#
|
23847
|
+
# source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#68
|
23806
23848
|
def arguments_match?(arguments, def_node); end
|
23807
23849
|
end
|
23808
23850
|
|
@@ -25567,47 +25609,47 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
|
|
25567
25609
|
|
25568
25610
|
private
|
25569
25611
|
|
25570
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25612
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#217
|
25571
25613
|
def autocorrect_nonmutating_send(corrector, node, suggestion); end
|
25572
25614
|
|
25573
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25615
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#213
|
25574
25616
|
def autocorrect_void_expression(corrector, node); end
|
25575
25617
|
|
25576
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25618
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#201
|
25577
25619
|
def autocorrect_void_op(corrector, node); end
|
25578
25620
|
|
25579
25621
|
# source://rubocop//lib/rubocop/cop/lint/void.rb#99
|
25580
25622
|
def check_begin(node); end
|
25581
25623
|
|
25582
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25624
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#113
|
25583
25625
|
def check_expression(expr); end
|
25584
25626
|
|
25585
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25627
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#151
|
25586
25628
|
def check_literal(node); end
|
25587
25629
|
|
25588
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25630
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#175
|
25589
25631
|
def check_nonmutating(node); end
|
25590
25632
|
|
25591
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25633
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#159
|
25592
25634
|
def check_self(node); end
|
25593
25635
|
|
25594
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25636
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#133
|
25595
25637
|
def check_var(node); end
|
25596
25638
|
|
25597
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25639
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#167
|
25598
25640
|
def check_void_expression(node); end
|
25599
25641
|
|
25600
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25642
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#123
|
25601
25643
|
def check_void_op(node, &block); end
|
25602
25644
|
|
25603
25645
|
# @return [Boolean]
|
25604
25646
|
#
|
25605
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25647
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#226
|
25606
25648
|
def entirely_literal?(node); end
|
25607
25649
|
|
25608
25650
|
# @return [Boolean]
|
25609
25651
|
#
|
25610
|
-
# source://rubocop//lib/rubocop/cop/lint/void.rb#
|
25652
|
+
# source://rubocop//lib/rubocop/cop/lint/void.rb#193
|
25611
25653
|
def in_void_context?(node); end
|
25612
25654
|
end
|
25613
25655
|
|
@@ -30931,6 +30973,12 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
|
|
30931
30973
|
# This cop identifies places where `do_something(*args, &block)`
|
30932
30974
|
# can be replaced by `do_something(...)`.
|
30933
30975
|
#
|
30976
|
+
# In Ruby 3.1, anonymous block forwarding has been added.
|
30977
|
+
#
|
30978
|
+
# This cop identifies places where `do_something(&block)` can be replaced
|
30979
|
+
# by `do_something(&)`; if desired, this functionality can be disabled
|
30980
|
+
# by setting `UseAnonymousForwarding: false`.
|
30981
|
+
#
|
30934
30982
|
# In Ruby 3.2, anonymous args/kwargs forwarding has been added.
|
30935
30983
|
#
|
30936
30984
|
# This cop also identifies places where `use_args(*args)`/`use_kwargs(**kwargs)` can be
|
@@ -30963,21 +31011,24 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
|
|
30963
31011
|
# end
|
30964
31012
|
# @example UseAnonymousForwarding: true (default, only relevant for Ruby >= 3.2)
|
30965
31013
|
# # bad
|
30966
|
-
# def foo(*args, **kwargs)
|
31014
|
+
# def foo(*args, **kwargs, &block)
|
30967
31015
|
# args_only(*args)
|
30968
31016
|
# kwargs_only(**kwargs)
|
31017
|
+
# block_only(&block)
|
30969
31018
|
# end
|
30970
31019
|
#
|
30971
31020
|
# # good
|
30972
|
-
# def foo(*,
|
31021
|
+
# def foo(*, **, &)
|
30973
31022
|
# args_only(*)
|
30974
31023
|
# kwargs_only(**)
|
31024
|
+
# block_only(&)
|
30975
31025
|
# end
|
30976
31026
|
# @example UseAnonymousForwarding: false (only relevant for Ruby >= 3.2)
|
30977
31027
|
# # good
|
30978
|
-
# def foo(*args, **kwargs)
|
31028
|
+
# def foo(*args, **kwargs, &block)
|
30979
31029
|
# args_only(*args)
|
30980
31030
|
# kwargs_only(**kwargs)
|
31031
|
+
# block_only(&block)
|
30981
31032
|
# end
|
30982
31033
|
# @example AllowOnlyRestArgument: true (default, only relevant for Ruby < 3.2)
|
30983
31034
|
# # good
|
@@ -31030,222 +31081,222 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
|
|
31030
31081
|
# bar(&)
|
31031
31082
|
# end
|
31032
31083
|
#
|
31033
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31084
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#125
|
31034
31085
|
class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
|
31035
31086
|
include ::RuboCop::Cop::RangeHelp
|
31036
31087
|
extend ::RuboCop::Cop::AutoCorrector
|
31037
31088
|
extend ::RuboCop::Cop::TargetRubyVersion
|
31038
31089
|
|
31039
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31090
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144
|
31040
31091
|
def on_def(node); end
|
31041
31092
|
|
31042
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31093
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144
|
31043
31094
|
def on_defs(node); end
|
31044
31095
|
|
31045
31096
|
private
|
31046
31097
|
|
31047
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31098
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#185
|
31048
31099
|
def add_forward_all_offenses(node, send_classifications, forwardable_args); end
|
31049
31100
|
|
31050
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31101
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#350
|
31051
31102
|
def add_parens_if_missing(node, corrector); end
|
31052
31103
|
|
31053
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31104
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#212
|
31054
31105
|
def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end
|
31055
31106
|
|
31056
31107
|
# @return [Boolean]
|
31057
31108
|
#
|
31058
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31109
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#342
|
31059
31110
|
def allow_only_rest_arguments?; end
|
31060
31111
|
|
31061
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31112
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#334
|
31062
31113
|
def arguments_range(node, first_node); end
|
31063
31114
|
|
31064
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31115
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#263
|
31065
31116
|
def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end
|
31066
31117
|
|
31067
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31118
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#248
|
31068
31119
|
def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end
|
31069
31120
|
|
31070
31121
|
# @return [Boolean]
|
31071
31122
|
#
|
31072
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31123
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#494
|
31073
31124
|
def explicit_block_name?; end
|
31074
31125
|
|
31075
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31126
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#168
|
31076
31127
|
def extract_forwardable_args(args); end
|
31077
31128
|
|
31078
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31129
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#238
|
31079
31130
|
def non_splat_or_block_pass_lvar_references(body); end
|
31080
31131
|
|
31081
31132
|
# @return [Boolean]
|
31082
31133
|
#
|
31083
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31134
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#180
|
31084
31135
|
def only_forwards_all?(send_classifications); end
|
31085
31136
|
|
31086
31137
|
# @return [Boolean]
|
31087
31138
|
#
|
31088
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31139
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#292
|
31089
31140
|
def outside_block?(node); end
|
31090
31141
|
|
31091
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31142
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#172
|
31092
31143
|
def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end
|
31093
31144
|
|
31094
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31145
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#282
|
31095
31146
|
def redundant_named_arg(arg, config_name, keyword); end
|
31096
31147
|
|
31097
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31148
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#324
|
31098
31149
|
def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end
|
31099
31150
|
|
31100
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31151
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#298
|
31101
31152
|
def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end
|
31102
31153
|
|
31103
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31154
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#314
|
31104
31155
|
def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end
|
31105
31156
|
|
31106
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31157
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#306
|
31107
31158
|
def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end
|
31108
31159
|
|
31109
31160
|
# @return [Boolean]
|
31110
31161
|
#
|
31111
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31162
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#346
|
31112
31163
|
def use_anonymous_forwarding?; end
|
31113
31164
|
|
31114
31165
|
class << self
|
31115
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31166
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140
|
31116
31167
|
def autocorrect_incompatible_with; end
|
31117
31168
|
end
|
31118
31169
|
end
|
31119
31170
|
|
31120
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31171
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#133
|
31121
31172
|
RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array)
|
31122
31173
|
|
31123
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31174
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#136
|
31124
31175
|
RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String)
|
31125
31176
|
|
31126
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31177
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138
|
31127
31178
|
RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String)
|
31128
31179
|
|
31129
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31180
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#132
|
31130
31181
|
RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array)
|
31131
31182
|
|
31132
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31183
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135
|
31133
31184
|
RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String)
|
31134
31185
|
|
31135
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31186
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137
|
31136
31187
|
RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String)
|
31137
31188
|
|
31138
31189
|
# Classifies send nodes for possible rest/kwrest/all (including block) forwarding.
|
31139
31190
|
#
|
31140
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31191
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#357
|
31141
31192
|
class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier
|
31142
31193
|
extend ::RuboCop::AST::NodePattern::Macros
|
31143
31194
|
|
31144
31195
|
# @return [SendNodeClassifier] a new instance of SendNodeClassifier
|
31145
31196
|
#
|
31146
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31197
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#369
|
31147
31198
|
def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end
|
31148
31199
|
|
31149
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31200
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#397
|
31150
31201
|
def classification; end
|
31151
31202
|
|
31152
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31203
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364
|
31153
31204
|
def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end
|
31154
31205
|
|
31155
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31206
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391
|
31156
31207
|
def forwarded_block_arg; end
|
31157
31208
|
|
31158
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31209
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
|
31159
31210
|
def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end
|
31160
31211
|
|
31161
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31212
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#385
|
31162
31213
|
def forwarded_kwrest_arg; end
|
31163
31214
|
|
31164
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31215
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379
|
31165
31216
|
def forwarded_rest_arg; end
|
31166
31217
|
|
31167
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31218
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#361
|
31168
31219
|
def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end
|
31169
31220
|
|
31170
31221
|
private
|
31171
31222
|
|
31172
31223
|
# @return [Boolean]
|
31173
31224
|
#
|
31174
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31225
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#465
|
31175
31226
|
def additional_kwargs?; end
|
31176
31227
|
|
31177
31228
|
# @return [Boolean]
|
31178
31229
|
#
|
31179
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31230
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#461
|
31180
31231
|
def additional_kwargs_or_forwarded_kwargs?; end
|
31181
31232
|
|
31182
31233
|
# @return [Boolean]
|
31183
31234
|
#
|
31184
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31235
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#475
|
31185
31236
|
def allow_offense_for_no_block?; end
|
31186
31237
|
|
31187
31238
|
# @return [Boolean]
|
31188
31239
|
#
|
31189
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31240
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#446
|
31190
31241
|
def any_arg_referenced?; end
|
31191
31242
|
|
31192
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31243
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#430
|
31193
31244
|
def arguments; end
|
31194
31245
|
|
31195
31246
|
# @return [Boolean]
|
31196
31247
|
#
|
31197
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31248
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#409
|
31198
31249
|
def can_forward_all?; end
|
31199
31250
|
|
31200
31251
|
# @return [Boolean]
|
31201
31252
|
#
|
31202
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31253
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#469
|
31203
31254
|
def forward_additional_kwargs?; end
|
31204
31255
|
|
31205
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31256
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#426
|
31206
31257
|
def forwarded_rest_and_kwrest_args; end
|
31207
31258
|
|
31208
31259
|
# @return [Boolean]
|
31209
31260
|
#
|
31210
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31261
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#488
|
31211
31262
|
def missing_rest_arg_or_kwrest_arg?; end
|
31212
31263
|
|
31213
31264
|
# @return [Boolean]
|
31214
31265
|
#
|
31215
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31266
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#479
|
31216
31267
|
def no_additional_args?; end
|
31217
31268
|
|
31218
31269
|
# @return [Boolean]
|
31219
31270
|
#
|
31220
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31271
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#454
|
31221
31272
|
def no_post_splat_args?; end
|
31222
31273
|
|
31223
31274
|
# @return [Boolean]
|
31224
31275
|
#
|
31225
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31276
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#422
|
31226
31277
|
def offensive_block_forwarding?; end
|
31227
31278
|
|
31228
31279
|
# @return [Boolean]
|
31229
31280
|
#
|
31230
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31281
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#442
|
31231
31282
|
def referenced_block_arg?; end
|
31232
31283
|
|
31233
31284
|
# @return [Boolean]
|
31234
31285
|
#
|
31235
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31286
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#438
|
31236
31287
|
def referenced_kwrest_arg?; end
|
31237
31288
|
|
31238
31289
|
# @return [Boolean]
|
31239
31290
|
#
|
31240
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31291
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#434
|
31241
31292
|
def referenced_rest_arg?; end
|
31242
31293
|
|
31243
31294
|
# @return [Boolean]
|
31244
31295
|
#
|
31245
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31296
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#418
|
31246
31297
|
def ruby_32_missing_rest_or_kwest?; end
|
31247
31298
|
|
31248
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31299
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#450
|
31249
31300
|
def target_ruby_version; end
|
31250
31301
|
end
|
31251
31302
|
|
@@ -32152,27 +32203,27 @@ RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(n
|
|
32152
32203
|
|
32153
32204
|
# Corrector to correct conditional assignment in `case` statements.
|
32154
32205
|
#
|
32155
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
32206
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#604
|
32156
32207
|
class RuboCop::Cop::Style::CaseCorrector
|
32157
32208
|
extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper
|
32158
32209
|
extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper
|
32159
32210
|
|
32160
32211
|
class << self
|
32161
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
32212
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#609
|
32162
32213
|
def correct(corrector, cop, node); end
|
32163
32214
|
|
32164
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
32215
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#619
|
32165
32216
|
def move_assignment_inside_condition(corrector, node); end
|
32166
32217
|
|
32167
32218
|
private
|
32168
32219
|
|
32169
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
32220
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#639
|
32170
32221
|
def extract_branches(case_node); end
|
32171
32222
|
|
32172
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
32223
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#633
|
32173
32224
|
def extract_tail_branches(node); end
|
32174
32225
|
|
32175
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
32226
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#649
|
32176
32227
|
def move_branch_inside_condition(corrector, branch, condition, assignment, column); end
|
32177
32228
|
end
|
32178
32229
|
end
|
@@ -33408,44 +33459,44 @@ RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), S
|
|
33408
33459
|
# y
|
33409
33460
|
# end
|
33410
33461
|
#
|
33411
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33462
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#45
|
33412
33463
|
class RuboCop::Cop::Style::CommentedKeyword < ::RuboCop::Cop::Base
|
33413
33464
|
include ::RuboCop::Cop::RangeHelp
|
33414
33465
|
extend ::RuboCop::Cop::AutoCorrector
|
33415
33466
|
|
33416
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33467
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#60
|
33417
33468
|
def on_new_investigation; end
|
33418
33469
|
|
33419
33470
|
private
|
33420
33471
|
|
33421
33472
|
# @return [Boolean]
|
33422
33473
|
#
|
33423
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33474
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#83
|
33424
33475
|
def offensive?(comment); end
|
33425
33476
|
|
33426
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33477
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#70
|
33427
33478
|
def register_offense(comment, matched_keyword); end
|
33428
33479
|
|
33429
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33480
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#89
|
33430
33481
|
def source_line(comment); end
|
33431
33482
|
end
|
33432
33483
|
|
33433
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33484
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#54
|
33434
33485
|
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array)
|
33435
33486
|
|
33436
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33487
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#55
|
33437
33488
|
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENT_REGEXES = T.let(T.unsafe(nil), Array)
|
33438
33489
|
|
33439
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33490
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#51
|
33440
33491
|
RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array)
|
33441
33492
|
|
33442
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33493
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#52
|
33443
33494
|
RuboCop::Cop::Style::CommentedKeyword::KEYWORD_REGEXES = T.let(T.unsafe(nil), Array)
|
33444
33495
|
|
33445
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33496
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#49
|
33446
33497
|
RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String)
|
33447
33498
|
|
33448
|
-
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#
|
33499
|
+
# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#58
|
33449
33500
|
RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp)
|
33450
33501
|
|
33451
33502
|
# Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum.
|
@@ -33564,8 +33615,8 @@ RuboCop::Cop::Style::ConcatArrayLiterals::MSG_FOR_PERCENT_LITERALS = T.let(T.uns
|
|
33564
33615
|
RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
33565
33616
|
|
33566
33617
|
# Check for `if` and `case` statements where each branch is used for
|
33567
|
-
#
|
33568
|
-
# condition can be used instead.
|
33618
|
+
# both the assignment and comparison of the same variable
|
33619
|
+
# when using the return of the condition can be used instead.
|
33569
33620
|
#
|
33570
33621
|
# @example EnforcedStyle: assign_to_condition (default)
|
33571
33622
|
# # bad
|
@@ -33906,16 +33957,16 @@ module RuboCop::Cop::Style::ConditionalCorrectorHelper
|
|
33906
33957
|
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#461
|
33907
33958
|
def assignment(node); end
|
33908
33959
|
|
33909
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
33960
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#490
|
33910
33961
|
def correct_branches(corrector, branches); end
|
33911
33962
|
|
33912
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
33963
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#467
|
33913
33964
|
def correct_if_branches(corrector, cop, node); end
|
33914
33965
|
|
33915
33966
|
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#441
|
33916
33967
|
def remove_whitespace_in_branches(corrector, branch, condition, column); end
|
33917
33968
|
|
33918
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
33969
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#477
|
33919
33970
|
def replace_branch_assignment(corrector, branch); end
|
33920
33971
|
|
33921
33972
|
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#454
|
@@ -36639,7 +36690,7 @@ class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base
|
|
36639
36690
|
|
36640
36691
|
# @return [Boolean]
|
36641
36692
|
#
|
36642
|
-
# source://rubocop//lib/rubocop/cop/style/for.rb#
|
36693
|
+
# source://rubocop//lib/rubocop/cop/style/for.rb#84
|
36643
36694
|
def suspect_enumerable?(node); end
|
36644
36695
|
end
|
36645
36696
|
|
@@ -37861,35 +37912,35 @@ class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base
|
|
37861
37912
|
|
37862
37913
|
# @return [Boolean]
|
37863
37914
|
#
|
37864
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37915
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#199
|
37865
37916
|
def acceptable_19_syntax_symbol?(sym_name); end
|
37866
37917
|
|
37867
37918
|
# @return [Boolean]
|
37868
37919
|
#
|
37869
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37920
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#256
|
37870
37921
|
def argument_without_space?(node); end
|
37871
37922
|
|
37872
37923
|
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#178
|
37873
37924
|
def autocorrect(corrector, node); end
|
37874
37925
|
|
37875
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37926
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#260
|
37876
37927
|
def autocorrect_hash_rockets(corrector, pair_node); end
|
37877
37928
|
|
37878
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37929
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#269
|
37879
37930
|
def autocorrect_no_mixed_keys(corrector, pair_node); end
|
37880
37931
|
|
37881
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37932
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#235
|
37882
37933
|
def autocorrect_ruby19(corrector, pair_node); end
|
37883
37934
|
|
37884
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37935
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#220
|
37885
37936
|
def check(pairs, delim, msg); end
|
37886
37937
|
|
37887
37938
|
# @return [Boolean]
|
37888
37939
|
#
|
37889
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37940
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#277
|
37890
37941
|
def force_hash_rockets?(pairs); end
|
37891
37942
|
|
37892
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
37943
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#248
|
37893
37944
|
def range_for_autocorrect_ruby19(pair_node); end
|
37894
37945
|
|
37895
37946
|
# @return [Boolean]
|
@@ -38148,24 +38199,24 @@ RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), St
|
|
38148
38199
|
|
38149
38200
|
# Corrector to correct conditional assignment in `if` statements.
|
38150
38201
|
#
|
38151
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
38202
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#559
|
38152
38203
|
class RuboCop::Cop::Style::IfCorrector
|
38153
38204
|
extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper
|
38154
38205
|
extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper
|
38155
38206
|
|
38156
38207
|
class << self
|
38157
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
38208
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#564
|
38158
38209
|
def correct(corrector, cop, node); end
|
38159
38210
|
|
38160
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
38211
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#568
|
38161
38212
|
def move_assignment_inside_condition(corrector, node); end
|
38162
38213
|
|
38163
38214
|
private
|
38164
38215
|
|
38165
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
38216
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#582
|
38166
38217
|
def extract_tail_branches(node); end
|
38167
38218
|
|
38168
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
38219
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#589
|
38169
38220
|
def move_branch_inside_condition(corrector, branch, condition, assignment, column); end
|
38170
38221
|
end
|
38171
38222
|
end
|
@@ -38867,7 +38918,7 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
|
|
38867
38918
|
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#181
|
38868
38919
|
def dot_range(loc); end
|
38869
38920
|
|
38870
|
-
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#
|
38921
|
+
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#166
|
38871
38922
|
def end_parentheses(node, method_call); end
|
38872
38923
|
|
38873
38924
|
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#150
|
@@ -38884,7 +38935,7 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
|
|
38884
38935
|
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#154
|
38885
38936
|
def negated?(node); end
|
38886
38937
|
|
38887
|
-
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#
|
38938
|
+
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#162
|
38888
38939
|
def not_to_receiver(node, method_call); end
|
38889
38940
|
|
38890
38941
|
# When comparing classes, `!(Integer < Numeric)` is not the same as
|
@@ -38895,11 +38946,16 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
|
|
38895
38946
|
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#172
|
38896
38947
|
def possible_class_hierarchy_check?(lhs, rhs, method); end
|
38897
38948
|
|
38949
|
+
# @return [Boolean]
|
38950
|
+
#
|
38951
|
+
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#158
|
38952
|
+
def relational_comparison_with_safe_navigation?(node); end
|
38953
|
+
|
38898
38954
|
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#185
|
38899
38955
|
def remove_end_parenthesis(corrector, node, method, method_call); end
|
38900
38956
|
|
38901
38957
|
class << self
|
38902
|
-
# source://rubocop-rails/2.
|
38958
|
+
# source://rubocop-rails/2.24.0/lib/rubocop-rails.rb#22
|
38903
38959
|
def autocorrect_incompatible_with; end
|
38904
38960
|
end
|
38905
38961
|
end
|
@@ -38946,12 +39002,14 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
|
|
38946
39002
|
# foo unless x != y
|
38947
39003
|
# foo unless x >= 10
|
38948
39004
|
# foo unless x.even?
|
39005
|
+
# foo unless odd?
|
38949
39006
|
#
|
38950
39007
|
# # good
|
38951
39008
|
# foo if bar
|
38952
39009
|
# foo if x == y
|
38953
39010
|
# foo if x < 10
|
38954
39011
|
# foo if x.odd?
|
39012
|
+
# foo if even?
|
38955
39013
|
#
|
38956
39014
|
# # bad (complex condition)
|
38957
39015
|
# foo unless x != y || x.even?
|
@@ -38962,45 +39020,45 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
|
|
38962
39020
|
# # good (if)
|
38963
39021
|
# foo if !condition
|
38964
39022
|
#
|
38965
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39023
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#53
|
38966
39024
|
class RuboCop::Cop::Style::InvertibleUnlessCondition < ::RuboCop::Cop::Base
|
38967
39025
|
extend ::RuboCop::Cop::AutoCorrector
|
38968
39026
|
|
38969
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39027
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#58
|
38970
39028
|
def on_if(node); end
|
38971
39029
|
|
38972
39030
|
private
|
38973
39031
|
|
38974
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39032
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#133
|
38975
39033
|
def autocorrect(corrector, node); end
|
38976
39034
|
|
38977
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39035
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#146
|
38978
39036
|
def autocorrect_send_node(corrector, node); end
|
38979
39037
|
|
38980
39038
|
# @return [Boolean]
|
38981
39039
|
#
|
38982
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39040
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#90
|
38983
39041
|
def inheritance_check?(node); end
|
38984
39042
|
|
38985
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39043
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#154
|
38986
39044
|
def inverse_methods; end
|
38987
39045
|
|
38988
39046
|
# @return [Boolean]
|
38989
39047
|
#
|
38990
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39048
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#75
|
38991
39049
|
def invertible?(node); end
|
38992
39050
|
|
38993
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39051
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#96
|
38994
39052
|
def preferred_condition(node); end
|
38995
39053
|
|
38996
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39054
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#126
|
38997
39055
|
def preferred_logical_condition(node); end
|
38998
39056
|
|
38999
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39057
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#104
|
39000
39058
|
def preferred_send_condition(node); end
|
39001
39059
|
end
|
39002
39060
|
|
39003
|
-
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#
|
39061
|
+
# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#56
|
39004
39062
|
RuboCop::Cop::Style::InvertibleUnlessCondition::MSG = T.let(T.unsafe(nil), String)
|
39005
39063
|
|
39006
39064
|
# Checks for hardcoded IP addresses, which can make code
|
@@ -39940,7 +39998,7 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base
|
|
39940
39998
|
def args_parenthesized?(node); end
|
39941
39999
|
|
39942
40000
|
class << self
|
39943
|
-
# source://rubocop-rails/2.
|
40001
|
+
# source://rubocop-rails/2.24.0/lib/rubocop-rails.rb#30
|
39944
40002
|
def autocorrect_incompatible_with; end
|
39945
40003
|
end
|
39946
40004
|
end
|
@@ -41217,33 +41275,33 @@ class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base
|
|
41217
41275
|
|
41218
41276
|
private
|
41219
41277
|
|
41220
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41278
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69
|
41221
41279
|
def arguments_range(node); end
|
41222
41280
|
|
41223
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41281
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#42
|
41224
41282
|
def autocorrect(corrector, node, begin_of_arguments); end
|
41225
41283
|
|
41226
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41284
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81
|
41227
41285
|
def closing_line(node); end
|
41228
41286
|
|
41229
41287
|
# @return [Boolean]
|
41230
41288
|
#
|
41231
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41289
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85
|
41232
41290
|
def correction_exceeds_max_line_length?(node); end
|
41233
41291
|
|
41234
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41292
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#93
|
41235
41293
|
def definition_width(node); end
|
41236
41294
|
|
41237
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41295
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#89
|
41238
41296
|
def indentation_width(node); end
|
41239
41297
|
|
41240
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41298
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#65
|
41241
41299
|
def last_line_source_of_arguments(arguments); end
|
41242
41300
|
|
41243
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41301
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#97
|
41244
41302
|
def max_line_length; end
|
41245
41303
|
|
41246
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#
|
41304
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77
|
41247
41305
|
def opening_line(node); end
|
41248
41306
|
end
|
41249
41307
|
|
@@ -41290,28 +41348,28 @@ class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Base
|
|
41290
41348
|
|
41291
41349
|
private
|
41292
41350
|
|
41293
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#
|
41351
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#64
|
41294
41352
|
def autocorrect(corrector, node); end
|
41295
41353
|
|
41296
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#
|
41354
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#86
|
41297
41355
|
def comments_in_condition(node); end
|
41298
41356
|
|
41299
41357
|
# @return [Boolean]
|
41300
41358
|
#
|
41301
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#
|
41359
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#92
|
41302
41360
|
def enforce_single_line_ternary_operator?(node); end
|
41303
41361
|
|
41304
41362
|
# @return [Boolean]
|
41305
41363
|
#
|
41306
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#
|
41364
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#60
|
41307
41365
|
def offense?(node); end
|
41308
41366
|
|
41309
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#
|
41367
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#72
|
41310
41368
|
def replacement(node); end
|
41311
41369
|
|
41312
41370
|
# @return [Boolean]
|
41313
41371
|
#
|
41314
|
-
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#
|
41372
|
+
# source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#96
|
41315
41373
|
def use_assignment_method?(node); end
|
41316
41374
|
end
|
41317
41375
|
|
@@ -41561,7 +41619,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
|
|
41561
41619
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
41562
41620
|
extend ::RuboCop::Cop::AutoCorrector
|
41563
41621
|
|
41564
|
-
# source://rubocop-sorbet/0.7.
|
41622
|
+
# source://rubocop-sorbet/0.7.8/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18
|
41565
41623
|
def on_assignment(value); end
|
41566
41624
|
|
41567
41625
|
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#127
|
@@ -41579,7 +41637,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
|
|
41579
41637
|
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#217
|
41580
41638
|
def splat_value(param0 = T.unsafe(nil)); end
|
41581
41639
|
|
41582
|
-
# source://rubocop-sorbet/0.7.
|
41640
|
+
# source://rubocop-sorbet/0.7.8/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12
|
41583
41641
|
def t_let(param0 = T.unsafe(nil)); end
|
41584
41642
|
|
41585
41643
|
private
|
@@ -42326,17 +42384,17 @@ class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Base
|
|
42326
42384
|
|
42327
42385
|
private
|
42328
42386
|
|
42329
|
-
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#
|
42387
|
+
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#67
|
42330
42388
|
def message(_node); end
|
42331
42389
|
|
42332
42390
|
# @return [Boolean]
|
42333
42391
|
#
|
42334
|
-
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#
|
42392
|
+
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#79
|
42335
42393
|
def prefer_comparison?; end
|
42336
42394
|
|
42337
42395
|
# @return [Boolean]
|
42338
42396
|
#
|
42339
|
-
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#
|
42397
|
+
# source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#71
|
42340
42398
|
def style_check?(node, &block); end
|
42341
42399
|
end
|
42342
42400
|
|
@@ -42976,11 +43034,13 @@ class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base
|
|
42976
43034
|
# source://rubocop//lib/rubocop/cop/style/object_then.rb#48
|
42977
43035
|
def check_method_node(node); end
|
42978
43036
|
|
42979
|
-
# source://rubocop//lib/rubocop/cop/style/object_then.rb#
|
43037
|
+
# source://rubocop//lib/rubocop/cop/style/object_then.rb#70
|
42980
43038
|
def message(node); end
|
42981
43039
|
|
42982
|
-
#
|
42983
|
-
|
43040
|
+
# @return [Boolean]
|
43041
|
+
#
|
43042
|
+
# source://rubocop//lib/rubocop/cop/style/object_then.rb#59
|
43043
|
+
def preferred_method?(node); end
|
42984
43044
|
end
|
42985
43045
|
|
42986
43046
|
# source://rubocop//lib/rubocop/cop/style/object_then.rb#32
|
@@ -44065,56 +44125,56 @@ RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String)
|
|
44065
44125
|
# raise MyCustomError.new(arg1, arg2, arg3)
|
44066
44126
|
# fail 'message'
|
44067
44127
|
#
|
44068
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44128
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#47
|
44069
44129
|
class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base
|
44070
44130
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
44071
44131
|
extend ::RuboCop::Cop::AutoCorrector
|
44072
44132
|
|
44073
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44133
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#56
|
44074
44134
|
def on_send(node); end
|
44075
44135
|
|
44076
44136
|
private
|
44077
44137
|
|
44078
44138
|
# @return [Boolean]
|
44079
44139
|
#
|
44080
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44140
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#132
|
44081
44141
|
def acceptable_exploded_args?(args); end
|
44082
44142
|
|
44083
44143
|
# @return [Boolean]
|
44084
44144
|
#
|
44085
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44145
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#146
|
44086
44146
|
def allowed_non_exploded_type?(arg); end
|
44087
44147
|
|
44088
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44148
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#95
|
44089
44149
|
def check_compact(node); end
|
44090
44150
|
|
44091
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44151
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#111
|
44092
44152
|
def check_exploded(node); end
|
44093
44153
|
|
44094
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44154
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#69
|
44095
44155
|
def correction_compact_to_exploded(node); end
|
44096
44156
|
|
44097
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44157
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#81
|
44098
44158
|
def correction_exploded_to_compact(node); end
|
44099
44159
|
|
44100
44160
|
# @return [Boolean]
|
44101
44161
|
#
|
44102
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44162
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#152
|
44103
44163
|
def requires_parens?(parent); end
|
44104
44164
|
|
44105
44165
|
# @return [Boolean]
|
44106
44166
|
#
|
44107
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44167
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#128
|
44108
44168
|
def use_new_method?(first_arg); end
|
44109
44169
|
end
|
44110
44170
|
|
44111
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44171
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#52
|
44112
44172
|
RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String)
|
44113
44173
|
|
44114
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44174
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#51
|
44115
44175
|
RuboCop::Cop::Style::RaiseArgs::EXPLODED_MSG = T.let(T.unsafe(nil), String)
|
44116
44176
|
|
44117
|
-
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#
|
44177
|
+
# source://rubocop//lib/rubocop/cop/style/raise_args.rb#54
|
44118
44178
|
RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
44119
44179
|
|
44120
44180
|
# Checks for the use of randomly generated numbers,
|
@@ -44350,22 +44410,25 @@ class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base
|
|
44350
44410
|
|
44351
44411
|
private
|
44352
44412
|
|
44353
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#
|
44413
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#99
|
44354
44414
|
def check_begin_node(node); end
|
44355
44415
|
|
44356
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#
|
44416
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#58
|
44357
44417
|
def check_branch(node); end
|
44358
44418
|
|
44359
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#
|
44419
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#79
|
44420
|
+
def check_case_match_node(node); end
|
44421
|
+
|
44422
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#74
|
44360
44423
|
def check_case_node(node); end
|
44361
44424
|
|
44362
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#
|
44425
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#95
|
44363
44426
|
def check_ensure_node(node); end
|
44364
44427
|
|
44365
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#
|
44428
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#84
|
44366
44429
|
def check_if_node(node); end
|
44367
44430
|
|
44368
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#
|
44431
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#91
|
44369
44432
|
def check_rescue_node(node); end
|
44370
44433
|
end
|
44371
44434
|
|
@@ -45623,12 +45686,17 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45623
45686
|
|
45624
45687
|
# @return [Boolean]
|
45625
45688
|
#
|
45626
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45689
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168
|
45690
|
+
def allowed_type?(node); end
|
45691
|
+
|
45692
|
+
# @return [Boolean]
|
45693
|
+
#
|
45694
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#186
|
45627
45695
|
def argument_is_method?(node); end
|
45628
45696
|
|
45629
45697
|
# @return [Boolean]
|
45630
45698
|
#
|
45631
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45699
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146
|
45632
45700
|
def argument_newline?(node); end
|
45633
45701
|
|
45634
45702
|
# @return [Boolean]
|
@@ -45636,12 +45704,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45636
45704
|
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#101
|
45637
45705
|
def ends_with_backslash_without_comment?(source_line); end
|
45638
45706
|
|
45639
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45707
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#162
|
45640
45708
|
def find_node_for_line(line); end
|
45641
45709
|
|
45642
45710
|
# @return [Boolean]
|
45643
45711
|
#
|
45644
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45712
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#133
|
45645
45713
|
def inside_string_literal?(range, token); end
|
45646
45714
|
|
45647
45715
|
# @return [Boolean]
|
@@ -45656,7 +45724,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45656
45724
|
|
45657
45725
|
# @return [Boolean]
|
45658
45726
|
#
|
45659
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45727
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193
|
45660
45728
|
def method_call_with_arguments?(node); end
|
45661
45729
|
|
45662
45730
|
# A method call without parentheses such as the following cannot remove `\`:
|
@@ -45666,7 +45734,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45666
45734
|
#
|
45667
45735
|
# @return [Boolean]
|
45668
45736
|
#
|
45669
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45737
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#141
|
45670
45738
|
def method_with_argument?(current_token, next_token); end
|
45671
45739
|
|
45672
45740
|
# @return [Boolean]
|
@@ -45681,12 +45749,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45681
45749
|
|
45682
45750
|
# @return [Boolean]
|
45683
45751
|
#
|
45684
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45752
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#172
|
45685
45753
|
def same_line?(node, line); end
|
45686
45754
|
|
45687
45755
|
# @return [Boolean]
|
45688
45756
|
#
|
45689
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
45757
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#197
|
45690
45758
|
def start_with_arithmetic_operator?(source_line); end
|
45691
45759
|
|
45692
45760
|
# @return [Boolean]
|
@@ -46298,31 +46366,34 @@ class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base
|
|
46298
46366
|
|
46299
46367
|
# @return [Boolean]
|
46300
46368
|
#
|
46301
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46369
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#175
|
46302
46370
|
def allow_multiple_return_values?; end
|
46303
46371
|
|
46304
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46372
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#170
|
46305
46373
|
def check_begin_node(node); end
|
46306
46374
|
|
46307
46375
|
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#110
|
46308
46376
|
def check_branch(node); end
|
46309
46377
|
|
46310
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46378
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#144
|
46379
|
+
def check_case_match_node(node); end
|
46380
|
+
|
46381
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#139
|
46311
46382
|
def check_case_node(node); end
|
46312
46383
|
|
46313
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46384
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#165
|
46314
46385
|
def check_ensure_node(node); end
|
46315
46386
|
|
46316
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46387
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#149
|
46317
46388
|
def check_if_node(node); end
|
46318
46389
|
|
46319
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46390
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#161
|
46320
46391
|
def check_resbody_node(node); end
|
46321
46392
|
|
46322
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46393
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#156
|
46323
46394
|
def check_rescue_node(node); end
|
46324
46395
|
|
46325
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46396
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#127
|
46326
46397
|
def check_return_node(node); end
|
46327
46398
|
|
46328
46399
|
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#80
|
@@ -46336,7 +46407,7 @@ class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base
|
|
46336
46407
|
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#95
|
46337
46408
|
def hash_without_braces?(node); end
|
46338
46409
|
|
46339
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#
|
46410
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#179
|
46340
46411
|
def message(node); end
|
46341
46412
|
end
|
46342
46413
|
|
@@ -46496,7 +46567,7 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
|
|
46496
46567
|
def regular_method_call?(node); end
|
46497
46568
|
|
46498
46569
|
class << self
|
46499
|
-
# source://rubocop-rails/2.
|
46570
|
+
# source://rubocop-rails/2.24.0/lib/rubocop-rails.rb#38
|
46500
46571
|
def autocorrect_incompatible_with; end
|
46501
46572
|
end
|
46502
46573
|
end
|
@@ -47716,13 +47787,13 @@ class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
|
|
47716
47787
|
|
47717
47788
|
private
|
47718
47789
|
|
47719
|
-
# source://rubocop//lib/rubocop/cop/style/sample.rb#
|
47790
|
+
# source://rubocop//lib/rubocop/cop/style/sample.rb#122
|
47720
47791
|
def correction(shuffle_arg, method, method_args); end
|
47721
47792
|
|
47722
|
-
# source://rubocop//lib/rubocop/cop/style/sample.rb#
|
47793
|
+
# source://rubocop//lib/rubocop/cop/style/sample.rb#138
|
47723
47794
|
def extract_source(args); end
|
47724
47795
|
|
47725
|
-
# source://rubocop//lib/rubocop/cop/style/sample.rb#
|
47796
|
+
# source://rubocop//lib/rubocop/cop/style/sample.rb#116
|
47726
47797
|
def message(shuffle_arg, method, method_args, range); end
|
47727
47798
|
|
47728
47799
|
# @return [Boolean]
|
@@ -47733,7 +47804,7 @@ class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
|
|
47733
47804
|
# source://rubocop//lib/rubocop/cop/style/sample.rb#96
|
47734
47805
|
def range_size(range_node); end
|
47735
47806
|
|
47736
|
-
# source://rubocop//lib/rubocop/cop/style/sample.rb#
|
47807
|
+
# source://rubocop//lib/rubocop/cop/style/sample.rb#129
|
47737
47808
|
def sample_arg(method, method_args); end
|
47738
47809
|
|
47739
47810
|
# source://rubocop//lib/rubocop/cop/style/sample.rb#70
|
@@ -49750,38 +49821,38 @@ RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array)
|
|
49750
49821
|
|
49751
49822
|
# Corrector to correct conditional assignment in ternary conditions.
|
49752
49823
|
#
|
49753
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49824
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#499
|
49754
49825
|
class RuboCop::Cop::Style::TernaryCorrector
|
49755
49826
|
extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper
|
49756
49827
|
extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper
|
49757
49828
|
|
49758
49829
|
class << self
|
49759
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49830
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#504
|
49760
49831
|
def correct(corrector, node); end
|
49761
49832
|
|
49762
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49833
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#508
|
49763
49834
|
def move_assignment_inside_condition(corrector, node); end
|
49764
49835
|
|
49765
49836
|
private
|
49766
49837
|
|
49767
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49838
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#522
|
49768
49839
|
def correction(node); end
|
49769
49840
|
|
49770
49841
|
# @return [Boolean]
|
49771
49842
|
#
|
49772
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49843
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#535
|
49773
49844
|
def element_assignment?(node); end
|
49774
49845
|
|
49775
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49846
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#539
|
49776
49847
|
def extract_branches(node); end
|
49777
49848
|
|
49778
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49849
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#552
|
49779
49850
|
def move_branch_inside_condition(corrector, branch, assignment); end
|
49780
49851
|
|
49781
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49852
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#547
|
49782
49853
|
def remove_parentheses(corrector, node); end
|
49783
49854
|
|
49784
|
-
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#
|
49855
|
+
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#526
|
49785
49856
|
def ternary(node); end
|
49786
49857
|
end
|
49787
49858
|
end
|
@@ -53605,176 +53676,181 @@ RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set)
|
|
53605
53676
|
class RuboCop::DirectiveComment
|
53606
53677
|
# @return [DirectiveComment] a new instance of DirectiveComment
|
53607
53678
|
#
|
53608
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53679
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#32
|
53609
53680
|
def initialize(comment, cop_registry = T.unsafe(nil)); end
|
53610
53681
|
|
53611
53682
|
# Checks if all cops specified in this directive
|
53612
53683
|
#
|
53613
53684
|
# @return [Boolean]
|
53614
53685
|
#
|
53615
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53686
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#82
|
53616
53687
|
def all_cops?; end
|
53617
53688
|
|
53618
53689
|
# Returns the value of attribute comment.
|
53619
53690
|
#
|
53620
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53691
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53621
53692
|
def comment; end
|
53622
53693
|
|
53623
53694
|
# Returns array of specified in this directive cop names
|
53624
53695
|
#
|
53625
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53696
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#87
|
53626
53697
|
def cop_names; end
|
53627
53698
|
|
53628
53699
|
# Returns the value of attribute cop_registry.
|
53629
53700
|
#
|
53630
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53701
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53631
53702
|
def cop_registry; end
|
53632
53703
|
|
53633
53704
|
# Returns the value of attribute cops.
|
53634
53705
|
#
|
53635
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53706
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53636
53707
|
def cops; end
|
53637
53708
|
|
53638
53709
|
# Returns array of specified in this directive department names
|
53639
53710
|
# when all department disabled
|
53640
53711
|
#
|
53641
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53712
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#93
|
53642
53713
|
def department_names; end
|
53643
53714
|
|
53644
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53715
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#107
|
53645
53716
|
def directive_count; end
|
53646
53717
|
|
53647
53718
|
# Checks if this directive disables cops
|
53648
53719
|
#
|
53649
53720
|
# @return [Boolean]
|
53650
53721
|
#
|
53651
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53722
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#62
|
53652
53723
|
def disabled?; end
|
53653
53724
|
|
53654
53725
|
# Checks if this directive disables all cops
|
53655
53726
|
#
|
53656
53727
|
# @return [Boolean]
|
53657
53728
|
#
|
53658
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53729
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#77
|
53659
53730
|
def disabled_all?; end
|
53660
53731
|
|
53661
53732
|
# Checks if this directive enables cops
|
53662
53733
|
#
|
53663
53734
|
# @return [Boolean]
|
53664
53735
|
#
|
53665
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53736
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#67
|
53666
53737
|
def enabled?; end
|
53667
53738
|
|
53668
53739
|
# Checks if this directive enables all cops
|
53669
53740
|
#
|
53670
53741
|
# @return [Boolean]
|
53671
53742
|
#
|
53672
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53743
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#72
|
53673
53744
|
def enabled_all?; end
|
53674
53745
|
|
53675
53746
|
# Checks if directive departments include cop
|
53676
53747
|
#
|
53677
53748
|
# @return [Boolean]
|
53678
53749
|
#
|
53679
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53750
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#98
|
53680
53751
|
def in_directive_department?(cop); end
|
53681
53752
|
|
53682
53753
|
# Returns line number for directive
|
53683
53754
|
#
|
53684
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53755
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#112
|
53685
53756
|
def line_number; end
|
53686
53757
|
|
53687
53758
|
# Checks if this directive contains all the given cop names
|
53688
53759
|
#
|
53689
53760
|
# @return [Boolean]
|
53690
53761
|
#
|
53691
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53762
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#44
|
53692
53763
|
def match?(cop_names); end
|
53693
53764
|
|
53694
53765
|
# Returns match captures to directive comment pattern
|
53695
53766
|
#
|
53696
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53767
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#57
|
53697
53768
|
def match_captures; end
|
53698
53769
|
|
53699
53770
|
# Returns the value of attribute mode.
|
53700
53771
|
#
|
53701
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53772
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#30
|
53702
53773
|
def mode; end
|
53703
53774
|
|
53704
53775
|
# Checks if cop department has already used in directive comment
|
53705
53776
|
#
|
53706
53777
|
# @return [Boolean]
|
53707
53778
|
#
|
53708
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53779
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#103
|
53709
53780
|
def overridden_by_department?(cop); end
|
53710
53781
|
|
53711
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53782
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#48
|
53712
53783
|
def range; end
|
53713
53784
|
|
53714
53785
|
# Checks if this directive relates to single line
|
53715
53786
|
#
|
53716
53787
|
# @return [Boolean]
|
53717
53788
|
#
|
53718
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53789
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#39
|
53719
53790
|
def single_line?; end
|
53720
53791
|
|
53721
53792
|
private
|
53722
53793
|
|
53723
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53794
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#133
|
53724
53795
|
def all_cop_names; end
|
53725
53796
|
|
53726
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53797
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#137
|
53727
53798
|
def cop_names_for_department(department); end
|
53728
53799
|
|
53729
53800
|
# @return [Boolean]
|
53730
53801
|
#
|
53731
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53802
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#129
|
53732
53803
|
def department?(name); end
|
53733
53804
|
|
53734
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53735
|
-
def
|
53805
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#142
|
53806
|
+
def exclude_lint_department_cops(cops); end
|
53736
53807
|
|
53737
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53808
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#122
|
53738
53809
|
def parsed_cop_names; end
|
53739
53810
|
|
53740
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53811
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#118
|
53741
53812
|
def splitted_cops_string; end
|
53742
53813
|
|
53743
53814
|
class << self
|
53744
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53815
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#26
|
53745
53816
|
def before_comment(line); end
|
53746
53817
|
end
|
53747
53818
|
end
|
53748
53819
|
|
53749
53820
|
# @api private
|
53750
53821
|
#
|
53751
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53822
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#19
|
53752
53823
|
RuboCop::DirectiveComment::COPS_PATTERN = T.let(T.unsafe(nil), String)
|
53753
53824
|
|
53754
53825
|
# @api private
|
53755
53826
|
#
|
53756
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53827
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#17
|
53757
53828
|
RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String)
|
53758
53829
|
|
53759
53830
|
# @api private
|
53760
53831
|
#
|
53761
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53832
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#15
|
53762
53833
|
RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String)
|
53763
53834
|
|
53764
53835
|
# @api private
|
53765
53836
|
#
|
53766
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53837
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#21
|
53767
53838
|
RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
53768
53839
|
|
53840
|
+
# @api private
|
53841
|
+
#
|
53842
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#9
|
53843
|
+
RuboCop::DirectiveComment::LINT_DEPARTMENT = T.let(T.unsafe(nil), String)
|
53844
|
+
|
53769
53845
|
# @api private
|
53770
53846
|
#
|
53771
53847
|
# source://rubocop//lib/rubocop/directive_comment.rb#11
|
53772
|
-
RuboCop::DirectiveComment::
|
53848
|
+
RuboCop::DirectiveComment::LINT_REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String)
|
53773
53849
|
|
53774
53850
|
# @api private
|
53775
53851
|
#
|
53776
|
-
# source://rubocop//lib/rubocop/directive_comment.rb#
|
53777
|
-
RuboCop::DirectiveComment::
|
53852
|
+
# source://rubocop//lib/rubocop/directive_comment.rb#13
|
53853
|
+
RuboCop::DirectiveComment::LINT_SYNTAX_COP = T.let(T.unsafe(nil), String)
|
53778
53854
|
|
53779
53855
|
# An Error exception is different from an Offense with severity 'error'
|
53780
53856
|
# When this exception is raised, it means that RuboCop is unable to perform
|
@@ -54638,33 +54714,49 @@ RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Ha
|
|
54638
54714
|
class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter
|
54639
54715
|
# @return [HTMLFormatter] a new instance of HTMLFormatter
|
54640
54716
|
#
|
54641
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54717
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#29
|
54642
54718
|
def initialize(output, options = T.unsafe(nil)); end
|
54643
54719
|
|
54644
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54720
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#39
|
54645
54721
|
def file_finished(file, offenses); end
|
54646
54722
|
|
54647
54723
|
# Returns the value of attribute files.
|
54648
54724
|
#
|
54649
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54725
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#27
|
54650
54726
|
def files; end
|
54651
54727
|
|
54652
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54728
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#44
|
54653
54729
|
def finished(inspected_files); end
|
54654
54730
|
|
54655
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54731
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#50
|
54656
54732
|
def render_html; end
|
54657
54733
|
|
54658
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54734
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#35
|
54659
54735
|
def started(target_files); end
|
54660
54736
|
|
54661
54737
|
# Returns the value of attribute summary.
|
54662
54738
|
#
|
54663
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54739
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#27
|
54664
54740
|
def summary; end
|
54665
54741
|
end
|
54666
54742
|
|
54667
|
-
#
|
54743
|
+
# This class provides helper methods used in the ERB CSS template.
|
54744
|
+
#
|
54745
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#135
|
54746
|
+
class RuboCop::Formatter::HTMLFormatter::CSSContext
|
54747
|
+
# Make Kernel#binding public.
|
54748
|
+
#
|
54749
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#146
|
54750
|
+
def binding; end
|
54751
|
+
end
|
54752
|
+
|
54753
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#136
|
54754
|
+
RuboCop::Formatter::HTMLFormatter::CSSContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash)
|
54755
|
+
|
54756
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#12
|
54757
|
+
RuboCop::Formatter::HTMLFormatter::CSS_PATH = T.let(T.unsafe(nil), String)
|
54758
|
+
|
54759
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
|
54668
54760
|
class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
|
54669
54761
|
# Returns the value of attribute alpha
|
54670
54762
|
#
|
@@ -54688,7 +54780,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
|
|
54688
54780
|
# @return [Object] the newly set value
|
54689
54781
|
def blue=(_); end
|
54690
54782
|
|
54691
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54783
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#19
|
54692
54784
|
def fade_out(amount); end
|
54693
54785
|
|
54694
54786
|
# Returns the value of attribute green
|
@@ -54713,7 +54805,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
|
|
54713
54805
|
# @return [Object] the newly set value
|
54714
54806
|
def red=(_); end
|
54715
54807
|
|
54716
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54808
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#15
|
54717
54809
|
def to_s; end
|
54718
54810
|
|
54719
54811
|
class << self
|
@@ -54730,63 +54822,63 @@ RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String)
|
|
54730
54822
|
|
54731
54823
|
# This class provides helper methods used in the ERB template.
|
54732
54824
|
#
|
54733
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54825
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#61
|
54734
54826
|
class RuboCop::Formatter::HTMLFormatter::ERBContext
|
54735
54827
|
include ::RuboCop::PathUtil
|
54736
54828
|
include ::RuboCop::Formatter::TextUtil
|
54737
54829
|
|
54738
54830
|
# @return [ERBContext] a new instance of ERBContext
|
54739
54831
|
#
|
54740
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54832
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#69
|
54741
54833
|
def initialize(files, summary); end
|
54742
54834
|
|
54743
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54835
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#116
|
54744
54836
|
def base64_encoded_logo_image; end
|
54745
54837
|
|
54746
54838
|
# Make Kernel#binding public.
|
54747
54839
|
#
|
54748
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54840
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#76
|
54749
54841
|
def binding; end
|
54750
54842
|
|
54751
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54843
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#81
|
54752
54844
|
def decorated_message(offense); end
|
54753
54845
|
|
54754
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54846
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#112
|
54755
54847
|
def escape(string); end
|
54756
54848
|
|
54757
54849
|
# Returns the value of attribute files.
|
54758
54850
|
#
|
54759
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54851
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#67
|
54760
54852
|
def files; end
|
54761
54853
|
|
54762
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54854
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#92
|
54763
54855
|
def highlight_source_tag(offense); end
|
54764
54856
|
|
54765
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54857
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#85
|
54766
54858
|
def highlighted_source_line(offense); end
|
54767
54859
|
|
54768
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54860
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#108
|
54769
54861
|
def possible_ellipses(location); end
|
54770
54862
|
|
54771
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54863
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#124
|
54864
|
+
def render_css; end
|
54865
|
+
|
54866
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#103
|
54772
54867
|
def source_after_highlight(offense); end
|
54773
54868
|
|
54774
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54869
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#98
|
54775
54870
|
def source_before_highlight(offense); end
|
54776
54871
|
|
54777
54872
|
# Returns the value of attribute summary.
|
54778
54873
|
#
|
54779
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54874
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#67
|
54780
54875
|
def summary; end
|
54781
54876
|
end
|
54782
54877
|
|
54783
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54878
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#65
|
54784
54879
|
RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String)
|
54785
54880
|
|
54786
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54787
|
-
RuboCop::Formatter::HTMLFormatter::ERBContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash)
|
54788
|
-
|
54789
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
|
54881
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
|
54790
54882
|
class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
|
54791
54883
|
# Returns the value of attribute offenses
|
54792
54884
|
#
|
@@ -54819,7 +54911,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
|
|
54819
54911
|
end
|
54820
54912
|
end
|
54821
54913
|
|
54822
|
-
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#
|
54914
|
+
# source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
|
54823
54915
|
class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct
|
54824
54916
|
# Returns the value of attribute inspected_files
|
54825
54917
|
#
|
@@ -55011,6 +55103,9 @@ end
|
|
55011
55103
|
#
|
55012
55104
|
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#16
|
55013
55105
|
class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter
|
55106
|
+
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#81
|
55107
|
+
def cop_information(cop_name); end
|
55108
|
+
|
55014
55109
|
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#42
|
55015
55110
|
def file_finished(_file, offenses); end
|
55016
55111
|
|
@@ -55022,7 +55117,7 @@ class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseForm
|
|
55022
55117
|
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#17
|
55023
55118
|
def offense_counts; end
|
55024
55119
|
|
55025
|
-
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#
|
55120
|
+
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#73
|
55026
55121
|
def ordered_offense_counts(offense_counts); end
|
55027
55122
|
|
55028
55123
|
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#56
|
@@ -55031,7 +55126,7 @@ class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseForm
|
|
55031
55126
|
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#19
|
55032
55127
|
def started(target_files); end
|
55033
55128
|
|
55034
|
-
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#
|
55129
|
+
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#77
|
55035
55130
|
def total_offense_count(offense_counts); end
|
55036
55131
|
end
|
55037
55132
|
|
@@ -55297,50 +55392,63 @@ end
|
|
55297
55392
|
# source://rubocop//lib/rubocop/options.rb#8
|
55298
55393
|
class RuboCop::IncorrectCopNameError < ::StandardError; end
|
55299
55394
|
|
55300
|
-
#
|
55301
|
-
# Does not actually resolve gems, just parses the lockfile.
|
55302
|
-
#
|
55303
|
-
# @api private
|
55395
|
+
# The RuboCop's built-in LSP module.
|
55304
55396
|
#
|
55305
|
-
# source://rubocop//lib/rubocop/
|
55306
|
-
|
55307
|
-
|
55397
|
+
# source://rubocop//lib/rubocop/lsp.rb#5
|
55398
|
+
module RuboCop::LSP
|
55399
|
+
private
|
55400
|
+
|
55401
|
+
# Disable LSP.
|
55308
55402
|
#
|
55309
|
-
# @
|
55403
|
+
# @return [void]
|
55310
55404
|
#
|
55311
|
-
# source://rubocop//lib/rubocop/
|
55312
|
-
def
|
55405
|
+
# source://rubocop//lib/rubocop/lsp.rb#25
|
55406
|
+
def disable; end
|
55313
55407
|
|
55314
|
-
#
|
55408
|
+
# Enable LSP.
|
55315
55409
|
#
|
55316
|
-
# @
|
55410
|
+
# @return [void]
|
55317
55411
|
#
|
55318
|
-
# source://rubocop//lib/rubocop/
|
55319
|
-
def
|
55412
|
+
# source://rubocop//lib/rubocop/lsp.rb#18
|
55413
|
+
def enable; end
|
55320
55414
|
|
55321
|
-
#
|
55415
|
+
# Returns true when LSP is enabled, false when disabled.
|
55416
|
+
#
|
55322
55417
|
# @return [Boolean]
|
55323
55418
|
#
|
55324
|
-
# source://rubocop//lib/rubocop/
|
55325
|
-
def
|
55419
|
+
# source://rubocop//lib/rubocop/lsp.rb#11
|
55420
|
+
def enabled?; end
|
55326
55421
|
|
55327
|
-
|
55422
|
+
class << self
|
55423
|
+
# Disable LSP.
|
55424
|
+
#
|
55425
|
+
# @return [void]
|
55426
|
+
#
|
55427
|
+
# source://rubocop//lib/rubocop/lsp.rb#25
|
55428
|
+
def disable; end
|
55328
55429
|
|
55329
|
-
|
55330
|
-
|
55331
|
-
|
55332
|
-
|
55333
|
-
|
55430
|
+
# Enable LSP.
|
55431
|
+
#
|
55432
|
+
# @return [void]
|
55433
|
+
#
|
55434
|
+
# source://rubocop//lib/rubocop/lsp.rb#18
|
55435
|
+
def enable; end
|
55334
55436
|
|
55335
|
-
#
|
55336
|
-
|
55437
|
+
# Returns true when LSP is enabled, false when disabled.
|
55438
|
+
#
|
55439
|
+
# @return [Boolean]
|
55440
|
+
#
|
55441
|
+
# source://rubocop//lib/rubocop/lsp.rb#11
|
55442
|
+
def enabled?; end
|
55443
|
+
end
|
55444
|
+
end
|
55337
55445
|
|
55338
55446
|
# Log for Language Server Protocol of RuboCop.
|
55339
55447
|
#
|
55340
55448
|
# @api private
|
55341
55449
|
#
|
55342
55450
|
# source://rubocop//lib/rubocop/lsp/logger.rb#16
|
55343
|
-
class RuboCop::
|
55451
|
+
class RuboCop::LSP::Logger
|
55344
55452
|
class << self
|
55345
55453
|
# @api private
|
55346
55454
|
#
|
@@ -55354,7 +55462,7 @@ end
|
|
55354
55462
|
# @api private
|
55355
55463
|
#
|
55356
55464
|
# source://rubocop//lib/rubocop/lsp/routes.rb#18
|
55357
|
-
class RuboCop::
|
55465
|
+
class RuboCop::LSP::Routes
|
55358
55466
|
# @api private
|
55359
55467
|
# @return [Routes] a new instance of Routes
|
55360
55468
|
#
|
@@ -55432,7 +55540,7 @@ end
|
|
55432
55540
|
# @api private
|
55433
55541
|
#
|
55434
55542
|
# source://rubocop//lib/rubocop/lsp/runtime.rb#16
|
55435
|
-
class RuboCop::
|
55543
|
+
class RuboCop::LSP::Runtime
|
55436
55544
|
# @api private
|
55437
55545
|
# @return [Runtime] a new instance of Runtime
|
55438
55546
|
#
|
@@ -55498,42 +55606,42 @@ end
|
|
55498
55606
|
#
|
55499
55607
|
# @api private
|
55500
55608
|
#
|
55501
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55502
|
-
class RuboCop::
|
55609
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#22
|
55610
|
+
class RuboCop::LSP::Server
|
55503
55611
|
# @api private
|
55504
55612
|
# @return [Server] a new instance of Server
|
55505
55613
|
#
|
55506
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55614
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#23
|
55507
55615
|
def initialize(config_store); end
|
55508
55616
|
|
55509
55617
|
# @api private
|
55510
55618
|
#
|
55511
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55619
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#59
|
55512
55620
|
def configure(options); end
|
55513
55621
|
|
55514
55622
|
# @api private
|
55515
55623
|
#
|
55516
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55624
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#51
|
55517
55625
|
def format(path, text, command:); end
|
55518
55626
|
|
55519
55627
|
# @api private
|
55520
55628
|
#
|
55521
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55629
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#55
|
55522
55630
|
def offenses(path, text); end
|
55523
55631
|
|
55524
55632
|
# @api private
|
55525
55633
|
#
|
55526
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55634
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#32
|
55527
55635
|
def start; end
|
55528
55636
|
|
55529
55637
|
# @api private
|
55530
55638
|
#
|
55531
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55639
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#65
|
55532
55640
|
def stop(&block); end
|
55533
55641
|
|
55534
55642
|
# @api private
|
55535
55643
|
#
|
55536
|
-
# source://rubocop//lib/rubocop/lsp/server.rb#
|
55644
|
+
# source://rubocop//lib/rubocop/lsp/server.rb#47
|
55537
55645
|
def write(response); end
|
55538
55646
|
end
|
55539
55647
|
|
@@ -55542,7 +55650,7 @@ end
|
|
55542
55650
|
# @api private
|
55543
55651
|
#
|
55544
55652
|
# source://rubocop//lib/rubocop/lsp/severity.rb#7
|
55545
|
-
class RuboCop::
|
55653
|
+
class RuboCop::LSP::Severity
|
55546
55654
|
class << self
|
55547
55655
|
# @api private
|
55548
55656
|
#
|
@@ -55554,7 +55662,42 @@ end
|
|
55554
55662
|
# @api private
|
55555
55663
|
#
|
55556
55664
|
# source://rubocop//lib/rubocop/lsp/severity.rb#8
|
55557
|
-
RuboCop::
|
55665
|
+
RuboCop::LSP::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash)
|
55666
|
+
|
55667
|
+
# Encapsulation of a lockfile for use when checking for gems.
|
55668
|
+
# Does not actually resolve gems, just parses the lockfile.
|
55669
|
+
#
|
55670
|
+
# @api private
|
55671
|
+
#
|
55672
|
+
# source://rubocop//lib/rubocop/lockfile.rb#7
|
55673
|
+
class RuboCop::Lockfile
|
55674
|
+
# Gems that the bundle depends on
|
55675
|
+
#
|
55676
|
+
# @api private
|
55677
|
+
#
|
55678
|
+
# source://rubocop//lib/rubocop/lockfile.rb#9
|
55679
|
+
def dependencies; end
|
55680
|
+
|
55681
|
+
# All activated gems, including transitive dependencies
|
55682
|
+
#
|
55683
|
+
# @api private
|
55684
|
+
#
|
55685
|
+
# source://rubocop//lib/rubocop/lockfile.rb#16
|
55686
|
+
def gems; end
|
55687
|
+
|
55688
|
+
# @api private
|
55689
|
+
# @return [Boolean]
|
55690
|
+
#
|
55691
|
+
# source://rubocop//lib/rubocop/lockfile.rb#24
|
55692
|
+
def includes_gem?(name); end
|
55693
|
+
|
55694
|
+
private
|
55695
|
+
|
55696
|
+
# @api private
|
55697
|
+
#
|
55698
|
+
# source://rubocop//lib/rubocop/lockfile.rb#30
|
55699
|
+
def parser; end
|
55700
|
+
end
|
55558
55701
|
|
55559
55702
|
# Parse different formats of magic comments.
|
55560
55703
|
#
|
@@ -55913,7 +56056,7 @@ class RuboCop::Options
|
|
55913
56056
|
|
55914
56057
|
# @api private
|
55915
56058
|
#
|
55916
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56059
|
+
# source://rubocop//lib/rubocop/options.rb#229
|
55917
56060
|
def add_additional_modes(opts); end
|
55918
56061
|
|
55919
56062
|
# the autocorrect command-line arguments map to the autocorrect @options values like so:
|
@@ -55925,12 +56068,12 @@ class RuboCop::Options
|
|
55925
56068
|
#
|
55926
56069
|
# @api private
|
55927
56070
|
#
|
55928
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56071
|
+
# source://rubocop//lib/rubocop/options.rb#140
|
55929
56072
|
def add_autocorrection_options(opts); end
|
55930
56073
|
|
55931
56074
|
# @api private
|
55932
56075
|
#
|
55933
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56076
|
+
# source://rubocop//lib/rubocop/options.rb#205
|
55934
56077
|
def add_cache_options(opts); end
|
55935
56078
|
|
55936
56079
|
# @api private
|
@@ -55940,42 +56083,42 @@ class RuboCop::Options
|
|
55940
56083
|
|
55941
56084
|
# @api private
|
55942
56085
|
#
|
55943
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56086
|
+
# source://rubocop//lib/rubocop/options.rb#163
|
55944
56087
|
def add_config_generation_options(opts); end
|
55945
56088
|
|
55946
56089
|
# @api private
|
55947
56090
|
#
|
55948
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56091
|
+
# source://rubocop//lib/rubocop/options.rb#181
|
55949
56092
|
def add_cop_selection_csv_option(option, opts); end
|
55950
56093
|
|
55951
56094
|
# @api private
|
55952
56095
|
#
|
55953
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56096
|
+
# source://rubocop//lib/rubocop/options.rb#241
|
55954
56097
|
def add_general_options(opts); end
|
55955
56098
|
|
55956
56099
|
# @api private
|
55957
56100
|
#
|
55958
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56101
|
+
# source://rubocop//lib/rubocop/options.rb#212
|
55959
56102
|
def add_lsp_option(opts); end
|
55960
56103
|
|
55961
56104
|
# @api private
|
55962
56105
|
#
|
55963
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56106
|
+
# source://rubocop//lib/rubocop/options.rb#105
|
55964
56107
|
def add_output_options(opts); end
|
55965
56108
|
|
55966
56109
|
# @api private
|
55967
56110
|
#
|
55968
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56111
|
+
# source://rubocop//lib/rubocop/options.rb#253
|
55969
56112
|
def add_profile_options(opts); end
|
55970
56113
|
|
55971
56114
|
# @api private
|
55972
56115
|
#
|
55973
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56116
|
+
# source://rubocop//lib/rubocop/options.rb#218
|
55974
56117
|
def add_server_options(opts); end
|
55975
56118
|
|
55976
56119
|
# @api private
|
55977
56120
|
#
|
55978
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56121
|
+
# source://rubocop//lib/rubocop/options.rb#196
|
55979
56122
|
def add_severity_option(opts); end
|
55980
56123
|
|
55981
56124
|
# @api private
|
@@ -55985,7 +56128,7 @@ class RuboCop::Options
|
|
55985
56128
|
|
55986
56129
|
# @api private
|
55987
56130
|
#
|
55988
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56131
|
+
# source://rubocop//lib/rubocop/options.rb#263
|
55989
56132
|
def handle_deprecated_option(old_option, new_option); end
|
55990
56133
|
|
55991
56134
|
# Finds the option in `args` starting with -- and converts it to a symbol,
|
@@ -55993,7 +56136,7 @@ class RuboCop::Options
|
|
55993
56136
|
#
|
55994
56137
|
# @api private
|
55995
56138
|
#
|
55996
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56139
|
+
# source://rubocop//lib/rubocop/options.rb#297
|
55997
56140
|
def long_opt_symbol(args); end
|
55998
56141
|
|
55999
56142
|
# Sets a value in the @options hash, based on the given long option and its
|
@@ -56001,17 +56144,17 @@ class RuboCop::Options
|
|
56001
56144
|
#
|
56002
56145
|
# @api private
|
56003
56146
|
#
|
56004
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56147
|
+
# source://rubocop//lib/rubocop/options.rb#286
|
56005
56148
|
def option(opts, *args); end
|
56006
56149
|
|
56007
56150
|
# @api private
|
56008
56151
|
#
|
56009
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56152
|
+
# source://rubocop//lib/rubocop/options.rb#268
|
56010
56153
|
def rainbow; end
|
56011
56154
|
|
56012
56155
|
# @api private
|
56013
56156
|
#
|
56014
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56157
|
+
# source://rubocop//lib/rubocop/options.rb#302
|
56015
56158
|
def require_feature(file); end
|
56016
56159
|
|
56017
56160
|
# Creates a section of options in order to separate them visually when
|
@@ -56019,7 +56162,7 @@ class RuboCop::Options
|
|
56019
56162
|
#
|
56020
56163
|
# @api private
|
56021
56164
|
#
|
56022
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56165
|
+
# source://rubocop//lib/rubocop/options.rb#278
|
56023
56166
|
def section(opts, heading, &_block); end
|
56024
56167
|
end
|
56025
56168
|
|
@@ -56042,135 +56185,141 @@ RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String)
|
|
56042
56185
|
#
|
56043
56186
|
# @api private
|
56044
56187
|
#
|
56045
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56188
|
+
# source://rubocop//lib/rubocop/options.rb#498
|
56046
56189
|
module RuboCop::OptionsHelp; end
|
56047
56190
|
|
56048
56191
|
# @api private
|
56049
56192
|
#
|
56050
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56193
|
+
# source://rubocop//lib/rubocop/options.rb#500
|
56051
56194
|
RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array)
|
56052
56195
|
|
56053
56196
|
# @api private
|
56054
56197
|
#
|
56055
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56198
|
+
# source://rubocop//lib/rubocop/options.rb#499
|
56056
56199
|
RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String)
|
56057
56200
|
|
56058
56201
|
# @api private
|
56059
56202
|
#
|
56060
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56203
|
+
# source://rubocop//lib/rubocop/options.rb#502
|
56061
56204
|
RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash)
|
56062
56205
|
|
56063
56206
|
# Validates option arguments and the options' compatibility with each other.
|
56064
56207
|
#
|
56065
56208
|
# @api private
|
56066
56209
|
#
|
56067
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56210
|
+
# source://rubocop//lib/rubocop/options.rb#312
|
56068
56211
|
class RuboCop::OptionsValidator
|
56069
56212
|
# @api private
|
56070
56213
|
# @return [OptionsValidator] a new instance of OptionsValidator
|
56071
56214
|
#
|
56072
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56215
|
+
# source://rubocop//lib/rubocop/options.rb#350
|
56073
56216
|
def initialize(options); end
|
56074
56217
|
|
56075
56218
|
# @api private
|
56076
56219
|
# @return [Boolean]
|
56077
56220
|
#
|
56078
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56221
|
+
# source://rubocop//lib/rubocop/options.rb#472
|
56079
56222
|
def boolean_or_empty_cache?; end
|
56080
56223
|
|
56081
56224
|
# @api private
|
56082
56225
|
#
|
56083
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56226
|
+
# source://rubocop//lib/rubocop/options.rb#442
|
56084
56227
|
def disable_parallel_when_invalid_option_combo; end
|
56085
56228
|
|
56086
56229
|
# @api private
|
56087
56230
|
# @return [Boolean]
|
56088
56231
|
#
|
56089
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56232
|
+
# source://rubocop//lib/rubocop/options.rb#468
|
56090
56233
|
def except_syntax?; end
|
56091
56234
|
|
56092
56235
|
# @api private
|
56093
56236
|
#
|
56094
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56237
|
+
# source://rubocop//lib/rubocop/options.rb#476
|
56095
56238
|
def incompatible_options; end
|
56096
56239
|
|
56097
56240
|
# @api private
|
56098
56241
|
#
|
56099
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56242
|
+
# source://rubocop//lib/rubocop/options.rb#455
|
56100
56243
|
def invalid_arguments_for_parallel; end
|
56101
56244
|
|
56102
56245
|
# @api private
|
56103
56246
|
# @return [Boolean]
|
56104
56247
|
#
|
56105
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56248
|
+
# source://rubocop//lib/rubocop/options.rb#463
|
56106
56249
|
def only_includes_redundant_disable?; end
|
56107
56250
|
|
56108
56251
|
# @api private
|
56109
56252
|
#
|
56110
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56253
|
+
# source://rubocop//lib/rubocop/options.rb#382
|
56111
56254
|
def validate_auto_gen_config; end
|
56112
56255
|
|
56113
56256
|
# @api private
|
56114
56257
|
# @raise [OptionArgumentError]
|
56115
56258
|
#
|
56116
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56259
|
+
# source://rubocop//lib/rubocop/options.rb#428
|
56117
56260
|
def validate_autocorrect; end
|
56118
56261
|
|
56119
56262
|
# @api private
|
56120
56263
|
# @raise [OptionArgumentError]
|
56121
56264
|
#
|
56122
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56265
|
+
# source://rubocop//lib/rubocop/options.rb#488
|
56123
56266
|
def validate_cache_enabled_for_cache_root; end
|
56124
56267
|
|
56125
56268
|
# @api private
|
56126
56269
|
# @raise [OptionArgumentError]
|
56127
56270
|
#
|
56128
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56271
|
+
# source://rubocop//lib/rubocop/options.rb#359
|
56129
56272
|
def validate_compatibility; end
|
56130
56273
|
|
56131
56274
|
# @api private
|
56132
56275
|
#
|
56133
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56276
|
+
# source://rubocop//lib/rubocop/options.rb#354
|
56134
56277
|
def validate_cop_options; end
|
56135
56278
|
|
56136
56279
|
# @api private
|
56137
56280
|
# @raise [OptionArgumentError]
|
56138
56281
|
#
|
56139
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56282
|
+
# source://rubocop//lib/rubocop/options.rb#403
|
56140
56283
|
def validate_display_only_correctable_and_autocorrect; end
|
56141
56284
|
|
56142
56285
|
# @api private
|
56143
56286
|
# @raise [OptionArgumentError]
|
56144
56287
|
#
|
56145
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56288
|
+
# source://rubocop//lib/rubocop/options.rb#395
|
56146
56289
|
def validate_display_only_failed; end
|
56147
56290
|
|
56148
56291
|
# @api private
|
56149
56292
|
# @raise [OptionArgumentError]
|
56150
56293
|
#
|
56151
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56294
|
+
# source://rubocop//lib/rubocop/options.rb#412
|
56152
56295
|
def validate_display_only_failed_and_display_only_correctable; end
|
56153
56296
|
|
56154
56297
|
# @api private
|
56155
56298
|
# @raise [OptionParser::MissingArgument]
|
56156
56299
|
#
|
56157
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56300
|
+
# source://rubocop//lib/rubocop/options.rb#480
|
56158
56301
|
def validate_exclude_limit_option; end
|
56159
56302
|
|
56303
|
+
# @api private
|
56304
|
+
# @raise [OptionArgumentError]
|
56305
|
+
#
|
56306
|
+
# source://rubocop//lib/rubocop/options.rb#421
|
56307
|
+
def validate_lsp_and_editor_mode; end
|
56308
|
+
|
56160
56309
|
class << self
|
56161
56310
|
# Cop name validation must be done later than option parsing, so it's not
|
56162
56311
|
# called from within Options.
|
56163
56312
|
#
|
56164
56313
|
# @api private
|
56165
56314
|
#
|
56166
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56315
|
+
# source://rubocop//lib/rubocop/options.rb#319
|
56167
56316
|
def validate_cop_list(names); end
|
56168
56317
|
|
56169
56318
|
private
|
56170
56319
|
|
56171
56320
|
# @api private
|
56172
56321
|
#
|
56173
|
-
# source://rubocop//lib/rubocop/options.rb#
|
56322
|
+
# source://rubocop//lib/rubocop/options.rb#336
|
56174
56323
|
def format_message_from(name, cop_names); end
|
56175
56324
|
end
|
56176
56325
|
end
|
@@ -56183,21 +56332,21 @@ module RuboCop::PathUtil
|
|
56183
56332
|
|
56184
56333
|
# Returns true for an absolute Unix or Windows path.
|
56185
56334
|
#
|
56186
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56335
|
+
# source://rubocop//lib/rubocop/path_util.rb#76
|
56187
56336
|
def absolute?(path); end
|
56188
56337
|
|
56189
56338
|
# Returns true for a glob
|
56190
56339
|
#
|
56191
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56340
|
+
# source://rubocop//lib/rubocop/path_util.rb#81
|
56192
56341
|
def glob?(path); end
|
56193
56342
|
|
56194
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56343
|
+
# source://rubocop//lib/rubocop/path_util.rb#111
|
56195
56344
|
def hidden_dir?(path); end
|
56196
56345
|
|
56197
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56346
|
+
# source://rubocop//lib/rubocop/path_util.rb#94
|
56198
56347
|
def hidden_file?(path); end
|
56199
56348
|
|
56200
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56349
|
+
# source://rubocop//lib/rubocop/path_util.rb#85
|
56201
56350
|
def hidden_file_in_not_hidden_dir?(pattern, path); end
|
56202
56351
|
|
56203
56352
|
# source://rubocop//lib/rubocop/path_util.rb#48
|
@@ -56205,7 +56354,7 @@ module RuboCop::PathUtil
|
|
56205
56354
|
|
56206
56355
|
# Loose check to reduce memory allocations
|
56207
56356
|
#
|
56208
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56357
|
+
# source://rubocop//lib/rubocop/path_util.rb#101
|
56209
56358
|
def maybe_hidden_file?(path); end
|
56210
56359
|
|
56211
56360
|
# source://rubocop//lib/rubocop/path_util.rb#13
|
@@ -56219,29 +56368,29 @@ module RuboCop::PathUtil
|
|
56219
56368
|
#
|
56220
56369
|
# @return [Boolean]
|
56221
56370
|
#
|
56222
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56371
|
+
# source://rubocop//lib/rubocop/path_util.rb#76
|
56223
56372
|
def absolute?(path); end
|
56224
56373
|
|
56225
56374
|
# Returns true for a glob
|
56226
56375
|
#
|
56227
56376
|
# @return [Boolean]
|
56228
56377
|
#
|
56229
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56378
|
+
# source://rubocop//lib/rubocop/path_util.rb#81
|
56230
56379
|
def glob?(path); end
|
56231
56380
|
|
56232
56381
|
# @return [Boolean]
|
56233
56382
|
#
|
56234
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56383
|
+
# source://rubocop//lib/rubocop/path_util.rb#111
|
56235
56384
|
def hidden_dir?(path); end
|
56236
56385
|
|
56237
56386
|
# @return [Boolean]
|
56238
56387
|
#
|
56239
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56388
|
+
# source://rubocop//lib/rubocop/path_util.rb#94
|
56240
56389
|
def hidden_file?(path); end
|
56241
56390
|
|
56242
56391
|
# @return [Boolean]
|
56243
56392
|
#
|
56244
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56393
|
+
# source://rubocop//lib/rubocop/path_util.rb#85
|
56245
56394
|
def hidden_file_in_not_hidden_dir?(pattern, path); end
|
56246
56395
|
|
56247
56396
|
# @return [Boolean]
|
@@ -56253,7 +56402,7 @@ module RuboCop::PathUtil
|
|
56253
56402
|
#
|
56254
56403
|
# @return [Boolean]
|
56255
56404
|
#
|
56256
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56405
|
+
# source://rubocop//lib/rubocop/path_util.rb#101
|
56257
56406
|
def maybe_hidden_file?(path); end
|
56258
56407
|
|
56259
56408
|
# source://rubocop//lib/rubocop/path_util.rb#13
|
@@ -56276,7 +56425,7 @@ module RuboCop::PathUtil
|
|
56276
56425
|
end
|
56277
56426
|
end
|
56278
56427
|
|
56279
|
-
# source://rubocop//lib/rubocop/path_util.rb#
|
56428
|
+
# source://rubocop//lib/rubocop/path_util.rb#98
|
56280
56429
|
RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String)
|
56281
56430
|
|
56282
56431
|
# source://rubocop//lib/rubocop/path_util.rb#31
|
@@ -56665,7 +56814,7 @@ class RuboCop::Runner
|
|
56665
56814
|
# source://rubocop//lib/rubocop/runner.rb#414
|
56666
56815
|
def formatter_set; end
|
56667
56816
|
|
56668
|
-
# source://rubocop//lib/rubocop/runner.rb#
|
56817
|
+
# source://rubocop//lib/rubocop/runner.rb#471
|
56669
56818
|
def get_processed_source(file); end
|
56670
56819
|
|
56671
56820
|
# source://rubocop//lib/rubocop/runner.rb#342
|
@@ -56716,7 +56865,7 @@ class RuboCop::Runner
|
|
56716
56865
|
# otherwise dormant team that can be used for config- and option-
|
56717
56866
|
# level caching in ResultCache.
|
56718
56867
|
#
|
56719
|
-
# source://rubocop//lib/rubocop/runner.rb#
|
56868
|
+
# source://rubocop//lib/rubocop/runner.rb#499
|
56720
56869
|
def standby_team(config); end
|
56721
56870
|
|
56722
56871
|
# @return [Boolean]
|
@@ -56813,173 +56962,180 @@ RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash)
|
|
56813
56962
|
# source://rubocop//lib/rubocop/string_interpreter.rb#12
|
56814
56963
|
RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp)
|
56815
56964
|
|
56816
|
-
# This class finds target files to inspect by scanning the directory tree
|
56817
|
-
# and picking ruby files.
|
56965
|
+
# This class finds target files to inspect by scanning the directory tree and picking ruby files.
|
56818
56966
|
#
|
56819
56967
|
# @api private
|
56820
56968
|
#
|
56821
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56969
|
+
# source://rubocop//lib/rubocop/target_finder.rb#6
|
56822
56970
|
class RuboCop::TargetFinder
|
56823
56971
|
# @api private
|
56824
56972
|
# @return [TargetFinder] a new instance of TargetFinder
|
56825
56973
|
#
|
56826
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56974
|
+
# source://rubocop//lib/rubocop/target_finder.rb#9
|
56827
56975
|
def initialize(config_store, options = T.unsafe(nil)); end
|
56828
56976
|
|
56977
|
+
# Generate a list of target files by expanding globbing patterns (if any). If args is empty,
|
56978
|
+
# recursively find all Ruby source files under the current directory
|
56979
|
+
#
|
56829
56980
|
# @api private
|
56981
|
+
# @return [Array] array of file paths
|
56830
56982
|
#
|
56831
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56832
|
-
def
|
56983
|
+
# source://rubocop//lib/rubocop/target_finder.rb#17
|
56984
|
+
def find(args, mode); end
|
56985
|
+
|
56986
|
+
# Search for files recursively starting at the given base directory using the given flags that
|
56987
|
+
# determine how the match is made. Excluded files will be removed later by the caller, but as an
|
56988
|
+
# optimization find_files removes the top level directories that are excluded in configuration
|
56989
|
+
# in the normal way (dir/**/*).
|
56990
|
+
#
|
56991
|
+
# @api private
|
56992
|
+
#
|
56993
|
+
# source://rubocop//lib/rubocop/target_finder.rb#58
|
56994
|
+
def find_files(base_dir, flags); end
|
56995
|
+
|
56996
|
+
# Finds all Ruby source files under the current or other supplied directory. A Ruby source file
|
56997
|
+
# is defined as a file with the `.rb` extension or a file with no extension that has a ruby
|
56998
|
+
# shebang line as its first line.
|
56999
|
+
# It is possible to specify includes and excludes using the config file, so you can include
|
57000
|
+
# other Ruby files like Rakefiles and gemspecs.
|
57001
|
+
#
|
57002
|
+
# @api private
|
57003
|
+
# @param base_dir Root directory under which to search for
|
57004
|
+
# ruby source files
|
57005
|
+
# @return [Array] Array of filenames
|
57006
|
+
#
|
57007
|
+
# source://rubocop//lib/rubocop/target_finder.rb#41
|
57008
|
+
def target_files_in_dir(base_dir = T.unsafe(nil)); end
|
57009
|
+
|
57010
|
+
private
|
56833
57011
|
|
56834
57012
|
# @api private
|
56835
57013
|
#
|
56836
57014
|
# source://rubocop//lib/rubocop/target_finder.rb#120
|
57015
|
+
def all_cops_include; end
|
57016
|
+
|
57017
|
+
# @api private
|
57018
|
+
#
|
57019
|
+
# source://rubocop//lib/rubocop/target_finder.rb#106
|
56837
57020
|
def combined_exclude_glob_patterns(base_dir); end
|
56838
57021
|
|
56839
57022
|
# @api private
|
56840
57023
|
# @return [Boolean]
|
56841
57024
|
#
|
56842
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57025
|
+
# source://rubocop//lib/rubocop/target_finder.rb#172
|
56843
57026
|
def configured_include?(file); end
|
56844
57027
|
|
56845
57028
|
# @api private
|
56846
57029
|
# @return [Boolean]
|
56847
57030
|
#
|
56848
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57031
|
+
# source://rubocop//lib/rubocop/target_finder.rb#208
|
56849
57032
|
def debug?; end
|
56850
57033
|
|
56851
57034
|
# @api private
|
56852
57035
|
# @return [Boolean]
|
56853
57036
|
#
|
56854
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57037
|
+
# source://rubocop//lib/rubocop/target_finder.rb#212
|
56855
57038
|
def fail_fast?; end
|
56856
57039
|
|
56857
|
-
# Generate a list of target files by expanding globbing patterns
|
56858
|
-
# (if any). If args is empty, recursively find all Ruby source
|
56859
|
-
# files under the current directory
|
56860
|
-
#
|
56861
57040
|
# @api private
|
56862
|
-
# @return [
|
57041
|
+
# @return [Boolean]
|
56863
57042
|
#
|
56864
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56865
|
-
def
|
57043
|
+
# source://rubocop//lib/rubocop/target_finder.rb#200
|
57044
|
+
def force_exclusion?; end
|
56866
57045
|
|
56867
|
-
# Search for files recursively starting at the given base directory using
|
56868
|
-
# the given flags that determine how the match is made. Excluded files will
|
56869
|
-
# be removed later by the caller, but as an optimization find_files removes
|
56870
|
-
# the top level directories that are excluded in configuration in the
|
56871
|
-
# normal way (dir/**/*).
|
56872
|
-
#
|
56873
57046
|
# @api private
|
57047
|
+
# @return [Boolean]
|
56874
57048
|
#
|
56875
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56876
|
-
def
|
57049
|
+
# source://rubocop//lib/rubocop/target_finder.rb#204
|
57050
|
+
def ignore_parent_exclusion?; end
|
56877
57051
|
|
56878
57052
|
# @api private
|
56879
57053
|
# @return [Boolean]
|
56880
57054
|
#
|
56881
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56882
|
-
def
|
57055
|
+
# source://rubocop//lib/rubocop/target_finder.rb#145
|
57056
|
+
def included_file?(file); end
|
56883
57057
|
|
56884
57058
|
# @api private
|
56885
|
-
# @return [Boolean]
|
56886
57059
|
#
|
56887
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56888
|
-
def
|
57060
|
+
# source://rubocop//lib/rubocop/target_finder.rb#191
|
57061
|
+
def order; end
|
56889
57062
|
|
56890
57063
|
# @api private
|
56891
57064
|
#
|
56892
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57065
|
+
# source://rubocop//lib/rubocop/target_finder.rb#124
|
56893
57066
|
def process_explicit_path(path, mode); end
|
56894
57067
|
|
56895
57068
|
# @api private
|
56896
57069
|
# @return [Boolean]
|
56897
57070
|
#
|
56898
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57071
|
+
# source://rubocop//lib/rubocop/target_finder.rb#176
|
56899
57072
|
def ruby_executable?(file); end
|
56900
57073
|
|
56901
57074
|
# @api private
|
56902
57075
|
# @return [Boolean]
|
56903
57076
|
#
|
56904
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57077
|
+
# source://rubocop//lib/rubocop/target_finder.rb#157
|
56905
57078
|
def ruby_extension?(file); end
|
56906
57079
|
|
56907
57080
|
# @api private
|
56908
57081
|
#
|
56909
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57082
|
+
# source://rubocop//lib/rubocop/target_finder.rb#161
|
56910
57083
|
def ruby_extensions; end
|
56911
57084
|
|
56912
57085
|
# @api private
|
56913
57086
|
# @return [Boolean]
|
56914
57087
|
#
|
56915
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57088
|
+
# source://rubocop//lib/rubocop/target_finder.rb#149
|
56916
57089
|
def ruby_file?(file); end
|
56917
57090
|
|
56918
57091
|
# @api private
|
56919
57092
|
# @return [Boolean]
|
56920
57093
|
#
|
56921
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57094
|
+
# source://rubocop//lib/rubocop/target_finder.rb#168
|
56922
57095
|
def ruby_filename?(file); end
|
56923
57096
|
|
56924
57097
|
# @api private
|
56925
57098
|
#
|
56926
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57099
|
+
# source://rubocop//lib/rubocop/target_finder.rb#113
|
56927
57100
|
def ruby_filenames; end
|
56928
57101
|
|
56929
57102
|
# @api private
|
56930
57103
|
#
|
56931
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57104
|
+
# source://rubocop//lib/rubocop/target_finder.rb#187
|
56932
57105
|
def ruby_interpreters(file); end
|
56933
57106
|
|
56934
57107
|
# @api private
|
56935
57108
|
# @return [Boolean]
|
56936
57109
|
#
|
56937
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57110
|
+
# source://rubocop//lib/rubocop/target_finder.rb#153
|
56938
57111
|
def stdin?; end
|
56939
57112
|
|
56940
57113
|
# @api private
|
56941
57114
|
# @return [Boolean]
|
56942
57115
|
#
|
56943
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57116
|
+
# source://rubocop//lib/rubocop/target_finder.rb#98
|
56944
57117
|
def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end
|
56945
57118
|
|
56946
|
-
# Finds all Ruby source files under the current or other supplied
|
56947
|
-
# directory. A Ruby source file is defined as a file with the `.rb`
|
56948
|
-
# extension or a file with no extension that has a ruby shebang line
|
56949
|
-
# as its first line.
|
56950
|
-
# It is possible to specify includes and excludes using the config file,
|
56951
|
-
# so you can include other Ruby files like Rakefiles and gemspecs.
|
56952
|
-
#
|
56953
|
-
# @api private
|
56954
|
-
# @param base_dir Root directory under which to search for
|
56955
|
-
# ruby source files
|
56956
|
-
# @return [Array] Array of filenames
|
56957
|
-
#
|
56958
|
-
# source://rubocop//lib/rubocop/target_finder.rb#56
|
56959
|
-
def target_files_in_dir(base_dir = T.unsafe(nil)); end
|
56960
|
-
|
56961
57119
|
# @api private
|
56962
57120
|
# @return [Boolean]
|
56963
57121
|
#
|
56964
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57122
|
+
# source://rubocop//lib/rubocop/target_finder.rb#73
|
56965
57123
|
def to_inspect?(file, hidden_files, base_dir_config); end
|
56966
57124
|
|
56967
57125
|
# @api private
|
56968
57126
|
#
|
56969
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57127
|
+
# source://rubocop//lib/rubocop/target_finder.rb#82
|
56970
57128
|
def wanted_dir_patterns(base_dir, exclude_pattern, flags); end
|
56971
57129
|
|
56972
|
-
private
|
56973
|
-
|
56974
57130
|
# @api private
|
56975
57131
|
#
|
56976
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
56977
|
-
def
|
57132
|
+
# source://rubocop//lib/rubocop/target_finder.rb#134
|
57133
|
+
def without_excluded(files); end
|
56978
57134
|
end
|
56979
57135
|
|
56980
57136
|
# @api private
|
56981
57137
|
#
|
56982
|
-
# source://rubocop//lib/rubocop/target_finder.rb#
|
57138
|
+
# source://rubocop//lib/rubocop/target_finder.rb#7
|
56983
57139
|
RuboCop::TargetFinder::HIDDEN_PATH_SUBSTRING = T.let(T.unsafe(nil), String)
|
56984
57140
|
|
56985
57141
|
# The kind of Ruby that code inspected by RuboCop is written in.
|
@@ -56991,34 +57147,34 @@ class RuboCop::TargetRuby
|
|
56991
57147
|
# @api private
|
56992
57148
|
# @return [TargetRuby] a new instance of TargetRuby
|
56993
57149
|
#
|
56994
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57150
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#254
|
56995
57151
|
def initialize(config); end
|
56996
57152
|
|
56997
57153
|
# @api private
|
56998
57154
|
#
|
56999
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57155
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#270
|
57000
57156
|
def rubocop_version_with_support; end
|
57001
57157
|
|
57002
57158
|
# @api private
|
57003
57159
|
#
|
57004
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57160
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#258
|
57005
57161
|
def source; end
|
57006
57162
|
|
57007
57163
|
# @api private
|
57008
57164
|
# @return [Boolean]
|
57009
57165
|
#
|
57010
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57166
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#266
|
57011
57167
|
def supported?; end
|
57012
57168
|
|
57013
57169
|
# @api private
|
57014
57170
|
#
|
57015
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57171
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#262
|
57016
57172
|
def version; end
|
57017
57173
|
|
57018
57174
|
class << self
|
57019
57175
|
# @api private
|
57020
57176
|
#
|
57021
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57177
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#240
|
57022
57178
|
def supported_versions; end
|
57023
57179
|
end
|
57024
57180
|
end
|
@@ -57027,23 +57183,23 @@ end
|
|
57027
57183
|
#
|
57028
57184
|
# @api private
|
57029
57185
|
#
|
57030
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57186
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#187
|
57031
57187
|
class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source
|
57032
57188
|
# @api private
|
57033
57189
|
#
|
57034
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57190
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#188
|
57035
57191
|
def name; end
|
57036
57192
|
|
57037
57193
|
private
|
57038
57194
|
|
57039
57195
|
# @api private
|
57040
57196
|
#
|
57041
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57197
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#221
|
57042
57198
|
def bundler_lock_file_path; end
|
57043
57199
|
|
57044
57200
|
# @api private
|
57045
57201
|
#
|
57046
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57202
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#194
|
57047
57203
|
def find_version; end
|
57048
57204
|
end
|
57049
57205
|
|
@@ -57056,18 +57212,18 @@ RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float)
|
|
57056
57212
|
#
|
57057
57213
|
# @api private
|
57058
57214
|
#
|
57059
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57215
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#228
|
57060
57216
|
class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source
|
57061
57217
|
# @api private
|
57062
57218
|
#
|
57063
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57219
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#229
|
57064
57220
|
def name; end
|
57065
57221
|
|
57066
57222
|
private
|
57067
57223
|
|
57068
57224
|
# @api private
|
57069
57225
|
#
|
57070
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57226
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#235
|
57071
57227
|
def find_version; end
|
57072
57228
|
end
|
57073
57229
|
|
@@ -57075,62 +57231,62 @@ end
|
|
57075
57231
|
#
|
57076
57232
|
# @api private
|
57077
57233
|
#
|
57078
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57234
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#53
|
57079
57235
|
class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source
|
57080
57236
|
extend ::RuboCop::AST::NodePattern::Macros
|
57081
57237
|
|
57082
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57238
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#64
|
57083
57239
|
def gem_requirement_versions(param0 = T.unsafe(nil)); end
|
57084
57240
|
|
57085
57241
|
# @api private
|
57086
57242
|
#
|
57087
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57243
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#70
|
57088
57244
|
def name; end
|
57089
57245
|
|
57090
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57246
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#59
|
57091
57247
|
def required_ruby_version(param0); end
|
57092
57248
|
|
57093
57249
|
private
|
57094
57250
|
|
57095
57251
|
# @api private
|
57096
57252
|
#
|
57097
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57253
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#121
|
57098
57254
|
def find_default_minimal_known_ruby(right_hand_side); end
|
57099
57255
|
|
57100
57256
|
# @api private
|
57101
57257
|
#
|
57102
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57258
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#76
|
57103
57259
|
def find_version; end
|
57104
57260
|
|
57105
57261
|
# @api private
|
57106
57262
|
#
|
57107
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57263
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#86
|
57108
57264
|
def gemspec_filename; end
|
57109
57265
|
|
57110
57266
|
# @api private
|
57111
57267
|
#
|
57112
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57268
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#93
|
57113
57269
|
def gemspec_filepath; end
|
57114
57270
|
|
57115
57271
|
# @api private
|
57116
57272
|
#
|
57117
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57273
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#117
|
57118
57274
|
def version_from_array(array); end
|
57119
57275
|
|
57120
57276
|
# @api private
|
57121
57277
|
#
|
57122
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57278
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#98
|
57123
57279
|
def version_from_gemspec_file(file); end
|
57124
57280
|
|
57125
57281
|
# @api private
|
57126
57282
|
#
|
57127
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57283
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#105
|
57128
57284
|
def version_from_right_hand_side(right_hand_side); end
|
57129
57285
|
end
|
57130
57286
|
|
57131
57287
|
# @api private
|
57132
57288
|
#
|
57133
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57289
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#56
|
57134
57290
|
RuboCop::TargetRuby::GemspecFile::GEMSPEC_EXTENSION = T.let(T.unsafe(nil), String)
|
57135
57291
|
|
57136
57292
|
# @api private
|
@@ -57166,49 +57322,49 @@ end
|
|
57166
57322
|
#
|
57167
57323
|
# @api private
|
57168
57324
|
#
|
57169
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57325
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#133
|
57170
57326
|
class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source
|
57171
57327
|
# @api private
|
57172
57328
|
#
|
57173
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57329
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#137
|
57174
57330
|
def name; end
|
57175
57331
|
|
57176
57332
|
private
|
57177
57333
|
|
57178
57334
|
# @api private
|
57179
57335
|
#
|
57180
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57336
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#143
|
57181
57337
|
def filename; end
|
57182
57338
|
|
57183
57339
|
# @api private
|
57184
57340
|
#
|
57185
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57341
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#151
|
57186
57342
|
def find_version; end
|
57187
57343
|
|
57188
57344
|
# @api private
|
57189
57345
|
#
|
57190
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57346
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#147
|
57191
57347
|
def pattern; end
|
57192
57348
|
|
57193
57349
|
# @api private
|
57194
57350
|
#
|
57195
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57351
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#158
|
57196
57352
|
def version_file; end
|
57197
57353
|
end
|
57198
57354
|
|
57199
57355
|
# @api private
|
57200
57356
|
#
|
57201
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57357
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#134
|
57202
57358
|
RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String)
|
57203
57359
|
|
57204
57360
|
# @api private
|
57205
57361
|
#
|
57206
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57362
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#135
|
57207
57363
|
RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp)
|
57208
57364
|
|
57209
57365
|
# @api private
|
57210
57366
|
#
|
57211
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57367
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#244
|
57212
57368
|
RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array)
|
57213
57369
|
|
57214
57370
|
# A place where information about a target ruby version is found.
|
@@ -57244,34 +57400,34 @@ end
|
|
57244
57400
|
#
|
57245
57401
|
# @api private
|
57246
57402
|
#
|
57247
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57403
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#166
|
57248
57404
|
class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile
|
57249
57405
|
# @api private
|
57250
57406
|
#
|
57251
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57407
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#170
|
57252
57408
|
def name; end
|
57253
57409
|
|
57254
57410
|
private
|
57255
57411
|
|
57256
57412
|
# @api private
|
57257
57413
|
#
|
57258
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57414
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#176
|
57259
57415
|
def filename; end
|
57260
57416
|
|
57261
57417
|
# @api private
|
57262
57418
|
#
|
57263
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57419
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#180
|
57264
57420
|
def pattern; end
|
57265
57421
|
end
|
57266
57422
|
|
57267
57423
|
# @api private
|
57268
57424
|
#
|
57269
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57425
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#167
|
57270
57426
|
RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String)
|
57271
57427
|
|
57272
57428
|
# @api private
|
57273
57429
|
#
|
57274
|
-
# source://rubocop//lib/rubocop/target_ruby.rb#
|
57430
|
+
# source://rubocop//lib/rubocop/target_ruby.rb#168
|
57275
57431
|
RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
|
57276
57432
|
|
57277
57433
|
# source://rubocop//lib/rubocop/ast_aliases.rb#7
|
@@ -57297,12 +57453,12 @@ module RuboCop::Version
|
|
57297
57453
|
class << self
|
57298
57454
|
# @api private
|
57299
57455
|
#
|
57300
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57456
|
+
# source://rubocop//lib/rubocop/version.rb#108
|
57301
57457
|
def document_version; end
|
57302
57458
|
|
57303
57459
|
# @api private
|
57304
57460
|
#
|
57305
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57461
|
+
# source://rubocop//lib/rubocop/version.rb#58
|
57306
57462
|
def extension_versions(env); end
|
57307
57463
|
|
57308
57464
|
# Returns feature version in one of two ways:
|
@@ -57312,12 +57468,17 @@ module RuboCop::Version
|
|
57312
57468
|
#
|
57313
57469
|
# @api private
|
57314
57470
|
#
|
57315
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57471
|
+
# source://rubocop//lib/rubocop/version.rb#92
|
57316
57472
|
def feature_version(feature); end
|
57317
57473
|
|
57318
57474
|
# @api private
|
57319
57475
|
#
|
57320
|
-
# source://rubocop//lib/rubocop/version.rb#
|
57476
|
+
# source://rubocop//lib/rubocop/version.rb#43
|
57477
|
+
def parser_version; end
|
57478
|
+
|
57479
|
+
# @api private
|
57480
|
+
#
|
57481
|
+
# source://rubocop//lib/rubocop/version.rb#113
|
57321
57482
|
def server_mode; end
|
57322
57483
|
|
57323
57484
|
# @api private
|