sorbet-schema 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +27 -27
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/typed/coercion/struct_coercer.rb +35 -1
- data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +22 -25
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +19 -15
- data/sorbet/rbi/gems/{minitest-reporters@1.6.1.rbi → minitest-reporters@1.7.1.rbi} +47 -40
- data/sorbet/rbi/gems/{minitest@5.23.1.rbi → minitest@5.24.0.rbi} +159 -151
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@0.30.0.rbi} +5670 -4445
- data/sorbet/rbi/gems/{rexml@3.2.8.rbi → rexml@3.3.0.rbi} +69 -62
- data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.64.1.rbi} +660 -344
- data/sorbet/rbi/gems/{standard@1.36.0.rbi → standard@1.39.0.rbi} +159 -90
- data/sorbet/rbi/gems/{tapioca@0.14.2.rbi → tapioca@0.14.4.rbi} +89 -76
- data/sorbet/rbi/gems/{zeitwerk@2.6.15.rbi → zeitwerk@2.6.16.rbi} +115 -78
- metadata +17 -17
- /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.7.rbi → reline@0.5.9.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-performance@1.21.0.rbi → rubocop-performance@1.21.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +0 -0
@@ -769,7 +769,7 @@ class RuboCop::CommentConfig
|
|
769
769
|
|
770
770
|
# @return [CommentConfig] a new instance of CommentConfig
|
771
771
|
#
|
772
|
-
# source://standard/1.
|
772
|
+
# source://standard/1.39.0/lib/standard/rubocop/ext.rb#20
|
773
773
|
def initialize(processed_source); end
|
774
774
|
|
775
775
|
# @return [Boolean]
|
@@ -1182,12 +1182,12 @@ class RuboCop::Config
|
|
1182
1182
|
|
1183
1183
|
private
|
1184
1184
|
|
1185
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1185
|
+
# source://rubocop//lib/rubocop/config.rb#346
|
1186
1186
|
def department_of(qualified_cop_name); end
|
1187
1187
|
|
1188
1188
|
# @return [Boolean]
|
1189
1189
|
#
|
1190
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1190
|
+
# source://rubocop//lib/rubocop/config.rb#334
|
1191
1191
|
def enable_cop?(qualified_cop_name, cop_options); end
|
1192
1192
|
|
1193
1193
|
# @param gem_version [Gem::Version] an object like `Gem::Version.new("7.1.2.3")`
|
@@ -1196,7 +1196,7 @@ class RuboCop::Config
|
|
1196
1196
|
# source://rubocop//lib/rubocop/config.rb#321
|
1197
1197
|
def gem_version_to_major_minor_float(gem_version); end
|
1198
1198
|
|
1199
|
-
# source://rubocop//lib/rubocop/config.rb#
|
1199
|
+
# source://rubocop//lib/rubocop/config.rb#327
|
1200
1200
|
def read_gem_versions_from_target_lockfile; end
|
1201
1201
|
|
1202
1202
|
# @return [Float, nil] The Rails version as a `major.minor` Float.
|
@@ -2942,18 +2942,18 @@ class RuboCop::Cop::Base
|
|
2942
2942
|
|
2943
2943
|
# @return [Base] a new instance of Base
|
2944
2944
|
#
|
2945
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2945
|
+
# source://rubocop//lib/rubocop/cop/base.rb#156
|
2946
2946
|
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
|
2947
2947
|
|
2948
2948
|
# @return [Boolean]
|
2949
2949
|
#
|
2950
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2950
|
+
# source://rubocop//lib/rubocop/cop/base.rb#272
|
2951
2951
|
def active_support_extensions_enabled?; end
|
2952
2952
|
|
2953
2953
|
# Adds an offense that has no particular location.
|
2954
2954
|
# No correction can be applied to global offenses
|
2955
2955
|
#
|
2956
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2956
|
+
# source://rubocop//lib/rubocop/cop/base.rb#189
|
2957
2957
|
def add_global_offense(message = T.unsafe(nil), severity: T.unsafe(nil)); end
|
2958
2958
|
|
2959
2959
|
# Adds an offense on the specified range (or node with an expression)
|
@@ -2961,25 +2961,25 @@ class RuboCop::Cop::Base
|
|
2961
2961
|
# to provide the cop the opportunity to autocorrect the offense.
|
2962
2962
|
# If message is not specified, the method `message` will be called.
|
2963
2963
|
#
|
2964
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2964
|
+
# source://rubocop//lib/rubocop/cop/base.rb#201
|
2965
2965
|
def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end
|
2966
2966
|
|
2967
2967
|
# @api private
|
2968
2968
|
# @return [Boolean]
|
2969
2969
|
#
|
2970
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2970
|
+
# source://rubocop//lib/rubocop/cop/base.rb#343
|
2971
2971
|
def always_autocorrect?; end
|
2972
2972
|
|
2973
2973
|
# Called before any investigation
|
2974
2974
|
#
|
2975
2975
|
# @api private
|
2976
2976
|
#
|
2977
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2977
|
+
# source://rubocop//lib/rubocop/cop/base.rb#329
|
2978
2978
|
def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end
|
2979
2979
|
|
2980
2980
|
# @api private
|
2981
2981
|
#
|
2982
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2982
|
+
# source://rubocop//lib/rubocop/cop/base.rb#314
|
2983
2983
|
def callbacks_needed; end
|
2984
2984
|
|
2985
2985
|
# Returns the value of attribute config.
|
@@ -2987,29 +2987,29 @@ class RuboCop::Cop::Base
|
|
2987
2987
|
# source://rubocop//lib/rubocop/cop/base.rb#43
|
2988
2988
|
def config; end
|
2989
2989
|
|
2990
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2990
|
+
# source://rubocop//lib/rubocop/cop/base.rb#252
|
2991
2991
|
def config_to_allow_offenses; end
|
2992
2992
|
|
2993
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2993
|
+
# source://rubocop//lib/rubocop/cop/base.rb#256
|
2994
2994
|
def config_to_allow_offenses=(hash); end
|
2995
2995
|
|
2996
2996
|
# @api private
|
2997
2997
|
# @return [Boolean]
|
2998
2998
|
#
|
2999
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
2999
|
+
# source://rubocop//lib/rubocop/cop/base.rb#349
|
3000
3000
|
def contextual_autocorrect?; end
|
3001
3001
|
|
3002
3002
|
# Configuration Helpers
|
3003
3003
|
#
|
3004
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3004
|
+
# source://rubocop//lib/rubocop/cop/base.rb#246
|
3005
3005
|
def cop_config; end
|
3006
3006
|
|
3007
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3007
|
+
# source://rubocop//lib/rubocop/cop/base.rb#238
|
3008
3008
|
def cop_name; end
|
3009
3009
|
|
3010
3010
|
# @return [Boolean]
|
3011
3011
|
#
|
3012
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3012
|
+
# source://rubocop//lib/rubocop/cop/base.rb#285
|
3013
3013
|
def excluded_file?(file); end
|
3014
3014
|
|
3015
3015
|
# This method should be overridden when a cop's behavior depends
|
@@ -3028,51 +3028,51 @@ class RuboCop::Cop::Base
|
|
3028
3028
|
# ResultCache system when those external dependencies change,
|
3029
3029
|
# ie when the ResultCache should be invalidated.
|
3030
3030
|
#
|
3031
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3031
|
+
# source://rubocop//lib/rubocop/cop/base.rb#234
|
3032
3032
|
def external_dependency_checksum; end
|
3033
3033
|
|
3034
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3034
|
+
# source://rubocop//lib/rubocop/cop/base.rb#353
|
3035
3035
|
def inspect; end
|
3036
3036
|
|
3037
3037
|
# Gets called if no message is specified when calling `add_offense` or
|
3038
3038
|
# `add_global_offense`
|
3039
3039
|
# Cops are discouraged to override this; instead pass your message directly
|
3040
3040
|
#
|
3041
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3041
|
+
# source://rubocop//lib/rubocop/cop/base.rb#183
|
3042
3042
|
def message(_range = T.unsafe(nil)); end
|
3043
3043
|
|
3044
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3044
|
+
# source://rubocop//lib/rubocop/cop/base.rb#238
|
3045
3045
|
def name; end
|
3046
3046
|
|
3047
3047
|
# @deprecated Make potential errors with previous API more obvious
|
3048
3048
|
#
|
3049
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3049
|
+
# source://rubocop//lib/rubocop/cop/base.rb#305
|
3050
3050
|
def offenses; end
|
3051
3051
|
|
3052
3052
|
# Called after all on_... have been called
|
3053
3053
|
# When refining this method, always call `super`
|
3054
3054
|
#
|
3055
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3055
|
+
# source://rubocop//lib/rubocop/cop/base.rb#170
|
3056
3056
|
def on_investigation_end; end
|
3057
3057
|
|
3058
3058
|
# Called before all on_... have been called
|
3059
3059
|
# When refining this method, always call `super`
|
3060
3060
|
#
|
3061
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3061
|
+
# source://rubocop//lib/rubocop/cop/base.rb#164
|
3062
3062
|
def on_new_investigation; end
|
3063
3063
|
|
3064
3064
|
# Called instead of all on_... callbacks for unrecognized files / syntax errors
|
3065
3065
|
# When refining this method, always call `super`
|
3066
3066
|
#
|
3067
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3067
|
+
# source://rubocop//lib/rubocop/cop/base.rb#176
|
3068
3068
|
def on_other_file; end
|
3069
3069
|
|
3070
3070
|
# There should be very limited reasons for a Cop to do it's own parsing
|
3071
3071
|
#
|
3072
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3072
|
+
# source://rubocop//lib/rubocop/cop/base.rb#290
|
3073
3073
|
def parse(source, path = T.unsafe(nil)); end
|
3074
3074
|
|
3075
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3075
|
+
# source://rubocop//lib/rubocop/cop/base.rb#264
|
3076
3076
|
def parser_engine; end
|
3077
3077
|
|
3078
3078
|
# Returns the value of attribute processed_source.
|
@@ -3084,104 +3084,106 @@ class RuboCop::Cop::Base
|
|
3084
3084
|
#
|
3085
3085
|
# @api private
|
3086
3086
|
#
|
3087
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3087
|
+
# source://rubocop//lib/rubocop/cop/base.rb#296
|
3088
3088
|
def ready; end
|
3089
3089
|
|
3090
3090
|
# @return [Boolean]
|
3091
3091
|
#
|
3092
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3092
|
+
# source://rubocop//lib/rubocop/cop/base.rb#276
|
3093
3093
|
def relevant_file?(file); end
|
3094
3094
|
|
3095
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3095
|
+
# source://rubocop//lib/rubocop/cop/base.rb#268
|
3096
3096
|
def target_rails_version; end
|
3097
3097
|
|
3098
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3098
|
+
# source://rubocop//lib/rubocop/cop/base.rb#260
|
3099
3099
|
def target_ruby_version; end
|
3100
3100
|
|
3101
3101
|
private
|
3102
3102
|
|
3103
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3103
|
+
# source://rubocop//lib/rubocop/cop/base.rb#471
|
3104
3104
|
def annotate(message); end
|
3105
3105
|
|
3106
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3106
|
+
# source://rubocop//lib/rubocop/cop/base.rb#365
|
3107
3107
|
def apply_correction(corrector); end
|
3108
3108
|
|
3109
3109
|
# @return [Symbol] offense status
|
3110
3110
|
#
|
3111
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3111
|
+
# source://rubocop//lib/rubocop/cop/base.rb#435
|
3112
3112
|
def attempt_correction(range, corrector); end
|
3113
3113
|
|
3114
3114
|
# Reserved for Cop::Cop
|
3115
3115
|
#
|
3116
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3116
|
+
# source://rubocop//lib/rubocop/cop/base.rb#361
|
3117
3117
|
def callback_argument(range); end
|
3118
3118
|
|
3119
3119
|
# Called to complete an investigation
|
3120
3120
|
#
|
3121
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3121
|
+
# source://rubocop//lib/rubocop/cop/base.rb#394
|
3122
3122
|
def complete_investigation; end
|
3123
3123
|
|
3124
3124
|
# @return [Symbol, Corrector] offense status
|
3125
3125
|
#
|
3126
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3126
|
+
# source://rubocop//lib/rubocop/cop/base.rb#409
|
3127
3127
|
def correct(range); end
|
3128
3128
|
|
3129
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3129
|
+
# source://rubocop//lib/rubocop/cop/base.rb#379
|
3130
3130
|
def current_corrector; end
|
3131
3131
|
|
3132
3132
|
# Reserved for Commissioner:
|
3133
3133
|
#
|
3134
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3134
|
+
# source://rubocop//lib/rubocop/cop/base.rb#371
|
3135
3135
|
def current_offense_locations; end
|
3136
3136
|
|
3137
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3137
|
+
# source://rubocop//lib/rubocop/cop/base.rb#383
|
3138
3138
|
def current_offenses; end
|
3139
3139
|
|
3140
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3140
|
+
# source://rubocop//lib/rubocop/cop/base.rb#375
|
3141
3141
|
def currently_disabled_lines; end
|
3142
3142
|
|
3143
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3143
|
+
# source://rubocop//lib/rubocop/cop/base.rb#499
|
3144
3144
|
def custom_severity; end
|
3145
3145
|
|
3146
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3146
|
+
# source://rubocop//lib/rubocop/cop/base.rb#495
|
3147
3147
|
def default_severity; end
|
3148
3148
|
|
3149
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3149
|
+
# source://rubocop//lib/rubocop/cop/base.rb#449
|
3150
3150
|
def disable_uncorrectable(range); end
|
3151
3151
|
|
3152
3152
|
# @return [Boolean]
|
3153
3153
|
#
|
3154
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3154
|
+
# source://rubocop//lib/rubocop/cop/base.rb#485
|
3155
3155
|
def enabled_line?(line_number); end
|
3156
3156
|
|
3157
3157
|
# @return [Boolean]
|
3158
3158
|
#
|
3159
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3159
|
+
# source://rubocop//lib/rubocop/cop/base.rb#477
|
3160
3160
|
def file_name_matches_any?(file, parameter, default_result); end
|
3161
3161
|
|
3162
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3162
|
+
# source://rubocop//lib/rubocop/cop/base.rb#467
|
3163
3163
|
def find_message(range, message); end
|
3164
3164
|
|
3165
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3165
|
+
# source://rubocop//lib/rubocop/cop/base.rb#491
|
3166
3166
|
def find_severity(_range, severity); end
|
3167
3167
|
|
3168
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3168
|
+
# source://rubocop//lib/rubocop/cop/base.rb#512
|
3169
3169
|
def range_for_original(range); end
|
3170
3170
|
|
3171
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3171
|
+
# source://rubocop//lib/rubocop/cop/base.rb#456
|
3172
3172
|
def range_from_node_or_range(node_or_range); end
|
3173
3173
|
|
3174
|
-
#
|
3174
|
+
# Actually private methods
|
3175
|
+
#
|
3176
|
+
# source://rubocop//lib/rubocop/cop/base.rb#404
|
3175
3177
|
def reset_investigation; end
|
3176
3178
|
|
3177
3179
|
# @return [Boolean]
|
3178
3180
|
#
|
3179
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3181
|
+
# source://rubocop//lib/rubocop/cop/base.rb#520
|
3180
3182
|
def target_satisfies_all_gem_version_requirements?; end
|
3181
3183
|
|
3182
3184
|
# @return [Symbol] offense status
|
3183
3185
|
#
|
3184
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3186
|
+
# source://rubocop//lib/rubocop/cop/base.rb#424
|
3185
3187
|
def use_corrector(range, corrector); end
|
3186
3188
|
|
3187
3189
|
class << self
|
@@ -3196,51 +3198,54 @@ class RuboCop::Cop::Base
|
|
3196
3198
|
|
3197
3199
|
# Naming
|
3198
3200
|
#
|
3199
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3201
|
+
# source://rubocop//lib/rubocop/cop/base.rb#93
|
3200
3202
|
def badge; end
|
3201
3203
|
|
3202
3204
|
# @api private
|
3203
3205
|
#
|
3204
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3206
|
+
# source://rubocop//lib/rubocop/cop/base.rb#319
|
3205
3207
|
def callbacks_needed; end
|
3206
3208
|
|
3207
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3209
|
+
# source://rubocop//lib/rubocop/cop/base.rb#97
|
3208
3210
|
def cop_name; end
|
3209
3211
|
|
3210
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3212
|
+
# source://rubocop//lib/rubocop/cop/base.rb#101
|
3211
3213
|
def department; end
|
3212
3214
|
|
3213
|
-
#
|
3215
|
+
# Returns an url to view this cops documentation online.
|
3216
|
+
# Requires 'DocumentationBaseURL' to be set for your department.
|
3217
|
+
# Will follow the convention of RuboCops own documentation structure,
|
3218
|
+
# overwrite this method to accommodate your custom layout.
|
3214
3219
|
#
|
3215
3220
|
# @api public
|
3216
3221
|
# @return [String, nil]
|
3217
3222
|
#
|
3218
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3219
|
-
def documentation_url; end
|
3223
|
+
# source://rubocop//lib/rubocop/cop/base.rb#70
|
3224
|
+
def documentation_url(config = T.unsafe(nil)); end
|
3220
3225
|
|
3221
3226
|
# Call for abstract Cop classes
|
3222
3227
|
#
|
3223
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3228
|
+
# source://rubocop//lib/rubocop/cop/base.rb#81
|
3224
3229
|
def exclude_from_registry; end
|
3225
3230
|
|
3226
3231
|
# Returns the value of attribute gem_requirements.
|
3227
3232
|
#
|
3228
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3233
|
+
# source://rubocop//lib/rubocop/cop/base.rb#138
|
3229
3234
|
def gem_requirements; end
|
3230
3235
|
|
3231
3236
|
# @private
|
3232
3237
|
#
|
3233
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3238
|
+
# source://rubocop//lib/rubocop/cop/base.rb#74
|
3234
3239
|
def inherited(subclass); end
|
3235
3240
|
|
3236
3241
|
# Override and return the Force class(es) you need to join
|
3237
3242
|
#
|
3238
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3243
|
+
# source://rubocop//lib/rubocop/cop/base.rb#118
|
3239
3244
|
def joining_forces; end
|
3240
3245
|
|
3241
3246
|
# @return [Boolean]
|
3242
3247
|
#
|
3243
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3248
|
+
# source://rubocop//lib/rubocop/cop/base.rb#105
|
3244
3249
|
def lint?; end
|
3245
3250
|
|
3246
3251
|
# Returns true if the cop name or the cop namespace matches any of the
|
@@ -3248,7 +3253,7 @@ class RuboCop::Cop::Base
|
|
3248
3253
|
#
|
3249
3254
|
# @return [Boolean]
|
3250
3255
|
#
|
3251
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3256
|
+
# source://rubocop//lib/rubocop/cop/base.rb#111
|
3252
3257
|
def match?(given_names); end
|
3253
3258
|
|
3254
3259
|
# Register a version requirement for the given gem name.
|
@@ -3263,7 +3268,7 @@ class RuboCop::Cop::Base
|
|
3263
3268
|
#
|
3264
3269
|
# https://guides.rubygems.org/patterns/#declaring-dependencies
|
3265
3270
|
#
|
3266
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3271
|
+
# source://rubocop//lib/rubocop/cop/base.rb#151
|
3267
3272
|
def requires_gem(gem_name, *version_requirements); end
|
3268
3273
|
|
3269
3274
|
# Returns if class supports autocorrect.
|
@@ -3271,7 +3276,7 @@ class RuboCop::Cop::Base
|
|
3271
3276
|
#
|
3272
3277
|
# @return [Boolean]
|
3273
3278
|
#
|
3274
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3279
|
+
# source://rubocop//lib/rubocop/cop/base.rb#87
|
3275
3280
|
def support_autocorrect?; end
|
3276
3281
|
|
3277
3282
|
# Override if your cop should be called repeatedly for multiple investigations
|
@@ -3284,22 +3289,17 @@ class RuboCop::Cop::Base
|
|
3284
3289
|
#
|
3285
3290
|
# @return [Boolean]
|
3286
3291
|
#
|
3287
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3292
|
+
# source://rubocop//lib/rubocop/cop/base.rb#129
|
3288
3293
|
def support_multiple_source?; end
|
3289
3294
|
|
3290
3295
|
private
|
3291
3296
|
|
3292
|
-
#
|
3293
|
-
#
|
3294
|
-
# source://rubocop//lib/rubocop/cop/base.rb#402
|
3295
|
-
def builtin?; end
|
3296
|
-
|
3297
|
-
# source://rubocop//lib/rubocop/cop/base.rb#384
|
3297
|
+
# source://rubocop//lib/rubocop/cop/base.rb#387
|
3298
3298
|
def restrict_on_send; end
|
3299
3299
|
end
|
3300
3300
|
end
|
3301
3301
|
|
3302
|
-
# source://rubocop//lib/rubocop/cop/base.rb#
|
3302
|
+
# source://rubocop//lib/rubocop/cop/base.rb#391
|
3303
3303
|
RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
|
3304
3304
|
|
3305
3305
|
# Reports of an investigation.
|
@@ -3838,35 +3838,35 @@ class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base
|
|
3838
3838
|
|
3839
3839
|
# @return [Boolean]
|
3840
3840
|
#
|
3841
|
-
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#
|
3841
|
+
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#111
|
3842
3842
|
def forbidden_offense?(node); end
|
3843
3843
|
|
3844
3844
|
# @return [Boolean]
|
3845
3845
|
#
|
3846
|
-
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#
|
3846
|
+
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#117
|
3847
3847
|
def forbidden_style?; end
|
3848
3848
|
|
3849
3849
|
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#93
|
3850
|
-
def message(
|
3850
|
+
def message(_range); end
|
3851
3851
|
|
3852
3852
|
# @return [Boolean]
|
3853
3853
|
#
|
3854
|
-
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#
|
3854
|
+
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#101
|
3855
3855
|
def offense?(node); end
|
3856
3856
|
|
3857
3857
|
# @return [Boolean]
|
3858
3858
|
#
|
3859
|
-
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#
|
3859
|
+
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#105
|
3860
3860
|
def required_offense?(node); end
|
3861
3861
|
|
3862
3862
|
# @return [Boolean]
|
3863
3863
|
#
|
3864
|
-
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#
|
3864
|
+
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#121
|
3865
3865
|
def required_style?; end
|
3866
3866
|
|
3867
3867
|
# @return [Boolean]
|
3868
3868
|
#
|
3869
|
-
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#
|
3869
|
+
# source://rubocop//lib/rubocop/cop/bundler/gem_version.rb#125
|
3870
3870
|
def version_specification?(expression); end
|
3871
3871
|
end
|
3872
3872
|
|
@@ -5096,7 +5096,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter
|
|
5096
5096
|
|
5097
5097
|
# Legacy
|
5098
5098
|
#
|
5099
|
-
# source://parser/3.3.
|
5099
|
+
# source://parser/3.3.3.0/lib/parser/source/tree_rewriter.rb#252
|
5100
5100
|
def rewrite; end
|
5101
5101
|
|
5102
5102
|
# Swaps sources at the given ranges.
|
@@ -5167,7 +5167,12 @@ module RuboCop::Cop::Documentation
|
|
5167
5167
|
|
5168
5168
|
# @api private
|
5169
5169
|
#
|
5170
|
-
# source://rubocop//lib/rubocop/cop/documentation.rb#
|
5170
|
+
# source://rubocop//lib/rubocop/cop/documentation.rb#40
|
5171
|
+
def builtin?(cop_class); end
|
5172
|
+
|
5173
|
+
# @api private
|
5174
|
+
#
|
5175
|
+
# source://rubocop//lib/rubocop/cop/documentation.rb#35
|
5171
5176
|
def default_base_url; end
|
5172
5177
|
|
5173
5178
|
# @api private
|
@@ -5187,8 +5192,14 @@ module RuboCop::Cop::Documentation
|
|
5187
5192
|
def base_url_for(cop_class, config); end
|
5188
5193
|
|
5189
5194
|
# @api private
|
5195
|
+
# @return [Boolean]
|
5190
5196
|
#
|
5191
|
-
# source://rubocop//lib/rubocop/cop/documentation.rb#
|
5197
|
+
# source://rubocop//lib/rubocop/cop/documentation.rb#40
|
5198
|
+
def builtin?(cop_class); end
|
5199
|
+
|
5200
|
+
# @api private
|
5201
|
+
#
|
5202
|
+
# source://rubocop//lib/rubocop/cop/documentation.rb#35
|
5192
5203
|
def default_base_url; end
|
5193
5204
|
|
5194
5205
|
# @api private
|
@@ -5528,37 +5539,53 @@ RuboCop::Cop::ForToEachCorrector::CORRECTION = T.let(T.unsafe(nil), String)
|
|
5528
5539
|
class RuboCop::Cop::Force
|
5529
5540
|
# @return [Force] a new instance of Force
|
5530
5541
|
#
|
5531
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5542
|
+
# source://rubocop//lib/rubocop/cop/force.rb#32
|
5532
5543
|
def initialize(cops); end
|
5533
5544
|
|
5534
5545
|
# Returns the value of attribute cops.
|
5535
5546
|
#
|
5536
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5547
|
+
# source://rubocop//lib/rubocop/cop/force.rb#17
|
5537
5548
|
def cops; end
|
5538
5549
|
|
5539
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5550
|
+
# source://rubocop//lib/rubocop/cop/force.rb#50
|
5540
5551
|
def investigate(_processed_source); end
|
5541
5552
|
|
5542
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5553
|
+
# source://rubocop//lib/rubocop/cop/force.rb#36
|
5543
5554
|
def name; end
|
5544
5555
|
|
5545
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5556
|
+
# source://rubocop//lib/rubocop/cop/force.rb#40
|
5546
5557
|
def run_hook(method_name, *args); end
|
5547
5558
|
|
5548
5559
|
class << self
|
5549
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5560
|
+
# source://rubocop//lib/rubocop/cop/force.rb#19
|
5550
5561
|
def all; end
|
5551
5562
|
|
5552
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5563
|
+
# source://rubocop//lib/rubocop/cop/force.rb#28
|
5553
5564
|
def force_name; end
|
5554
5565
|
|
5555
5566
|
# @private
|
5556
5567
|
#
|
5557
|
-
# source://rubocop//lib/rubocop/cop/force.rb#
|
5568
|
+
# source://rubocop//lib/rubocop/cop/force.rb#23
|
5558
5569
|
def inherited(subclass); end
|
5559
5570
|
end
|
5560
5571
|
end
|
5561
5572
|
|
5573
|
+
# @api private
|
5574
|
+
#
|
5575
|
+
# source://rubocop//lib/rubocop/cop/force.rb#8
|
5576
|
+
class RuboCop::Cop::Force::HookError < ::StandardError
|
5577
|
+
# @api private
|
5578
|
+
# @return [HookError] a new instance of HookError
|
5579
|
+
#
|
5580
|
+
# source://rubocop//lib/rubocop/cop/force.rb#11
|
5581
|
+
def initialize(joining_cop); end
|
5582
|
+
|
5583
|
+
# @api private
|
5584
|
+
#
|
5585
|
+
# source://rubocop//lib/rubocop/cop/force.rb#9
|
5586
|
+
def joining_cop; end
|
5587
|
+
end
|
5588
|
+
|
5562
5589
|
# Common functionality for dealing with frozen string literals.
|
5563
5590
|
#
|
5564
5591
|
# source://rubocop//lib/rubocop/cop/mixin/frozen_string_literal.rb#6
|
@@ -5689,7 +5716,7 @@ class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base
|
|
5689
5716
|
|
5690
5717
|
# @return [Boolean]
|
5691
5718
|
#
|
5692
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5719
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#118
|
5693
5720
|
def add_dependency_method?(method_name); end
|
5694
5721
|
|
5695
5722
|
# @return [Boolean]
|
@@ -5702,40 +5729,40 @@ class RuboCop::Cop::Gemspec::DependencyVersion < ::RuboCop::Cop::Base
|
|
5702
5729
|
|
5703
5730
|
# @return [Boolean]
|
5704
5731
|
#
|
5705
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5732
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#132
|
5706
5733
|
def forbidden_offense?(node); end
|
5707
5734
|
|
5708
5735
|
# @return [Boolean]
|
5709
5736
|
#
|
5710
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5737
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#138
|
5711
5738
|
def forbidden_style?; end
|
5712
5739
|
|
5713
5740
|
# @return [Boolean]
|
5714
5741
|
#
|
5715
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5742
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#112
|
5716
5743
|
def match_block_variable_name?(receiver_name); end
|
5717
5744
|
|
5718
5745
|
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#104
|
5719
|
-
def message(
|
5746
|
+
def message(_range); end
|
5720
5747
|
|
5721
5748
|
# @return [Boolean]
|
5722
5749
|
#
|
5723
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5750
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#122
|
5724
5751
|
def offense?(node); end
|
5725
5752
|
|
5726
5753
|
# @return [Boolean]
|
5727
5754
|
#
|
5728
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5755
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#126
|
5729
5756
|
def required_offense?(node); end
|
5730
5757
|
|
5731
5758
|
# @return [Boolean]
|
5732
5759
|
#
|
5733
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5760
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#142
|
5734
5761
|
def required_style?; end
|
5735
5762
|
|
5736
5763
|
# @return [Boolean]
|
5737
5764
|
#
|
5738
|
-
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#
|
5765
|
+
# source://rubocop//lib/rubocop/cop/gemspec/dependency_version.rb#146
|
5739
5766
|
def version_specification?(expression); end
|
5740
5767
|
end
|
5741
5768
|
|
@@ -6621,40 +6648,45 @@ module RuboCop::Cop::HashShorthandSyntax
|
|
6621
6648
|
|
6622
6649
|
# @return [Boolean]
|
6623
6650
|
#
|
6624
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6651
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#126
|
6625
6652
|
def brackets?(method_dispatch_node); end
|
6626
6653
|
|
6627
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6654
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#156
|
6628
6655
|
def breakdown_value_types_of_hash(hash_node); end
|
6629
6656
|
|
6630
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6657
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#103
|
6631
6658
|
def def_node_that_require_parentheses(node); end
|
6632
6659
|
|
6633
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6660
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#185
|
6634
6661
|
def each_omittable_value_pair(hash_value_type_breakdown, &block); end
|
6635
6662
|
|
6636
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6663
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#181
|
6637
6664
|
def each_omitted_value_pair(hash_value_type_breakdown, &block); end
|
6638
6665
|
|
6639
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6666
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#81
|
6640
6667
|
def enforced_shorthand_syntax; end
|
6641
6668
|
|
6642
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6669
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#118
|
6643
6670
|
def find_ancestor_method_dispatch_node(node); end
|
6644
6671
|
|
6645
6672
|
# @return [Boolean]
|
6646
6673
|
#
|
6647
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6674
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#168
|
6648
6675
|
def hash_with_mixed_shorthand_syntax?(hash_value_type_breakdown); end
|
6649
6676
|
|
6650
6677
|
# @return [Boolean]
|
6651
6678
|
#
|
6652
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6679
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#172
|
6653
6680
|
def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown); end
|
6654
6681
|
|
6655
6682
|
# @return [Boolean]
|
6656
6683
|
#
|
6657
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6684
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#176
|
6685
|
+
def ignore_explicit_omissible_hash_shorthand_syntax?(hash_value_type_breakdown); end
|
6686
|
+
|
6687
|
+
# @return [Boolean]
|
6688
|
+
#
|
6689
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#75
|
6658
6690
|
def ignore_hash_shorthand_syntax?(pair_node); end
|
6659
6691
|
|
6660
6692
|
# @return [Boolean]
|
@@ -6664,18 +6696,18 @@ module RuboCop::Cop::HashShorthandSyntax
|
|
6664
6696
|
|
6665
6697
|
# @return [Boolean]
|
6666
6698
|
#
|
6667
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6699
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#141
|
6668
6700
|
def last_expression?(node); end
|
6669
6701
|
|
6670
6702
|
# @return [Boolean]
|
6671
6703
|
#
|
6672
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6704
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#149
|
6673
6705
|
def method_dispatch_as_argument?(method_dispatch_node); end
|
6674
6706
|
|
6675
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6707
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#189
|
6676
6708
|
def mixed_shorthand_syntax_check(hash_value_type_breakdown); end
|
6677
6709
|
|
6678
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6710
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#205
|
6679
6711
|
def no_mixed_shorthand_syntax_check(hash_value_type_breakdown); end
|
6680
6712
|
|
6681
6713
|
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#49
|
@@ -6683,22 +6715,22 @@ module RuboCop::Cop::HashShorthandSyntax
|
|
6683
6715
|
|
6684
6716
|
# @return [Boolean]
|
6685
6717
|
#
|
6686
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6718
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#85
|
6687
6719
|
def require_hash_value?(hash_key_source, node); end
|
6688
6720
|
|
6689
6721
|
# @return [Boolean]
|
6690
6722
|
#
|
6691
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6723
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#94
|
6692
6724
|
def require_hash_value_for_around_hash_literal?(node); end
|
6693
6725
|
|
6694
6726
|
# @return [Boolean]
|
6695
6727
|
#
|
6696
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6728
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#130
|
6697
6729
|
def use_element_of_hash_literal_as_receiver?(ancestor, parent); end
|
6698
6730
|
|
6699
6731
|
# @return [Boolean]
|
6700
6732
|
#
|
6701
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6733
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#135
|
6702
6734
|
def use_modifier_form_without_parenthesized_method_call?(ancestor); end
|
6703
6735
|
end
|
6704
6736
|
|
@@ -6711,12 +6743,12 @@ RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_MSG_PREFIX = T.let(T.unsafe(nil),
|
|
6711
6743
|
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#11
|
6712
6744
|
RuboCop::Cop::HashShorthandSyntax::DO_NOT_MIX_OMIT_VALUE_MSG = T.let(T.unsafe(nil), String)
|
6713
6745
|
|
6714
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6746
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#216
|
6715
6747
|
class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
|
6716
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6748
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#225
|
6717
6749
|
def first_argument; end
|
6718
6750
|
|
6719
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6751
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#229
|
6720
6752
|
def last_argument; end
|
6721
6753
|
|
6722
6754
|
# Returns the value of attribute node
|
@@ -6730,7 +6762,7 @@ class RuboCop::Cop::HashShorthandSyntax::DefNode < ::Struct
|
|
6730
6762
|
# @return [Object] the newly set value
|
6731
6763
|
def node=(_); end
|
6732
6764
|
|
6733
|
-
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#
|
6765
|
+
# source://rubocop//lib/rubocop/cop/mixin/hash_shorthand_syntax.rb#217
|
6734
6766
|
def selector; end
|
6735
6767
|
|
6736
6768
|
class << self
|
@@ -8775,35 +8807,35 @@ class RuboCop::Cop::Layout::EmptyComment < ::RuboCop::Cop::Base
|
|
8775
8807
|
|
8776
8808
|
# @return [Boolean]
|
8777
8809
|
#
|
8778
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#
|
8810
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#133
|
8779
8811
|
def allow_border_comment?; end
|
8780
8812
|
|
8781
8813
|
# @return [Boolean]
|
8782
8814
|
#
|
8783
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#
|
8815
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#137
|
8784
8816
|
def allow_margin_comment?; end
|
8785
8817
|
|
8786
8818
|
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#97
|
8787
8819
|
def autocorrect(corrector, node); end
|
8788
8820
|
|
8789
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#
|
8821
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#129
|
8790
8822
|
def comment_text(comment); end
|
8791
8823
|
|
8792
8824
|
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#108
|
8793
8825
|
def concat_consecutive_comments(comments); end
|
8794
8826
|
|
8795
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#
|
8827
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#141
|
8796
8828
|
def current_token(comment); end
|
8797
8829
|
|
8798
8830
|
# @return [Boolean]
|
8799
8831
|
#
|
8800
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#
|
8832
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#119
|
8801
8833
|
def empty_comment_only?(comment_text); end
|
8802
8834
|
|
8803
8835
|
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#85
|
8804
8836
|
def investigate(comments); end
|
8805
8837
|
|
8806
|
-
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#
|
8838
|
+
# source://rubocop//lib/rubocop/cop/layout/empty_comment.rb#145
|
8807
8839
|
def previous_token(node); end
|
8808
8840
|
end
|
8809
8841
|
|
@@ -16254,23 +16286,20 @@ class RuboCop::Cop::Layout::SpaceInsideStringInterpolation < ::RuboCop::Cop::Bas
|
|
16254
16286
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
16255
16287
|
extend ::RuboCop::Cop::AutoCorrector
|
16256
16288
|
|
16257
|
-
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#
|
16289
|
+
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#30
|
16258
16290
|
def on_interpolation(begin_node); end
|
16259
16291
|
|
16260
16292
|
private
|
16261
16293
|
|
16262
|
-
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#
|
16294
|
+
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#46
|
16263
16295
|
def autocorrect(corrector, begin_node); end
|
16264
16296
|
|
16265
|
-
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#
|
16297
|
+
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#56
|
16266
16298
|
def delimiters(begin_node); end
|
16267
16299
|
end
|
16268
16300
|
|
16269
16301
|
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#28
|
16270
|
-
RuboCop::Cop::Layout::SpaceInsideStringInterpolation::
|
16271
|
-
|
16272
|
-
# source://rubocop//lib/rubocop/cop/layout/space_inside_string_interpolation.rb#29
|
16273
|
-
RuboCop::Cop::Layout::SpaceInsideStringInterpolation::SPACE_MSG = T.let(T.unsafe(nil), String)
|
16302
|
+
RuboCop::Cop::Layout::SpaceInsideStringInterpolation::MSG = T.let(T.unsafe(nil), String)
|
16274
16303
|
|
16275
16304
|
# Looks for trailing blank lines and a final newline in the
|
16276
16305
|
# source code.
|
@@ -16980,7 +17009,7 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
|
|
16980
17009
|
include ::RuboCop::Cop::SafeAssignment
|
16981
17010
|
extend ::RuboCop::Cop::AutoCorrector
|
16982
17011
|
|
16983
|
-
# source://standard/1.
|
17012
|
+
# source://standard/1.39.0/lib/standard/rubocop/ext.rb#4
|
16984
17013
|
def message(_); end
|
16985
17014
|
|
16986
17015
|
# source://rubocop//lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
@@ -19143,36 +19172,45 @@ class RuboCop::Cop::Lint::ErbNewArguments < ::RuboCop::Cop::Base
|
|
19143
19172
|
extend ::RuboCop::Cop::AutoCorrector
|
19144
19173
|
extend ::RuboCop::Cop::TargetRubyVersion
|
19145
19174
|
|
19146
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19175
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#81
|
19147
19176
|
def erb_new_with_non_keyword_arguments(param0 = T.unsafe(nil)); end
|
19148
19177
|
|
19149
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19178
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#86
|
19150
19179
|
def on_send(node); end
|
19151
19180
|
|
19152
19181
|
private
|
19153
19182
|
|
19154
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19183
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#160
|
19155
19184
|
def arguments_range(node); end
|
19156
19185
|
|
19157
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19186
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#115
|
19158
19187
|
def autocorrect(corrector, node); end
|
19159
19188
|
|
19160
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19189
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#130
|
19161
19190
|
def build_kwargs(node); end
|
19162
19191
|
|
19163
19192
|
# @return [Boolean]
|
19164
19193
|
#
|
19165
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19194
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#126
|
19166
19195
|
def correct_arguments?(arguments); end
|
19167
19196
|
|
19168
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19197
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#104
|
19198
|
+
def message(positional_argument_index, arg_value); end
|
19199
|
+
|
19200
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#147
|
19169
19201
|
def override_by_legacy_args(kwargs, node); end
|
19170
19202
|
end
|
19171
19203
|
|
19204
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#74
|
19205
|
+
RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_EOUTVAR = T.let(T.unsafe(nil), String)
|
19206
|
+
|
19172
19207
|
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#68
|
19173
|
-
RuboCop::Cop::Lint::ErbNewArguments::
|
19208
|
+
RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_SAFE_LEVEL = T.let(T.unsafe(nil), String)
|
19209
|
+
|
19210
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#71
|
19211
|
+
RuboCop::Cop::Lint::ErbNewArguments::MESSAGE_TRIM_MODE = T.let(T.unsafe(nil), String)
|
19174
19212
|
|
19175
|
-
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#
|
19213
|
+
# source://rubocop//lib/rubocop/cop/lint/erb_new_arguments.rb#78
|
19176
19214
|
RuboCop::Cop::Lint::ErbNewArguments::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
19177
19215
|
|
19178
19216
|
# Looks for uses of flip-flop operator
|
@@ -30615,6 +30653,17 @@ module RuboCop::Cop::Style; end
|
|
30615
30653
|
# EnforcedStyle config covers only method definitions.
|
30616
30654
|
# Applications of visibility methods to symbols can be controlled
|
30617
30655
|
# using AllowModifiersOnSymbols config.
|
30656
|
+
# Also, the visibility of `attr*` methods can be controlled using
|
30657
|
+
# AllowModifiersOnAttrs config.
|
30658
|
+
#
|
30659
|
+
# In Ruby 3.0, `attr*` methods now return an array of defined method names
|
30660
|
+
# as symbols. So we can write the modifier and `attr*` in inline style.
|
30661
|
+
# AllowModifiersOnAttrs config allows `attr*` methods to be written in
|
30662
|
+
# inline style without modifying applications that have been maintained
|
30663
|
+
# for a long time in group style. Furthermore, developers who are not very
|
30664
|
+
# familiar with Ruby may know that the modifier applies to `def`, but they
|
30665
|
+
# may not know that it also applies to `attr*` methods. It would be easier
|
30666
|
+
# to understand if we could write `attr*` methods in inline style.
|
30618
30667
|
#
|
30619
30668
|
# @example EnforcedStyle: group (default)
|
30620
30669
|
# # bad
|
@@ -30666,94 +30715,128 @@ module RuboCop::Cop::Style; end
|
|
30666
30715
|
# private :bar, :baz
|
30667
30716
|
#
|
30668
30717
|
# end
|
30718
|
+
# @example AllowModifiersOnAttrs: true (default)
|
30719
|
+
# # good
|
30720
|
+
# class Foo
|
30721
|
+
#
|
30722
|
+
# public attr_reader :bar
|
30723
|
+
# protected attr_writer :baz
|
30724
|
+
# private attr_accessor :qux
|
30725
|
+
# private attr :quux
|
30669
30726
|
#
|
30670
|
-
#
|
30727
|
+
# def public_method; end
|
30728
|
+
#
|
30729
|
+
# private
|
30730
|
+
#
|
30731
|
+
# def private_method; end
|
30732
|
+
#
|
30733
|
+
# end
|
30734
|
+
# @example AllowModifiersOnAttrs: false
|
30735
|
+
# # bad
|
30736
|
+
# class Foo
|
30737
|
+
#
|
30738
|
+
# public attr_reader :bar
|
30739
|
+
# protected attr_writer :baz
|
30740
|
+
# private attr_accessor :qux
|
30741
|
+
# private attr :quux
|
30742
|
+
#
|
30743
|
+
# end
|
30744
|
+
#
|
30745
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#109
|
30671
30746
|
class RuboCop::Cop::Style::AccessModifierDeclarations < ::RuboCop::Cop::Base
|
30672
30747
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
30673
30748
|
include ::RuboCop::Cop::RangeHelp
|
30674
30749
|
extend ::RuboCop::Cop::AutoCorrector
|
30675
30750
|
|
30676
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30751
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#135
|
30752
|
+
def access_modifier_with_attr?(param0 = T.unsafe(nil)); end
|
30753
|
+
|
30754
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#130
|
30677
30755
|
def access_modifier_with_symbol?(param0 = T.unsafe(nil)); end
|
30678
30756
|
|
30679
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30757
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#140
|
30680
30758
|
def on_send(node); end
|
30681
30759
|
|
30682
30760
|
private
|
30683
30761
|
|
30684
30762
|
# @return [Boolean]
|
30685
30763
|
#
|
30686
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30764
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#195
|
30687
30765
|
def access_modifier_is_inlined?(node); end
|
30688
30766
|
|
30689
30767
|
# @return [Boolean]
|
30690
30768
|
#
|
30691
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30769
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#199
|
30692
30770
|
def access_modifier_is_not_inlined?(node); end
|
30693
30771
|
|
30694
30772
|
# @return [Boolean]
|
30695
30773
|
#
|
30696
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30774
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#177
|
30775
|
+
def allow_modifiers_on_attrs?(node); end
|
30776
|
+
|
30777
|
+
# @return [Boolean]
|
30778
|
+
#
|
30779
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#173
|
30697
30780
|
def allow_modifiers_on_symbols?(node); end
|
30698
30781
|
|
30699
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30782
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#158
|
30700
30783
|
def autocorrect(corrector, node); end
|
30701
30784
|
|
30702
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30785
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#269
|
30703
30786
|
def def_source(node, def_node); end
|
30704
30787
|
|
30705
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30788
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#230
|
30706
30789
|
def find_argument_less_modifier_node(node); end
|
30707
30790
|
|
30708
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30791
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#219
|
30709
30792
|
def find_corresponding_def_node(node); end
|
30710
30793
|
|
30711
30794
|
# @return [Boolean]
|
30712
30795
|
#
|
30713
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30796
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#187
|
30714
30797
|
def group_style?; end
|
30715
30798
|
|
30716
30799
|
# @return [Boolean]
|
30717
30800
|
#
|
30718
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30801
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#191
|
30719
30802
|
def inline_style?; end
|
30720
30803
|
|
30721
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30804
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#261
|
30722
30805
|
def insert_inline_modifier(corrector, node, modifier_name); end
|
30723
30806
|
|
30724
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30807
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#209
|
30725
30808
|
def message(range); end
|
30726
30809
|
|
30727
30810
|
# @return [Boolean]
|
30728
30811
|
#
|
30729
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30812
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#181
|
30730
30813
|
def offense?(node); end
|
30731
30814
|
|
30732
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30815
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#265
|
30733
30816
|
def remove_node(corrector, node); end
|
30734
30817
|
|
30735
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30818
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#244
|
30736
30819
|
def replace_def(corrector, node, def_node); end
|
30737
30820
|
|
30738
30821
|
# @return [Boolean]
|
30739
30822
|
#
|
30740
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30823
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#203
|
30741
30824
|
def right_siblings_same_inline_method?(node); end
|
30742
30825
|
|
30743
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30826
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#238
|
30744
30827
|
def select_grouped_def_nodes(node); end
|
30745
30828
|
end
|
30746
30829
|
|
30747
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30830
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#127
|
30748
30831
|
RuboCop::Cop::Style::AccessModifierDeclarations::ALLOWED_NODE_TYPES = T.let(T.unsafe(nil), Array)
|
30749
30832
|
|
30750
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30833
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#115
|
30751
30834
|
RuboCop::Cop::Style::AccessModifierDeclarations::GROUP_STYLE_MESSAGE = T.let(T.unsafe(nil), String)
|
30752
30835
|
|
30753
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30836
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#120
|
30754
30837
|
RuboCop::Cop::Style::AccessModifierDeclarations::INLINE_STYLE_MESSAGE = T.let(T.unsafe(nil), String)
|
30755
30838
|
|
30756
|
-
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#
|
30839
|
+
# source://rubocop//lib/rubocop/cop/style/access_modifier_declarations.rb#125
|
30757
30840
|
RuboCop::Cop::Style::AccessModifierDeclarations::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
30758
30841
|
|
30759
30842
|
# Checks for grouping of accessors in `class` and `module` bodies.
|
@@ -31090,6 +31173,8 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
|
|
31090
31173
|
#
|
31091
31174
|
# Names not on this list are likely to be meaningful and are allowed by default.
|
31092
31175
|
#
|
31176
|
+
# This cop handles not only method forwarding but also forwarding to `super`.
|
31177
|
+
#
|
31093
31178
|
# @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default)
|
31094
31179
|
# # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`.
|
31095
31180
|
# def foo(&block)
|
@@ -31177,222 +31262,222 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
|
|
31177
31262
|
# bar(...)
|
31178
31263
|
# end
|
31179
31264
|
#
|
31180
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31265
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#127
|
31181
31266
|
class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
|
31182
31267
|
include ::RuboCop::Cop::RangeHelp
|
31183
31268
|
extend ::RuboCop::Cop::AutoCorrector
|
31184
31269
|
extend ::RuboCop::Cop::TargetRubyVersion
|
31185
31270
|
|
31186
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31271
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146
|
31187
31272
|
def on_def(node); end
|
31188
31273
|
|
31189
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31274
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#146
|
31190
31275
|
def on_defs(node); end
|
31191
31276
|
|
31192
31277
|
private
|
31193
31278
|
|
31194
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31279
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#187
|
31195
31280
|
def add_forward_all_offenses(node, send_classifications, forwardable_args); end
|
31196
31281
|
|
31197
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31282
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#353
|
31198
31283
|
def add_parens_if_missing(node, corrector); end
|
31199
31284
|
|
31200
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31285
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#214
|
31201
31286
|
def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end
|
31202
31287
|
|
31203
31288
|
# @return [Boolean]
|
31204
31289
|
#
|
31205
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31290
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#345
|
31206
31291
|
def allow_only_rest_arguments?; end
|
31207
31292
|
|
31208
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31293
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#337
|
31209
31294
|
def arguments_range(node, first_node); end
|
31210
31295
|
|
31211
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31296
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#265
|
31212
31297
|
def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end
|
31213
31298
|
|
31214
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31299
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#250
|
31215
31300
|
def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end
|
31216
31301
|
|
31217
31302
|
# @return [Boolean]
|
31218
31303
|
#
|
31219
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31304
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#497
|
31220
31305
|
def explicit_block_name?; end
|
31221
31306
|
|
31222
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31307
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#170
|
31223
31308
|
def extract_forwardable_args(args); end
|
31224
31309
|
|
31225
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31310
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#240
|
31226
31311
|
def non_splat_or_block_pass_lvar_references(body); end
|
31227
31312
|
|
31228
31313
|
# @return [Boolean]
|
31229
31314
|
#
|
31230
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31315
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#182
|
31231
31316
|
def only_forwards_all?(send_classifications); end
|
31232
31317
|
|
31233
31318
|
# @return [Boolean]
|
31234
31319
|
#
|
31235
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31320
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#294
|
31236
31321
|
def outside_block?(node); end
|
31237
31322
|
|
31238
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31323
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174
|
31239
31324
|
def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end
|
31240
31325
|
|
31241
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31326
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#284
|
31242
31327
|
def redundant_named_arg(arg, config_name, keyword); end
|
31243
31328
|
|
31244
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31329
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#327
|
31245
31330
|
def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end
|
31246
31331
|
|
31247
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31332
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#300
|
31248
31333
|
def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end
|
31249
31334
|
|
31250
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31335
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#316
|
31251
31336
|
def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end
|
31252
31337
|
|
31253
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31338
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#308
|
31254
31339
|
def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end
|
31255
31340
|
|
31256
31341
|
# @return [Boolean]
|
31257
31342
|
#
|
31258
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31343
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#349
|
31259
31344
|
def use_anonymous_forwarding?; end
|
31260
31345
|
|
31261
31346
|
class << self
|
31262
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31347
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#142
|
31263
31348
|
def autocorrect_incompatible_with; end
|
31264
31349
|
end
|
31265
31350
|
end
|
31266
31351
|
|
31267
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31352
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135
|
31268
31353
|
RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array)
|
31269
31354
|
|
31270
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31355
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138
|
31271
31356
|
RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String)
|
31272
31357
|
|
31273
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31358
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140
|
31274
31359
|
RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String)
|
31275
31360
|
|
31276
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31361
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134
|
31277
31362
|
RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array)
|
31278
31363
|
|
31279
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31364
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137
|
31280
31365
|
RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String)
|
31281
31366
|
|
31282
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31367
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#139
|
31283
31368
|
RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String)
|
31284
31369
|
|
31285
31370
|
# Classifies send nodes for possible rest/kwrest/all (including block) forwarding.
|
31286
31371
|
#
|
31287
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31372
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#360
|
31288
31373
|
class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier
|
31289
31374
|
extend ::RuboCop::AST::NodePattern::Macros
|
31290
31375
|
|
31291
31376
|
# @return [SendNodeClassifier] a new instance of SendNodeClassifier
|
31292
31377
|
#
|
31293
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31378
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#372
|
31294
31379
|
def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end
|
31295
31380
|
|
31296
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31381
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#400
|
31297
31382
|
def classification; end
|
31298
31383
|
|
31299
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31384
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
|
31300
31385
|
def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end
|
31301
31386
|
|
31302
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31387
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#394
|
31303
31388
|
def forwarded_block_arg; end
|
31304
31389
|
|
31305
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31390
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#370
|
31306
31391
|
def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end
|
31307
31392
|
|
31308
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31393
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#388
|
31309
31394
|
def forwarded_kwrest_arg; end
|
31310
31395
|
|
31311
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31396
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#382
|
31312
31397
|
def forwarded_rest_arg; end
|
31313
31398
|
|
31314
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31399
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364
|
31315
31400
|
def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end
|
31316
31401
|
|
31317
31402
|
private
|
31318
31403
|
|
31319
31404
|
# @return [Boolean]
|
31320
31405
|
#
|
31321
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31406
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#468
|
31322
31407
|
def additional_kwargs?; end
|
31323
31408
|
|
31324
31409
|
# @return [Boolean]
|
31325
31410
|
#
|
31326
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31411
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#464
|
31327
31412
|
def additional_kwargs_or_forwarded_kwargs?; end
|
31328
31413
|
|
31329
31414
|
# @return [Boolean]
|
31330
31415
|
#
|
31331
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31416
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#478
|
31332
31417
|
def allow_offense_for_no_block?; end
|
31333
31418
|
|
31334
31419
|
# @return [Boolean]
|
31335
31420
|
#
|
31336
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31421
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#449
|
31337
31422
|
def any_arg_referenced?; end
|
31338
31423
|
|
31339
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31424
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#433
|
31340
31425
|
def arguments; end
|
31341
31426
|
|
31342
31427
|
# @return [Boolean]
|
31343
31428
|
#
|
31344
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31429
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#412
|
31345
31430
|
def can_forward_all?; end
|
31346
31431
|
|
31347
31432
|
# @return [Boolean]
|
31348
31433
|
#
|
31349
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31434
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#472
|
31350
31435
|
def forward_additional_kwargs?; end
|
31351
31436
|
|
31352
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31437
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#429
|
31353
31438
|
def forwarded_rest_and_kwrest_args; end
|
31354
31439
|
|
31355
31440
|
# @return [Boolean]
|
31356
31441
|
#
|
31357
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31442
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#491
|
31358
31443
|
def missing_rest_arg_or_kwrest_arg?; end
|
31359
31444
|
|
31360
31445
|
# @return [Boolean]
|
31361
31446
|
#
|
31362
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31447
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#482
|
31363
31448
|
def no_additional_args?; end
|
31364
31449
|
|
31365
31450
|
# @return [Boolean]
|
31366
31451
|
#
|
31367
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31452
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#457
|
31368
31453
|
def no_post_splat_args?; end
|
31369
31454
|
|
31370
31455
|
# @return [Boolean]
|
31371
31456
|
#
|
31372
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31457
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#425
|
31373
31458
|
def offensive_block_forwarding?; end
|
31374
31459
|
|
31375
31460
|
# @return [Boolean]
|
31376
31461
|
#
|
31377
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31462
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#445
|
31378
31463
|
def referenced_block_arg?; end
|
31379
31464
|
|
31380
31465
|
# @return [Boolean]
|
31381
31466
|
#
|
31382
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31467
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#441
|
31383
31468
|
def referenced_kwrest_arg?; end
|
31384
31469
|
|
31385
31470
|
# @return [Boolean]
|
31386
31471
|
#
|
31387
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31472
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#437
|
31388
31473
|
def referenced_rest_arg?; end
|
31389
31474
|
|
31390
31475
|
# @return [Boolean]
|
31391
31476
|
#
|
31392
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31477
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#421
|
31393
31478
|
def ruby_32_missing_rest_or_kwest?; end
|
31394
31479
|
|
31395
|
-
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#
|
31480
|
+
# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#453
|
31396
31481
|
def target_ruby_version; end
|
31397
31482
|
end
|
31398
31483
|
|
@@ -34168,10 +34253,10 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base
|
|
34168
34253
|
|
34169
34254
|
# @return [Boolean]
|
34170
34255
|
#
|
34171
|
-
# source://rubocop//lib/rubocop/cop/style/copyright.rb#
|
34256
|
+
# source://rubocop//lib/rubocop/cop/style/copyright.rb#86
|
34172
34257
|
def encoding_token?(processed_source, token_index); end
|
34173
34258
|
|
34174
|
-
# source://rubocop//lib/rubocop/cop/style/copyright.rb#
|
34259
|
+
# source://rubocop//lib/rubocop/cop/style/copyright.rb#72
|
34175
34260
|
def insert_notice_before(processed_source); end
|
34176
34261
|
|
34177
34262
|
# source://rubocop//lib/rubocop/cop/style/copyright.rb#52
|
@@ -34179,12 +34264,12 @@ class RuboCop::Cop::Style::Copyright < ::RuboCop::Cop::Base
|
|
34179
34264
|
|
34180
34265
|
# @return [Boolean]
|
34181
34266
|
#
|
34182
|
-
# source://rubocop//lib/rubocop/cop/style/copyright.rb#
|
34267
|
+
# source://rubocop//lib/rubocop/cop/style/copyright.rb#93
|
34183
34268
|
def notice_found?(processed_source); end
|
34184
34269
|
|
34185
34270
|
# @return [Boolean]
|
34186
34271
|
#
|
34187
|
-
# source://rubocop//lib/rubocop/cop/style/copyright.rb#
|
34272
|
+
# source://rubocop//lib/rubocop/cop/style/copyright.rb#79
|
34188
34273
|
def shebang_token?(processed_source, token_index); end
|
34189
34274
|
|
34190
34275
|
# @raise [Warning]
|
@@ -34852,34 +34937,52 @@ RuboCop::Cop::Style::Documentation::MSG = T.let(T.unsafe(nil), String)
|
|
34852
34937
|
# def do_something
|
34853
34938
|
# end
|
34854
34939
|
# end
|
34940
|
+
# @example AllowedMethods: ['method_missing', 'respond_to_missing?']
|
34855
34941
|
#
|
34856
|
-
#
|
34942
|
+
# # good
|
34943
|
+
# class Foo
|
34944
|
+
# def method_missing(name, *args)
|
34945
|
+
# end
|
34946
|
+
#
|
34947
|
+
# def respond_to_missing?(symbol, include_private)
|
34948
|
+
# end
|
34949
|
+
# end
|
34950
|
+
#
|
34951
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#109
|
34857
34952
|
class RuboCop::Cop::Style::DocumentationMethod < ::RuboCop::Cop::Base
|
34858
34953
|
include ::RuboCop::Cop::DocumentationComment
|
34859
34954
|
include ::RuboCop::Cop::VisibilityHelp
|
34860
34955
|
include ::RuboCop::Cop::DefNode
|
34861
34956
|
|
34862
|
-
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#
|
34957
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#116
|
34863
34958
|
def modifier_node?(param0 = T.unsafe(nil)); end
|
34864
34959
|
|
34865
|
-
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#
|
34960
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120
|
34866
34961
|
def on_def(node); end
|
34867
34962
|
|
34868
|
-
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#
|
34963
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#120
|
34869
34964
|
def on_defs(node); end
|
34870
34965
|
|
34871
34966
|
private
|
34872
34967
|
|
34873
|
-
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#
|
34968
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#146
|
34969
|
+
def allowed_methods; end
|
34970
|
+
|
34971
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#130
|
34874
34972
|
def check(node); end
|
34875
34973
|
|
34876
34974
|
# @return [Boolean]
|
34877
34975
|
#
|
34878
|
-
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#
|
34976
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#142
|
34977
|
+
def method_allowed?(node); end
|
34978
|
+
|
34979
|
+
# @return [Boolean]
|
34980
|
+
#
|
34981
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#138
|
34879
34982
|
def require_for_non_public_methods?; end
|
34880
34983
|
end
|
34881
34984
|
|
34882
|
-
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#
|
34985
|
+
# source://rubocop//lib/rubocop/cop/style/documentation_method.rb#113
|
34883
34986
|
RuboCop::Cop::Style::DocumentationMethod::MSG = T.let(T.unsafe(nil), String)
|
34884
34987
|
|
34885
34988
|
# Detects double disable comments on one line. This is mostly to catch
|
@@ -37905,10 +38008,12 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
|
|
37905
38008
|
# * never - forces use of explicit hash literal value
|
37906
38009
|
# * either - accepts both shorthand and explicit use of hash literal value
|
37907
38010
|
# * consistent - forces use of the 3.1 syntax only if all values can be omitted in the hash
|
38011
|
+
# * either_consistent - accepts both shorthand and explicit use of hash literal value,
|
38012
|
+
# but they must be consistent
|
37908
38013
|
#
|
37909
|
-
# @example EnforcedShorthandSyntax:
|
38014
|
+
# @example EnforcedShorthandSyntax: either_consistent
|
37910
38015
|
#
|
37911
|
-
# #
|
38016
|
+
# # good - `foo` and `bar` values can be omitted, but they are consistent, so it's accepted
|
37912
38017
|
# {foo: foo, bar: bar}
|
37913
38018
|
#
|
37914
38019
|
# # bad - `bar` value can be omitted
|
@@ -37969,6 +38074,22 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
|
|
37969
38074
|
#
|
37970
38075
|
# # good
|
37971
38076
|
# {foo:, bar:}
|
38077
|
+
# @example EnforcedShorthandSyntax: consistent
|
38078
|
+
#
|
38079
|
+
# # bad - `foo` and `bar` values can be omitted
|
38080
|
+
# {foo: foo, bar: bar}
|
38081
|
+
#
|
38082
|
+
# # bad - `bar` value can be omitted
|
38083
|
+
# {foo:, bar: bar}
|
38084
|
+
#
|
38085
|
+
# # bad - mixed syntaxes
|
38086
|
+
# {foo:, bar: baz}
|
38087
|
+
#
|
38088
|
+
# # good
|
38089
|
+
# {foo:, bar:}
|
38090
|
+
#
|
38091
|
+
# # good - can't omit `baz`
|
38092
|
+
# {foo: foo, bar: baz}
|
37972
38093
|
# @example EnforcedStyle: ruby19 (default)
|
37973
38094
|
# # bad
|
37974
38095
|
# {:a => 2}
|
@@ -37979,84 +38100,84 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
|
|
37979
38100
|
# {:c => 2, 'd' => 2} # acceptable since 'd' isn't a symbol
|
37980
38101
|
# {d: 1, 'e' => 2} # technically not forbidden
|
37981
38102
|
#
|
37982
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38103
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#131
|
37983
38104
|
class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base
|
37984
38105
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
37985
38106
|
include ::RuboCop::Cop::HashShorthandSyntax
|
37986
38107
|
include ::RuboCop::Cop::RangeHelp
|
37987
38108
|
extend ::RuboCop::Cop::AutoCorrector
|
37988
38109
|
|
37989
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38110
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#185
|
37990
38111
|
def alternative_style; end
|
37991
38112
|
|
37992
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38113
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#163
|
37993
38114
|
def hash_rockets_check(pairs); end
|
37994
38115
|
|
37995
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38116
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#177
|
37996
38117
|
def no_mixed_keys_check(pairs); end
|
37997
38118
|
|
37998
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38119
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#141
|
37999
38120
|
def on_hash(node); end
|
38000
38121
|
|
38001
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38122
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#159
|
38002
38123
|
def ruby19_check(pairs); end
|
38003
38124
|
|
38004
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38125
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#167
|
38005
38126
|
def ruby19_no_mixed_keys_check(pairs); end
|
38006
38127
|
|
38007
38128
|
private
|
38008
38129
|
|
38009
38130
|
# @return [Boolean]
|
38010
38131
|
#
|
38011
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38132
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#217
|
38012
38133
|
def acceptable_19_syntax_symbol?(sym_name); end
|
38013
38134
|
|
38014
38135
|
# @return [Boolean]
|
38015
38136
|
#
|
38016
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38137
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#274
|
38017
38138
|
def argument_without_space?(node); end
|
38018
38139
|
|
38019
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38140
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#196
|
38020
38141
|
def autocorrect(corrector, node); end
|
38021
38142
|
|
38022
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38143
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#278
|
38023
38144
|
def autocorrect_hash_rockets(corrector, pair_node); end
|
38024
38145
|
|
38025
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38146
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#287
|
38026
38147
|
def autocorrect_no_mixed_keys(corrector, pair_node); end
|
38027
38148
|
|
38028
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38149
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#253
|
38029
38150
|
def autocorrect_ruby19(corrector, pair_node); end
|
38030
38151
|
|
38031
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38152
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#238
|
38032
38153
|
def check(pairs, delim, msg); end
|
38033
38154
|
|
38034
38155
|
# @return [Boolean]
|
38035
38156
|
#
|
38036
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38157
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#295
|
38037
38158
|
def force_hash_rockets?(pairs); end
|
38038
38159
|
|
38039
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38160
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#266
|
38040
38161
|
def range_for_autocorrect_ruby19(pair_node); end
|
38041
38162
|
|
38042
38163
|
# @return [Boolean]
|
38043
38164
|
#
|
38044
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38165
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#206
|
38045
38166
|
def sym_indices?(pairs); end
|
38046
38167
|
|
38047
38168
|
# @return [Boolean]
|
38048
38169
|
#
|
38049
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38170
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#210
|
38050
38171
|
def word_symbol_pair?(pair); end
|
38051
38172
|
end
|
38052
38173
|
|
38053
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38174
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#137
|
38054
38175
|
RuboCop::Cop::Style::HashSyntax::MSG_19 = T.let(T.unsafe(nil), String)
|
38055
38176
|
|
38056
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38177
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#139
|
38057
38178
|
RuboCop::Cop::Style::HashSyntax::MSG_HASH_ROCKETS = T.let(T.unsafe(nil), String)
|
38058
38179
|
|
38059
|
-
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#
|
38180
|
+
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#138
|
38060
38181
|
RuboCop::Cop::Style::HashSyntax::MSG_NO_MIXED_KEYS = T.let(T.unsafe(nil), String)
|
38061
38182
|
|
38062
38183
|
# Looks for uses of `\_.each_with_object({}) {...}`,
|
@@ -38701,7 +38822,7 @@ class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base
|
|
38701
38822
|
|
38702
38823
|
# @return [Boolean]
|
38703
38824
|
#
|
38704
|
-
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#
|
38825
|
+
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#136
|
38705
38826
|
def assume_boolean_value?(condition); end
|
38706
38827
|
|
38707
38828
|
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#114
|
@@ -38717,20 +38838,20 @@ class RuboCop::Cop::Style::IfWithBooleanLiteralBranches < ::RuboCop::Cop::Base
|
|
38717
38838
|
|
38718
38839
|
# @return [Boolean]
|
38719
38840
|
#
|
38720
|
-
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#
|
38841
|
+
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#153
|
38721
38842
|
def opposite_condition?(node); end
|
38722
38843
|
|
38723
|
-
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#
|
38844
|
+
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#143
|
38724
38845
|
def replacement_condition(node, condition); end
|
38725
38846
|
|
38726
38847
|
# @return [Boolean]
|
38727
38848
|
#
|
38728
|
-
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#
|
38849
|
+
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#158
|
38729
38850
|
def require_parentheses?(condition); end
|
38730
38851
|
|
38731
38852
|
# @return [Boolean]
|
38732
38853
|
#
|
38733
|
-
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#
|
38854
|
+
# source://rubocop//lib/rubocop/cop/style/if_with_boolean_literal_branches.rb#122
|
38734
38855
|
def return_boolean_value?(condition); end
|
38735
38856
|
end
|
38736
38857
|
|
@@ -45893,47 +46014,47 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45893
46014
|
include ::RuboCop::Cop::MatchRange
|
45894
46015
|
extend ::RuboCop::Cop::AutoCorrector
|
45895
46016
|
|
45896
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46017
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#79
|
45897
46018
|
def on_new_investigation; end
|
45898
46019
|
|
45899
46020
|
private
|
45900
46021
|
|
45901
46022
|
# @return [Boolean]
|
45902
46023
|
#
|
45903
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46024
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#183
|
45904
46025
|
def argument_is_method?(node); end
|
45905
46026
|
|
45906
46027
|
# @return [Boolean]
|
45907
46028
|
#
|
45908
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46029
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#147
|
45909
46030
|
def argument_newline?(node); end
|
45910
46031
|
|
45911
46032
|
# @return [Boolean]
|
45912
46033
|
#
|
45913
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46034
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#102
|
45914
46035
|
def ends_with_backslash_without_comment?(source_line); end
|
45915
46036
|
|
45916
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46037
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#163
|
45917
46038
|
def find_node_for_line(line); end
|
45918
46039
|
|
45919
46040
|
# @return [Boolean]
|
45920
46041
|
#
|
45921
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46042
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#132
|
45922
46043
|
def inside_string_literal?(range, token); end
|
45923
46044
|
|
45924
46045
|
# @return [Boolean]
|
45925
46046
|
#
|
45926
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46047
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#110
|
45927
46048
|
def inside_string_literal_or_method_with_argument?(range); end
|
45928
46049
|
|
45929
46050
|
# @return [Boolean]
|
45930
46051
|
#
|
45931
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46052
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#118
|
45932
46053
|
def leading_dot_method_chain_with_blank_line?(range); end
|
45933
46054
|
|
45934
46055
|
# @return [Boolean]
|
45935
46056
|
#
|
45936
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46057
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#190
|
45937
46058
|
def method_call_with_arguments?(node); end
|
45938
46059
|
|
45939
46060
|
# A method call without parentheses such as the following cannot remove `\`:
|
@@ -45943,38 +46064,41 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
|
|
45943
46064
|
#
|
45944
46065
|
# @return [Boolean]
|
45945
46066
|
#
|
45946
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46067
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#140
|
45947
46068
|
def method_with_argument?(current_token, next_token); end
|
45948
46069
|
|
45949
46070
|
# @return [Boolean]
|
45950
46071
|
#
|
45951
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46072
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#124
|
45952
46073
|
def redundant_line_continuation?(range); end
|
45953
46074
|
|
45954
46075
|
# @return [Boolean]
|
45955
46076
|
#
|
45956
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46077
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#94
|
45957
46078
|
def require_line_continuation?(range); end
|
45958
46079
|
|
45959
46080
|
# @return [Boolean]
|
45960
46081
|
#
|
45961
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46082
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#169
|
45962
46083
|
def same_line?(node, line); end
|
45963
46084
|
|
45964
46085
|
# @return [Boolean]
|
45965
46086
|
#
|
45966
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46087
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#194
|
45967
46088
|
def start_with_arithmetic_operator?(source_line); end
|
45968
46089
|
|
45969
46090
|
# @return [Boolean]
|
45970
46091
|
#
|
45971
|
-
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#
|
46092
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#106
|
45972
46093
|
def string_concatenation?(source_line); end
|
45973
46094
|
end
|
45974
46095
|
|
45975
46096
|
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#72
|
45976
46097
|
RuboCop::Cop::Style::RedundantLineContinuation::ALLOWED_STRING_TOKENS = T.let(T.unsafe(nil), Array)
|
45977
46098
|
|
46099
|
+
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#77
|
46100
|
+
RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TAKING_FLOW_TOKEN_TYPES = T.let(T.unsafe(nil), Array)
|
46101
|
+
|
45978
46102
|
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#73
|
45979
46103
|
RuboCop::Cop::Style::RedundantLineContinuation::ARGUMENT_TYPES = T.let(T.unsafe(nil), Array)
|
45980
46104
|
|
@@ -48316,6 +48440,69 @@ RuboCop::Cop::Style::Send::MSG = T.let(T.unsafe(nil), String)
|
|
48316
48440
|
# source://rubocop//lib/rubocop/cop/style/send.rb#18
|
48317
48441
|
RuboCop::Cop::Style::Send::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
48318
48442
|
|
48443
|
+
# Detects the use of the `public_send` method with a literal method name argument.
|
48444
|
+
# Since the `send` method can be used to call private methods, by default,
|
48445
|
+
# only the `public_send` method is detected.
|
48446
|
+
#
|
48447
|
+
# @example
|
48448
|
+
# # bad
|
48449
|
+
# obj.public_send(:method_name)
|
48450
|
+
# obj.public_send('method_name')
|
48451
|
+
#
|
48452
|
+
# # good
|
48453
|
+
# obj.method_name
|
48454
|
+
# @example AllowSend: true (default)
|
48455
|
+
# # good
|
48456
|
+
# obj.send(:method_name)
|
48457
|
+
# obj.send('method_name')
|
48458
|
+
# obj.__send__(:method_name)
|
48459
|
+
# obj.__send__('method_name')
|
48460
|
+
# @example AllowSend: false
|
48461
|
+
# # bad
|
48462
|
+
# obj.send(:method_name)
|
48463
|
+
# obj.send('method_name')
|
48464
|
+
# obj.__send__(:method_name)
|
48465
|
+
# obj.__send__('method_name')
|
48466
|
+
#
|
48467
|
+
# # good
|
48468
|
+
# obj.method_name
|
48469
|
+
#
|
48470
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#40
|
48471
|
+
class RuboCop::Cop::Style::SendWithLiteralMethodName < ::RuboCop::Cop::Base
|
48472
|
+
extend ::RuboCop::Cop::AutoCorrector
|
48473
|
+
|
48474
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#54
|
48475
|
+
def on_send(node); end
|
48476
|
+
|
48477
|
+
private
|
48478
|
+
|
48479
|
+
# @return [Boolean]
|
48480
|
+
#
|
48481
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#76
|
48482
|
+
def allow_send?; end
|
48483
|
+
|
48484
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#80
|
48485
|
+
def offense_range(node); end
|
48486
|
+
|
48487
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#84
|
48488
|
+
def removal_argument_range(first_argument, second_argument); end
|
48489
|
+
end
|
48490
|
+
|
48491
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#46
|
48492
|
+
RuboCop::Cop::Style::SendWithLiteralMethodName::METHOD_NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
48493
|
+
|
48494
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#43
|
48495
|
+
RuboCop::Cop::Style::SendWithLiteralMethodName::MSG = T.let(T.unsafe(nil), String)
|
48496
|
+
|
48497
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#47
|
48498
|
+
RuboCop::Cop::Style::SendWithLiteralMethodName::RESERVED_WORDS = T.let(T.unsafe(nil), Array)
|
48499
|
+
|
48500
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#44
|
48501
|
+
RuboCop::Cop::Style::SendWithLiteralMethodName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
48502
|
+
|
48503
|
+
# source://rubocop//lib/rubocop/cop/style/send_with_literal_method_name.rb#45
|
48504
|
+
RuboCop::Cop::Style::SendWithLiteralMethodName::STATIC_METHOD_NAME_NODE_TYPES = T.let(T.unsafe(nil), Array)
|
48505
|
+
|
48319
48506
|
# Checks for uses of `fail` and `raise`.
|
48320
48507
|
#
|
48321
48508
|
# @example EnforcedStyle: only_raise (default)
|
@@ -49677,6 +49864,106 @@ end
|
|
49677
49864
|
# source://rubocop//lib/rubocop/cop/style/struct_inheritance.rb#30
|
49678
49865
|
RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String)
|
49679
49866
|
|
49867
|
+
# Checks for redundant argument forwarding when calling super
|
49868
|
+
# with arguments identical to the method definition.
|
49869
|
+
#
|
49870
|
+
# @example
|
49871
|
+
# # bad
|
49872
|
+
# def method(*args, **kwargs)
|
49873
|
+
# super(*args, **kwargs)
|
49874
|
+
# end
|
49875
|
+
#
|
49876
|
+
# # good - implicitly passing all arguments
|
49877
|
+
# def method(*args, **kwargs)
|
49878
|
+
# super
|
49879
|
+
# end
|
49880
|
+
#
|
49881
|
+
# # good - forwarding a subset of the arguments
|
49882
|
+
# def method(*args, **kwargs)
|
49883
|
+
# super(*args)
|
49884
|
+
# end
|
49885
|
+
#
|
49886
|
+
# # good - forwarding no arguments
|
49887
|
+
# def method(*args, **kwargs)
|
49888
|
+
# super()
|
49889
|
+
# end
|
49890
|
+
#
|
49891
|
+
# # good - assigning to the block variable before calling super
|
49892
|
+
# def method(&block)
|
49893
|
+
# # Assigning to the block variable would pass the old value to super,
|
49894
|
+
# # under this circumstance the block must be referenced explicitly.
|
49895
|
+
# block ||= proc { 'fallback behavior' }
|
49896
|
+
# super(&block)
|
49897
|
+
# end
|
49898
|
+
#
|
49899
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#37
|
49900
|
+
class RuboCop::Cop::Style::SuperArguments < ::RuboCop::Cop::Base
|
49901
|
+
extend ::RuboCop::Cop::AutoCorrector
|
49902
|
+
|
49903
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#45
|
49904
|
+
def on_super(super_node); end
|
49905
|
+
|
49906
|
+
private
|
49907
|
+
|
49908
|
+
# @return [Boolean]
|
49909
|
+
#
|
49910
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#62
|
49911
|
+
def arguments_identical?(def_node, def_args, super_args); end
|
49912
|
+
|
49913
|
+
# @return [Boolean]
|
49914
|
+
#
|
49915
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#117
|
49916
|
+
def block_arg_same?(def_node, def_arg, super_arg); end
|
49917
|
+
|
49918
|
+
# Reassigning the block argument will still pass along the original block to super
|
49919
|
+
# https://bugs.ruby-lang.org/issues/20505
|
49920
|
+
#
|
49921
|
+
# @return [Boolean]
|
49922
|
+
#
|
49923
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#128
|
49924
|
+
def block_reassigned?(def_node, block_arg_name); end
|
49925
|
+
|
49926
|
+
# @return [Boolean]
|
49927
|
+
#
|
49928
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#138
|
49929
|
+
def define_method?(node); end
|
49930
|
+
|
49931
|
+
# @return [Boolean]
|
49932
|
+
#
|
49933
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#134
|
49934
|
+
def forward_arg_same?(def_arg, super_arg); end
|
49935
|
+
|
49936
|
+
# @return [Boolean]
|
49937
|
+
#
|
49938
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#97
|
49939
|
+
def keyword_arg_same?(def_arg, super_arg); end
|
49940
|
+
|
49941
|
+
# @return [Boolean]
|
49942
|
+
#
|
49943
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#107
|
49944
|
+
def keyword_rest_arg_same?(def_arg, super_arg); end
|
49945
|
+
|
49946
|
+
# @return [Boolean]
|
49947
|
+
#
|
49948
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#80
|
49949
|
+
def positional_arg_same?(def_arg, super_arg); end
|
49950
|
+
|
49951
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#87
|
49952
|
+
def positional_rest_arg_same(def_arg, super_arg); end
|
49953
|
+
|
49954
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#144
|
49955
|
+
def preprocess_super_args(super_args); end
|
49956
|
+
end
|
49957
|
+
|
49958
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#41
|
49959
|
+
RuboCop::Cop::Style::SuperArguments::ASSIGN_TYPES = T.let(T.unsafe(nil), Array)
|
49960
|
+
|
49961
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#40
|
49962
|
+
RuboCop::Cop::Style::SuperArguments::DEF_TYPES = T.let(T.unsafe(nil), Array)
|
49963
|
+
|
49964
|
+
# source://rubocop//lib/rubocop/cop/style/super_arguments.rb#43
|
49965
|
+
RuboCop::Cop::Style::SuperArguments::MSG = T.let(T.unsafe(nil), String)
|
49966
|
+
|
49680
49967
|
# Enforces the presence of parentheses in `super` containing arguments.
|
49681
49968
|
#
|
49682
49969
|
# `super` is a keyword and is provided as a distinct cop from those designed for method call.
|
@@ -49900,9 +50187,11 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
|
|
49900
50187
|
# `define_method?` methods are allowed by default.
|
49901
50188
|
# These are customizable with `AllowedMethods` option.
|
49902
50189
|
#
|
49903
|
-
# @example
|
50190
|
+
# @example AllCops:ActiveSupportExtensionsEnabled: true
|
49904
50191
|
# # good
|
49905
|
-
#
|
50192
|
+
# ->(x) { x.foo }
|
50193
|
+
# proc { |x| x.foo }
|
50194
|
+
# Proc.new { |x| x.foo }
|
49906
50195
|
# @example AllowMethodsWithArguments: false (default)
|
49907
50196
|
# # bad
|
49908
50197
|
# something.do_something(foo) { |o| o.bar }
|
@@ -49932,6 +50221,19 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
|
|
49932
50221
|
# @example AllowedPatterns: [] (default)
|
49933
50222
|
# # bad
|
49934
50223
|
# something.map { |s| s.upcase }
|
50224
|
+
# @example AllowedPatterns: ['map'] (default)
|
50225
|
+
# # good
|
50226
|
+
# something.map { |s| s.upcase }
|
50227
|
+
# @example AllCops:ActiveSupportExtensionsEnabled: false (default)
|
50228
|
+
# # bad
|
50229
|
+
# ->(x) { x.foo }
|
50230
|
+
# proc { |x| x.foo }
|
50231
|
+
# Proc.new { |x| x.foo }
|
50232
|
+
#
|
50233
|
+
# # good
|
50234
|
+
# lambda(&:foo)
|
50235
|
+
# proc(&:foo)
|
50236
|
+
# Proc.new(&:foo)
|
49935
50237
|
# @example
|
49936
50238
|
# # bad
|
49937
50239
|
# something.map { |s| s.upcase }
|
@@ -49940,7 +50242,7 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
|
|
49940
50242
|
# # good
|
49941
50243
|
# something.map(&:upcase)
|
49942
50244
|
#
|
49943
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50245
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140
|
49944
50246
|
class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
|
49945
50247
|
include ::RuboCop::Cop::CommentsHelp
|
49946
50248
|
include ::RuboCop::Cop::RangeHelp
|
@@ -49950,81 +50252,87 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
|
|
49950
50252
|
|
49951
50253
|
# @return [Boolean]
|
49952
50254
|
#
|
49953
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50255
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#189
|
49954
50256
|
def destructuring_block_argument?(argument_node); end
|
49955
50257
|
|
49956
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50258
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170
|
49957
50259
|
def on_block(node); end
|
49958
50260
|
|
49959
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50261
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#170
|
49960
50262
|
def on_numblock(node); end
|
49961
50263
|
|
49962
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50264
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
|
49963
50265
|
def proc_node?(param0 = T.unsafe(nil)); end
|
49964
50266
|
|
49965
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50267
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#158
|
49966
50268
|
def symbol_proc?(param0 = T.unsafe(nil)); end
|
49967
50269
|
|
49968
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50270
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155
|
49969
50271
|
def symbol_proc_receiver?(param0 = T.unsafe(nil)); end
|
49970
50272
|
|
49971
50273
|
private
|
49972
50274
|
|
49973
50275
|
# @return [Boolean]
|
49974
50276
|
#
|
49975
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50277
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#267
|
49976
50278
|
def allow_comments?; end
|
49977
50279
|
|
49978
50280
|
# @return [Boolean]
|
49979
50281
|
#
|
49980
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50282
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#263
|
49981
50283
|
def allow_if_method_has_argument?(send_node); end
|
49982
50284
|
|
49983
50285
|
# @return [Boolean]
|
49984
50286
|
#
|
49985
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50287
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204
|
49986
50288
|
def allowed_method_name?(name); end
|
49987
50289
|
|
49988
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50290
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#217
|
49989
50291
|
def autocorrect(corrector, node); end
|
49990
50292
|
|
49991
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50293
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#240
|
50294
|
+
def autocorrect_lambda_block(corrector, node); end
|
50295
|
+
|
50296
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#231
|
49992
50297
|
def autocorrect_with_args(corrector, node, args, method_name); end
|
49993
50298
|
|
49994
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50299
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#225
|
49995
50300
|
def autocorrect_without_args(corrector, node); end
|
49996
50301
|
|
49997
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50302
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#253
|
49998
50303
|
def begin_pos_for_replacement(node); end
|
49999
50304
|
|
50000
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50305
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#248
|
50001
50306
|
def block_range_with_space(node); end
|
50002
50307
|
|
50003
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50308
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208
|
50004
50309
|
def register_offense(node, method_name, block_method_name); end
|
50005
50310
|
|
50006
50311
|
# @return [Boolean]
|
50007
50312
|
#
|
50008
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50313
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200
|
50009
50314
|
def unsafe_array_usage?(node); end
|
50010
50315
|
|
50011
50316
|
# See: https://github.com/rubocop/rubocop/issues/10864
|
50012
50317
|
#
|
50013
50318
|
# @return [Boolean]
|
50014
50319
|
#
|
50015
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50320
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#196
|
50016
50321
|
def unsafe_hash_usage?(node); end
|
50017
50322
|
|
50018
50323
|
class << self
|
50019
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50324
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#165
|
50020
50325
|
def autocorrect_incompatible_with; end
|
50021
50326
|
end
|
50022
50327
|
end
|
50023
50328
|
|
50024
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50329
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#149
|
50330
|
+
RuboCop::Cop::Style::SymbolProc::LAMBDA_OR_PROC = T.let(T.unsafe(nil), Array)
|
50331
|
+
|
50332
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147
|
50025
50333
|
RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String)
|
50026
50334
|
|
50027
|
-
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#
|
50335
|
+
# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#148
|
50028
50336
|
RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array)
|
50029
50337
|
|
50030
50338
|
# Corrector to correct conditional assignment in ternary conditions.
|
@@ -52019,10 +52327,10 @@ class RuboCop::Cop::Team
|
|
52019
52327
|
# source://rubocop//lib/rubocop/cop/team.rb#207
|
52020
52328
|
def each_corrector(report); end
|
52021
52329
|
|
52022
|
-
# source://rubocop//lib/rubocop/cop/team.rb#
|
52330
|
+
# source://rubocop//lib/rubocop/cop/team.rb#259
|
52023
52331
|
def handle_error(error, location, cop); end
|
52024
52332
|
|
52025
|
-
# source://rubocop//lib/rubocop/cop/team.rb#
|
52333
|
+
# source://rubocop//lib/rubocop/cop/team.rb#251
|
52026
52334
|
def handle_warning(error, location); end
|
52027
52335
|
|
52028
52336
|
# @return [Commissioner::InvestigationReport]
|
@@ -54657,16 +54965,16 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
|
|
54657
54965
|
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#73
|
54658
54966
|
def command; end
|
54659
54967
|
|
54660
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54968
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#165
|
54661
54969
|
def cop_config_params(default_cfg, cfg); end
|
54662
54970
|
|
54663
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54971
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185
|
54664
54972
|
def default_config(cop_name); end
|
54665
54973
|
|
54666
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54974
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#229
|
54667
54975
|
def excludes(offending_files, cop_name, parent); end
|
54668
54976
|
|
54669
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54977
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#200
|
54670
54978
|
def filtered_config(cfg); end
|
54671
54979
|
|
54672
54980
|
# Returns true if the given arr include the given elm or if any of the
|
@@ -54674,38 +54982,38 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
|
|
54674
54982
|
#
|
54675
54983
|
# @return [Boolean]
|
54676
54984
|
#
|
54677
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54985
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#277
|
54678
54986
|
def include_or_match?(arr, elm); end
|
54679
54987
|
|
54680
54988
|
# @return [Boolean]
|
54681
54989
|
#
|
54682
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54990
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250
|
54683
54991
|
def merge_mode_for_exclude?(cfg); end
|
54684
54992
|
|
54685
54993
|
# @return [Boolean]
|
54686
54994
|
#
|
54687
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
54995
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#271
|
54688
54996
|
def no_exclude_limit?; end
|
54689
54997
|
|
54690
54998
|
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#102
|
54691
54999
|
def output_cop(cop_name, offense_count); end
|
54692
55000
|
|
54693
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55001
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#137
|
54694
55002
|
def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end
|
54695
55003
|
|
54696
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55004
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#189
|
54697
55005
|
def output_cop_config(output_buffer, cfg, cop_name); end
|
54698
55006
|
|
54699
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55007
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#172
|
54700
55008
|
def output_cop_param_comments(output_buffer, params, default_cfg); end
|
54701
55009
|
|
54702
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55010
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#219
|
54703
55011
|
def output_exclude_list(output_buffer, offending_files, cop_name); end
|
54704
55012
|
|
54705
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55013
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#254
|
54706
55014
|
def output_exclude_path(output_buffer, exclude_path, parent); end
|
54707
55015
|
|
54708
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55016
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#208
|
54709
55017
|
def output_offending_files(output_buffer, cfg, cop_name); end
|
54710
55018
|
|
54711
55019
|
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#96
|
@@ -54713,12 +55021,17 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
|
|
54713
55021
|
|
54714
55022
|
# @return [Boolean]
|
54715
55023
|
#
|
54716
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55024
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267
|
54717
55025
|
def safe_autocorrect?(config); end
|
54718
55026
|
|
54719
55027
|
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#116
|
54720
55028
|
def set_max(cfg, cop_name); end
|
54721
55029
|
|
55030
|
+
# @return [Boolean]
|
55031
|
+
#
|
55032
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#125
|
55033
|
+
def should_set_max?(cop_name); end
|
55034
|
+
|
54722
55035
|
# @return [Boolean]
|
54723
55036
|
#
|
54724
55037
|
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#65
|
@@ -54731,12 +55044,12 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
|
|
54731
55044
|
|
54732
55045
|
# @return [Boolean]
|
54733
55046
|
#
|
54734
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55047
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157
|
54735
55048
|
def supports_safe_autocorrect?(cop_class, default_cfg); end
|
54736
55049
|
|
54737
55050
|
# @return [Boolean]
|
54738
55051
|
#
|
54739
|
-
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#
|
55052
|
+
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161
|
54740
55053
|
def supports_unsafe_autocorrect?(cop_class, default_cfg); end
|
54741
55054
|
|
54742
55055
|
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#92
|
@@ -54809,43 +55122,46 @@ end
|
|
54809
55122
|
class RuboCop::Formatter::FormatterSet < ::Array
|
54810
55123
|
# @return [FormatterSet] a new instance of FormatterSet
|
54811
55124
|
#
|
54812
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55125
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#40
|
54813
55126
|
def initialize(options = T.unsafe(nil)); end
|
54814
55127
|
|
54815
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55128
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#56
|
54816
55129
|
def add_formatter(formatter_type, output_path = T.unsafe(nil)); end
|
54817
55130
|
|
54818
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55131
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#68
|
54819
55132
|
def close_output_files; end
|
54820
55133
|
|
54821
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55134
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#51
|
54822
55135
|
def file_finished(file, offenses); end
|
54823
55136
|
|
54824
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55137
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#45
|
54825
55138
|
def file_started(file, options); end
|
54826
55139
|
|
54827
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55140
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#35
|
54828
55141
|
def finished(*args); end
|
54829
55142
|
|
54830
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55143
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#35
|
54831
55144
|
def started(*args); end
|
54832
55145
|
|
54833
55146
|
private
|
54834
55147
|
|
54835
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55148
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#87
|
54836
55149
|
def builtin_formatter_class(specified_key); end
|
54837
55150
|
|
54838
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55151
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#105
|
54839
55152
|
def custom_formatter_class(specified_class_name); end
|
54840
55153
|
|
54841
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55154
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#76
|
54842
55155
|
def formatter_class(formatter_type); end
|
54843
55156
|
end
|
54844
55157
|
|
54845
55158
|
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#11
|
54846
55159
|
RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTERS_FOR_KEYS = T.let(T.unsafe(nil), Hash)
|
54847
55160
|
|
54848
|
-
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#
|
55161
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#30
|
55162
|
+
RuboCop::Formatter::FormatterSet::BUILTIN_FORMATTER_NAMES = T.let(T.unsafe(nil), Array)
|
55163
|
+
|
55164
|
+
# source://rubocop//lib/rubocop/formatter/formatter_set.rb#32
|
54849
55165
|
RuboCop::Formatter::FormatterSet::FORMATTER_APIS = T.let(T.unsafe(nil), Array)
|
54850
55166
|
|
54851
55167
|
# This formatter displays a progress bar and shows details of offenses as
|
@@ -55606,7 +55922,7 @@ module RuboCop::LSP
|
|
55606
55922
|
# @return [void]
|
55607
55923
|
#
|
55608
55924
|
# source://rubocop//lib/rubocop/lsp.rb#25
|
55609
|
-
def disable; end
|
55925
|
+
def disable(&block); end
|
55610
55926
|
|
55611
55927
|
# Enable LSP.
|
55612
55928
|
#
|
@@ -55628,7 +55944,7 @@ module RuboCop::LSP
|
|
55628
55944
|
# @return [void]
|
55629
55945
|
#
|
55630
55946
|
# source://rubocop//lib/rubocop/lsp.rb#25
|
55631
|
-
def disable; end
|
55947
|
+
def disable(&block); end
|
55632
55948
|
|
55633
55949
|
# Enable LSP.
|
55634
55950
|
#
|
@@ -55680,52 +55996,52 @@ class RuboCop::LSP::Routes
|
|
55680
55996
|
# source://rubocop//lib/rubocop/lsp/routes.rb#38
|
55681
55997
|
def handle_initialize(request); end
|
55682
55998
|
|
55683
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
55999
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#57
|
55684
56000
|
def handle_initialized(_request); end
|
55685
56001
|
|
55686
56002
|
# @api private
|
55687
56003
|
#
|
55688
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56004
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#167
|
55689
56005
|
def handle_method_missing(request); end
|
55690
56006
|
|
55691
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56007
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#64
|
55692
56008
|
def handle_shutdown(request); end
|
55693
56009
|
|
55694
56010
|
# @api private
|
55695
56011
|
#
|
55696
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56012
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#156
|
55697
56013
|
def handle_unsupported_method(request, method = T.unsafe(nil)); end
|
55698
56014
|
|
55699
56015
|
private
|
55700
56016
|
|
55701
56017
|
# @api private
|
55702
56018
|
#
|
55703
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56019
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#205
|
55704
56020
|
def diagnostic(file_uri, text); end
|
55705
56021
|
|
55706
56022
|
# @api private
|
55707
56023
|
#
|
55708
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56024
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#175
|
55709
56025
|
def extract_initialization_options_from(request); end
|
55710
56026
|
|
55711
56027
|
# @api private
|
55712
56028
|
#
|
55713
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56029
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#185
|
55714
56030
|
def format_file(file_uri, command: T.unsafe(nil)); end
|
55715
56031
|
|
55716
56032
|
# @api private
|
55717
56033
|
#
|
55718
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56034
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#219
|
55719
56035
|
def remove_file_protocol_from(uri); end
|
55720
56036
|
|
55721
56037
|
# @api private
|
55722
56038
|
#
|
55723
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56039
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#223
|
55724
56040
|
def to_diagnostic(offense); end
|
55725
56041
|
|
55726
56042
|
# @api private
|
55727
56043
|
#
|
55728
|
-
# source://rubocop//lib/rubocop/lsp/routes.rb#
|
56044
|
+
# source://rubocop//lib/rubocop/lsp/routes.rb#235
|
55729
56045
|
def to_range(location); end
|
55730
56046
|
|
55731
56047
|
class << self
|