From 794230b34e883556276b5320d1035655b903617a Mon Sep 17 00:00:00 2001 From: Emily Samp Date: Tue, 18 Jun 2024 09:02:05 -0500 Subject: [PATCH] Generate gem RBIs for `parser`, `rexml`, and `rubocop-rspec` --- ...{parser@3.3.2.0.rbi => parser@3.3.3.0.rbi} | 1719 ----------------- .../gems/{rexml@3.2.9.rbi => rexml@3.3.0.rbi} | 58 +- sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi | 1212 ------------ .../rbi/gems/rubocop-factory_bot@2.26.0.rbi | 928 --------- ...pec@2.31.0.rbi => rubocop-rspec@3.0.1.rbi} | 996 ++-------- .../rbi/gems/rubocop-rspec_rails@2.29.0.rbi | 911 --------- 6 files changed, 160 insertions(+), 5664 deletions(-) rename sorbet/rbi/gems/{parser@3.3.2.0.rbi => parser@3.3.3.0.rbi} (75%) rename sorbet/rbi/gems/{rexml@3.2.9.rbi => rexml@3.3.0.rbi} (99%) delete mode 100644 sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi delete mode 100644 sorbet/rbi/gems/rubocop-factory_bot@2.26.0.rbi rename sorbet/rbi/gems/{rubocop-rspec@2.31.0.rbi => rubocop-rspec@3.0.1.rbi} (88%) delete mode 100644 sorbet/rbi/gems/rubocop-rspec_rails@2.29.0.rbi diff --git a/sorbet/rbi/gems/parser@3.3.2.0.rbi b/sorbet/rbi/gems/parser@3.3.3.0.rbi similarity index 75% rename from sorbet/rbi/gems/parser@3.3.2.0.rbi rename to sorbet/rbi/gems/parser@3.3.3.0.rbi index c1a7f5c42..e5a2bb425 100644 --- a/sorbet/rbi/gems/parser@3.3.2.0.rbi +++ b/sorbet/rbi/gems/parser@3.3.3.0.rbi @@ -3314,1725 +3314,6 @@ end # source://parser//lib/parser/rewriter.rb#91 Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String) -# source://parser//lib/parser/ruby27.rb#14 -class Parser::Ruby27 < ::Parser::Base - # reduce 0 omitted - # - # source://parser//lib/parser/ruby27.rb#7908 - def _reduce_1(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7962 - def _reduce_10(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8538 - def _reduce_100(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8548 - def _reduce_101(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8554 - def _reduce_102(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8564 - def _reduce_103(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8571 - def _reduce_104(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8578 - def _reduce_105(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8584 - def _reduce_106(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8590 - def _reduce_107(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8596 - def _reduce_108(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8602 - def _reduce_109(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7968 - def _reduce_11(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8608 - def _reduce_110(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8614 - def _reduce_111(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8620 - def _reduce_112(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8627 - def _reduce_113(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8634 - def _reduce_114(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8640 - def _reduce_115(val, _values, result); end - - # reduce 116 omitted - # - # source://parser//lib/parser/ruby27.rb#8648 - def _reduce_117(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8654 - def _reduce_118(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8660 - def _reduce_119(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7985 - def _reduce_12(val, _values, result); end - - # reduce 124 omitted - # - # source://parser//lib/parser/ruby27.rb#8676 - def _reduce_125(val, _values, result); end - - # reduce 126 omitted - # - # source://parser//lib/parser/ruby27.rb#8684 - def _reduce_127(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8690 - def _reduce_128(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8696 - def _reduce_129(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7991 - def _reduce_13(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7997 - def _reduce_14(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8003 - def _reduce_15(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8009 - def _reduce_16(val, _values, result); end - - # reduce 17 omitted - # - # source://parser//lib/parser/ruby27.rb#8017 - def _reduce_18(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8023 - def _reduce_19(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7915 - def _reduce_2(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8029 - def _reduce_20(val, _values, result); end - - # reduce 200 omitted - # - # source://parser//lib/parser/ruby27.rb#8844 - def _reduce_201(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8850 - def _reduce_202(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8856 - def _reduce_203(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8865 - def _reduce_204(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8874 - def _reduce_205(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8883 - def _reduce_206(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8892 - def _reduce_207(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8900 - def _reduce_208(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8908 - def _reduce_209(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8035 - def _reduce_21(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8914 - def _reduce_210(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8920 - def _reduce_211(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8926 - def _reduce_212(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8932 - def _reduce_213(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8938 - def _reduce_214(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8944 - def _reduce_215(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8950 - def _reduce_216(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8956 - def _reduce_217(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8962 - def _reduce_218(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8968 - def _reduce_219(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8043 - def _reduce_22(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8974 - def _reduce_220(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8980 - def _reduce_221(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8986 - def _reduce_222(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8994 - def _reduce_223(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9000 - def _reduce_224(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9006 - def _reduce_225(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9012 - def _reduce_226(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9018 - def _reduce_227(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9024 - def _reduce_228(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8051 - def _reduce_23(val, _values, result); end - - # reduce 229 omitted - # - # source://parser//lib/parser/ruby27.rb#9032 - def _reduce_230(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9038 - def _reduce_231(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9044 - def _reduce_232(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9050 - def _reduce_233(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9056 - def _reduce_234(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9062 - def _reduce_235(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9068 - def _reduce_236(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9074 - def _reduce_237(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9080 - def _reduce_238(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9086 - def _reduce_239(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8057 - def _reduce_24(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9092 - def _reduce_240(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9098 - def _reduce_241(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9104 - def _reduce_242(val, _values, result); end - - # reduce 247 omitted - # - # source://parser//lib/parser/ruby27.rb#9121 - def _reduce_248(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9127 - def _reduce_249(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8063 - def _reduce_25(val, _values, result); end - - # reduce 252 omitted - # - # source://parser//lib/parser/ruby27.rb#9139 - def _reduce_253(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9145 - def _reduce_254(val, _values, result); end - - # reduce 255 omitted - # - # source://parser//lib/parser/ruby27.rb#9153 - def _reduce_256(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9163 - def _reduce_257(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9169 - def _reduce_258(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9179 - def _reduce_259(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8070 - def _reduce_26(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9189 - def _reduce_260(val, _values, result); end - - # reduce 261 omitted - # - # source://parser//lib/parser/ruby27.rb#9197 - def _reduce_262(val, _values, result); end - - # reduce 264 omitted - # - # source://parser//lib/parser/ruby27.rb#9207 - def _reduce_265(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9213 - def _reduce_266(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9219 - def _reduce_267(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9225 - def _reduce_268(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9231 - def _reduce_269(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8077 - def _reduce_27(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9238 - def _reduce_270(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9246 - def _reduce_271(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9252 - def _reduce_272(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9279 - def _reduce_273(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9300 - def _reduce_274(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9306 - def _reduce_275(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9312 - def _reduce_276(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9318 - def _reduce_277(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9324 - def _reduce_278(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9330 - def _reduce_279(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8083 - def _reduce_28(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9336 - def _reduce_280(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9342 - def _reduce_281(val, _values, result); end - - # reduce 282 omitted - # - # source://parser//lib/parser/ruby27.rb#9350 - def _reduce_283(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9356 - def _reduce_284(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9362 - def _reduce_285(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8089 - def _reduce_29(val, _values, result); end - - # reduce 295 omitted - # - # source://parser//lib/parser/ruby27.rb#9388 - def _reduce_296(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9394 - def _reduce_297(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9400 - def _reduce_298(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9408 - def _reduce_299(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7924 - def _reduce_3(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8099 - def _reduce_30(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9414 - def _reduce_300(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9420 - def _reduce_301(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9426 - def _reduce_302(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9432 - def _reduce_303(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9438 - def _reduce_304(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9444 - def _reduce_305(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9450 - def _reduce_306(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9456 - def _reduce_307(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9462 - def _reduce_308(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9468 - def _reduce_309(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9474 - def _reduce_310(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9480 - def _reduce_311(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9486 - def _reduce_312(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9493 - def _reduce_313(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9499 - def _reduce_314(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9505 - def _reduce_315(val, _values, result); end - - # reduce 316 omitted - # - # source://parser//lib/parser/ruby27.rb#9517 - def _reduce_317(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9525 - def _reduce_318(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9532 - def _reduce_319(val, _values, result); end - - # reduce 31 omitted - # - # source://parser//lib/parser/ruby27.rb#8107 - def _reduce_32(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9544 - def _reduce_320(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9553 - def _reduce_321(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9562 - def _reduce_322(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9568 - def _reduce_323(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9574 - def _reduce_324(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9584 - def _reduce_325(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9594 - def _reduce_326(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9604 - def _reduce_327(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9610 - def _reduce_328(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9617 - def _reduce_329(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8113 - def _reduce_33(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9634 - def _reduce_330(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9642 - def _reduce_331(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9654 - def _reduce_332(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9661 - def _reduce_333(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9676 - def _reduce_334(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9685 - def _reduce_335(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9696 - def _reduce_336(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9702 - def _reduce_337(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9711 - def _reduce_338(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9722 - def _reduce_339(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8120 - def _reduce_34(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9728 - def _reduce_340(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9734 - def _reduce_341(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9740 - def _reduce_342(val, _values, result); end - - # reduce 343 omitted - # - # source://parser//lib/parser/ruby27.rb#9748 - def _reduce_344(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9754 - def _reduce_345(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9760 - def _reduce_346(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9766 - def _reduce_347(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8131 - def _reduce_35(val, _values, result); end - - # reduce 349 omitted - # - # source://parser//lib/parser/ruby27.rb#9778 - def _reduce_350(val, _values, result); end - - # reduce 353 omitted - # - # source://parser//lib/parser/ruby27.rb#9790 - def _reduce_354(val, _values, result); end - - # reduce 355 omitted - # - # source://parser//lib/parser/ruby27.rb#9803 - def _reduce_356(val, _values, result); end - - # reduce 358 omitted - # - # source://parser//lib/parser/ruby27.rb#9813 - def _reduce_359(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9819 - def _reduce_360(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9825 - def _reduce_361(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9831 - def _reduce_362(val, _values, result); end - - # reduce 363 omitted - # - # source://parser//lib/parser/ruby27.rb#9839 - def _reduce_364(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9846 - def _reduce_365(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9854 - def _reduce_366(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9860 - def _reduce_367(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9866 - def _reduce_368(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9872 - def _reduce_369(val, _values, result); end - - # reduce 36 omitted - # - # source://parser//lib/parser/ruby27.rb#8139 - def _reduce_37(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9878 - def _reduce_370(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9884 - def _reduce_371(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9890 - def _reduce_372(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9896 - def _reduce_373(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9902 - def _reduce_374(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9908 - def _reduce_375(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9914 - def _reduce_376(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9920 - def _reduce_377(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9929 - def _reduce_378(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9939 - def _reduce_379(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8145 - def _reduce_38(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9947 - def _reduce_380(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9956 - def _reduce_381(val, _values, result); end - - # reduce 382 omitted - # - # source://parser//lib/parser/ruby27.rb#9966 - def _reduce_383(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9975 - def _reduce_384(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9985 - def _reduce_385(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#9993 - def _reduce_386(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10002 - def _reduce_387(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10009 - def _reduce_388(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10017 - def _reduce_389(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8151 - def _reduce_39(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10024 - def _reduce_390(val, _values, result); end - - # reduce 391 omitted - # - # source://parser//lib/parser/ruby27.rb#10034 - def _reduce_392(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10040 - def _reduce_393(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10046 - def _reduce_394(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10054 - def _reduce_395(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10062 - def _reduce_396(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10068 - def _reduce_397(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10074 - def _reduce_398(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10080 - def _reduce_399(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7930 - def _reduce_4(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8160 - def _reduce_40(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10086 - def _reduce_400(val, _values, result); end - - # reduce 401 omitted - # - # source://parser//lib/parser/ruby27.rb#10095 - def _reduce_402(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10102 - def _reduce_403(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10108 - def _reduce_404(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10119 - def _reduce_405(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10126 - def _reduce_406(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10135 - def _reduce_407(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10142 - def _reduce_408(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10149 - def _reduce_409(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8169 - def _reduce_41(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10156 - def _reduce_410(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10163 - def _reduce_411(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10170 - def _reduce_412(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10177 - def _reduce_413(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10185 - def _reduce_414(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10193 - def _reduce_415(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10205 - def _reduce_416(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10216 - def _reduce_417(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10224 - def _reduce_418(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10232 - def _reduce_419(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8178 - def _reduce_42(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10240 - def _reduce_420(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10246 - def _reduce_421(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10254 - def _reduce_422(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10262 - def _reduce_423(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10270 - def _reduce_424(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10276 - def _reduce_425(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10282 - def _reduce_426(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10289 - def _reduce_427(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10296 - def _reduce_428(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10303 - def _reduce_429(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8186 - def _reduce_43(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10310 - def _reduce_430(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10317 - def _reduce_431(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10327 - def _reduce_432(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10334 - def _reduce_433(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10340 - def _reduce_434(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10351 - def _reduce_435(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10358 - def _reduce_436(val, _values, result); end - - # reduce 437 omitted - # - # source://parser//lib/parser/ruby27.rb#10366 - def _reduce_438(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10378 - def _reduce_439(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8195 - def _reduce_44(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10386 - def _reduce_440(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10393 - def _reduce_441(val, _values, result); end - - # reduce 442 omitted - # - # source://parser//lib/parser/ruby27.rb#10401 - def _reduce_443(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10407 - def _reduce_444(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10413 - def _reduce_445(val, _values, result); end - - # reduce 446 omitted - # - # source://parser//lib/parser/ruby27.rb#10421 - def _reduce_447(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10431 - def _reduce_448(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10437 - def _reduce_449(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10443 - def _reduce_450(val, _values, result); end - - # reduce 451 omitted - # - # source://parser//lib/parser/ruby27.rb#10451 - def _reduce_452(val, _values, result); end - - # reduce 453 omitted - # - # source://parser//lib/parser/ruby27.rb#10459 - def _reduce_454(val, _values, result); end - - # reduce 455 omitted - # - # source://parser//lib/parser/ruby27.rb#10467 - def _reduce_456(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10474 - def _reduce_457(val, _values, result); end - - # reduce 458 omitted - # - # source://parser//lib/parser/ruby27.rb#10483 - def _reduce_459(val, _values, result); end - - # reduce 45 omitted - # - # source://parser//lib/parser/ruby27.rb#8203 - def _reduce_46(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10491 - def _reduce_460(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10499 - def _reduce_461(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10506 - def _reduce_462(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10514 - def _reduce_463(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10522 - def _reduce_464(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10529 - def _reduce_465(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10535 - def _reduce_466(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10542 - def _reduce_467(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10548 - def _reduce_468(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10556 - def _reduce_469(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10564 - def _reduce_470(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10570 - def _reduce_471(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10576 - def _reduce_472(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10583 - def _reduce_473(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10589 - def _reduce_474(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10595 - def _reduce_475(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10601 - def _reduce_476(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10608 - def _reduce_477(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10615 - def _reduce_478(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10621 - def _reduce_479(val, _values, result); end - - # reduce 480 omitted - # - # source://parser//lib/parser/ruby27.rb#10629 - def _reduce_481(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10639 - def _reduce_482(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10649 - def _reduce_483(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10656 - def _reduce_484(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10663 - def _reduce_485(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10670 - def _reduce_486(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10677 - def _reduce_487(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10683 - def _reduce_488(val, _values, result); end - - # reduce 48 omitted - # - # source://parser//lib/parser/ruby27.rb#8217 - def _reduce_49(val, _values, result); end - - # reduce 489 omitted - # - # source://parser//lib/parser/ruby27.rb#10691 - def _reduce_490(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10697 - def _reduce_491(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10703 - def _reduce_492(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10709 - def _reduce_493(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10715 - def _reduce_494(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10721 - def _reduce_495(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10727 - def _reduce_496(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10733 - def _reduce_497(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10739 - def _reduce_498(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10745 - def _reduce_499(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7936 - def _reduce_5(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8223 - def _reduce_50(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10751 - def _reduce_500(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10757 - def _reduce_501(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10763 - def _reduce_502(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10769 - def _reduce_503(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10775 - def _reduce_504(val, _values, result); end - - # reduce 505 omitted - # - # source://parser//lib/parser/ruby27.rb#10783 - def _reduce_506(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10789 - def _reduce_507(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10795 - def _reduce_508(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10801 - def _reduce_509(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8229 - def _reduce_51(val, _values, result); end - - # reduce 512 omitted - # - # source://parser//lib/parser/ruby27.rb#10813 - def _reduce_513(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10819 - def _reduce_514(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8235 - def _reduce_52(val, _values, result); end - - # reduce 522 omitted - # - # source://parser//lib/parser/ruby27.rb#10841 - def _reduce_523(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10847 - def _reduce_524(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10854 - def _reduce_525(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10866 - def _reduce_526(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10872 - def _reduce_527(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10884 - def _reduce_528(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10890 - def _reduce_529(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8241 - def _reduce_53(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10896 - def _reduce_530(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10902 - def _reduce_531(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10917 - def _reduce_532(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10923 - def _reduce_533(val, _values, result); end - - # reduce 535 omitted - # - # source://parser//lib/parser/ruby27.rb#10933 - def _reduce_536(val, _values, result); end - - # reduce 537 omitted - # - # source://parser//lib/parser/ruby27.rb#10941 - def _reduce_538(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8252 - def _reduce_54(val, _values, result); end - - # reduce 541 omitted - # - # source://parser//lib/parser/ruby27.rb#10953 - def _reduce_542(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10959 - def _reduce_543(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10965 - def _reduce_544(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10971 - def _reduce_545(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10978 - def _reduce_546(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10985 - def _reduce_547(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10991 - def _reduce_548(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#10998 - def _reduce_549(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11005 - def _reduce_550(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11011 - def _reduce_551(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11017 - def _reduce_552(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11023 - def _reduce_553(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11029 - def _reduce_554(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11035 - def _reduce_555(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11041 - def _reduce_556(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11047 - def _reduce_557(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11053 - def _reduce_558(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11059 - def _reduce_559(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11065 - def _reduce_560(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11071 - def _reduce_561(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11077 - def _reduce_562(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11083 - def _reduce_563(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11089 - def _reduce_564(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11095 - def _reduce_565(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11101 - def _reduce_566(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11107 - def _reduce_567(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11113 - def _reduce_568(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11119 - def _reduce_569(val, _values, result); end - - # reduce 56 omitted - # - # source://parser//lib/parser/ruby27.rb#8268 - def _reduce_57(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11125 - def _reduce_570(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11131 - def _reduce_571(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11137 - def _reduce_572(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11144 - def _reduce_573(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11153 - def _reduce_574(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11159 - def _reduce_575(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11165 - def _reduce_576(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8274 - def _reduce_58(val, _values, result); end - - # reduce 579 omitted - # - # source://parser//lib/parser/ruby27.rb#11177 - def _reduce_580(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11184 - def _reduce_581(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11191 - def _reduce_582(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11197 - def _reduce_583(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11208 - def _reduce_584(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11215 - def _reduce_585(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11222 - def _reduce_586(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11229 - def _reduce_587(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11236 - def _reduce_588(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11242 - def _reduce_589(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11248 - def _reduce_590(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11254 - def _reduce_591(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11260 - def _reduce_592(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11266 - def _reduce_593(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11272 - def _reduce_594(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11278 - def _reduce_595(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11284 - def _reduce_596(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11290 - def _reduce_597(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11296 - def _reduce_598(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11302 - def _reduce_599(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7942 - def _reduce_6(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11308 - def _reduce_600(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11314 - def _reduce_601(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11320 - def _reduce_602(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11326 - def _reduce_603(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11332 - def _reduce_604(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11338 - def _reduce_605(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11344 - def _reduce_606(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11350 - def _reduce_607(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11356 - def _reduce_608(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11362 - def _reduce_609(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11370 - def _reduce_610(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11378 - def _reduce_611(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11387 - def _reduce_612(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11394 - def _reduce_613(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11401 - def _reduce_614(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11407 - def _reduce_615(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11413 - def _reduce_616(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11419 - def _reduce_617(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11425 - def _reduce_618(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11431 - def _reduce_619(val, _values, result); end - - # reduce 61 omitted - # - # source://parser//lib/parser/ruby27.rb#8287 - def _reduce_62(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11437 - def _reduce_620(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11443 - def _reduce_621(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11452 - def _reduce_622(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11462 - def _reduce_623(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11470 - def _reduce_624(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11479 - def _reduce_625(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11487 - def _reduce_626(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11496 - def _reduce_627(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11503 - def _reduce_628(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11511 - def _reduce_629(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8294 - def _reduce_63(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11520 - def _reduce_630(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11527 - def _reduce_631(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11535 - def _reduce_632(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11542 - def _reduce_633(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11550 - def _reduce_634(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11556 - def _reduce_635(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11562 - def _reduce_636(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11568 - def _reduce_637(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11574 - def _reduce_638(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11580 - def _reduce_639(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8301 - def _reduce_64(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11586 - def _reduce_640(val, _values, result); end - - # reduce 641 omitted - # - # source://parser//lib/parser/ruby27.rb#11594 - def _reduce_642(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11604 - def _reduce_643(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11611 - def _reduce_644(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11618 - def _reduce_645(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11624 - def _reduce_646(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11630 - def _reduce_647(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11636 - def _reduce_648(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11650 - def _reduce_649(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11657 - def _reduce_650(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11664 - def _reduce_651(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11670 - def _reduce_652(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11676 - def _reduce_653(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11682 - def _reduce_654(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11688 - def _reduce_655(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11694 - def _reduce_656(val, _values, result); end - - # reduce 658 omitted - # - # source://parser//lib/parser/ruby27.rb#11704 - def _reduce_659(val, _values, result); end - - # reduce 65 omitted - # - # source://parser//lib/parser/ruby27.rb#8310 - def _reduce_66(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11710 - def _reduce_660(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11718 - def _reduce_661(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11724 - def _reduce_662(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11731 - def _reduce_663(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11738 - def _reduce_664(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11744 - def _reduce_665(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11750 - def _reduce_666(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11756 - def _reduce_667(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8317 - def _reduce_67(val, _values, result); end - - # reduce 669 omitted - # - # source://parser//lib/parser/ruby27.rb#11766 - def _reduce_670(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11774 - def _reduce_671(val, _values, result); end - - # reduce 673 omitted - # - # source://parser//lib/parser/ruby27.rb#11784 - def _reduce_674(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11792 - def _reduce_675(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11798 - def _reduce_676(val, _values, result); end - - # reduce 677 omitted - # - # source://parser//lib/parser/ruby27.rb#11806 - def _reduce_678(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11812 - def _reduce_679(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8328 - def _reduce_68(val, _values, result); end - - # reduce 680 omitted - # - # source://parser//lib/parser/ruby27.rb#11820 - def _reduce_681(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11826 - def _reduce_682(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11832 - def _reduce_683(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11838 - def _reduce_684(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11844 - def _reduce_685(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11850 - def _reduce_686(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8335 - def _reduce_69(val, _values, result); end - - # reduce 698 omitted - # - # source://parser//lib/parser/ruby27.rb#11880 - def _reduce_699(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#7948 - def _reduce_7(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8346 - def _reduce_70(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11886 - def _reduce_700(val, _values, result); end - - # reduce 704 omitted - # - # source://parser//lib/parser/ruby27.rb#11900 - def _reduce_705(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11906 - def _reduce_706(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11912 - def _reduce_707(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8353 - def _reduce_71(val, _values, result); end - - # reduce 710 omitted - # - # source://parser//lib/parser/ruby27.rb#11924 - def _reduce_711(val, _values, result); end - - # reduce 714 omitted - # - # source://parser//lib/parser/ruby27.rb#11936 - def _reduce_715(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8364 - def _reduce_72(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8371 - def _reduce_73(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8378 - def _reduce_74(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8385 - def _reduce_75(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8392 - def _reduce_76(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8399 - def _reduce_77(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8405 - def _reduce_78(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8411 - def _reduce_79(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8417 - def _reduce_80(val, _values, result); end - - # reduce 81 omitted - # - # source://parser//lib/parser/ruby27.rb#8425 - def _reduce_82(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8432 - def _reduce_83(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8439 - def _reduce_84(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8447 - def _reduce_85(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8454 - def _reduce_86(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8462 - def _reduce_87(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8468 - def _reduce_88(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8475 - def _reduce_89(val, _values, result); end - - # reduce 8 omitted - # - # source://parser//lib/parser/ruby27.rb#7956 - def _reduce_9(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8481 - def _reduce_90(val, _values, result); end - - # reduce 91 omitted - # - # source://parser//lib/parser/ruby27.rb#8490 - def _reduce_92(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8496 - def _reduce_93(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8502 - def _reduce_94(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8508 - def _reduce_95(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8514 - def _reduce_96(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8520 - def _reduce_97(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8526 - def _reduce_98(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#8532 - def _reduce_99(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#11942 - def _reduce_none(val, _values, result); end - - # source://parser//lib/parser/ruby27.rb#21 - def default_encoding; end - - # source://parser//lib/parser/ruby27.rb#32 - def local_pop; end - - # source://parser//lib/parser/ruby27.rb#25 - def local_push; end - - # source://parser//lib/parser/ruby27.rb#39 - def try_declare_numparam(node); end - - # source://parser//lib/parser/ruby27.rb#17 - def version; end -end - -# source://parser//lib/parser/ruby27.rb#7507 -Parser::Ruby27::Racc_arg = T.let(T.unsafe(nil), Array) - -# source://parser//lib/parser/ruby27.rb#7902 -Parser::Ruby27::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass) - -# source://parser//lib/parser/ruby27.rb#7524 -Parser::Ruby27::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) - # @api public # # source://parser//lib/parser.rb#30 diff --git a/sorbet/rbi/gems/rexml@3.2.9.rbi b/sorbet/rbi/gems/rexml@3.3.0.rbi similarity index 99% rename from sorbet/rbi/gems/rexml@3.2.9.rbi rename to sorbet/rbi/gems/rexml@3.3.0.rbi index a19e3ee47..b4ae9e087 100644 --- a/sorbet/rbi/gems/rexml@3.2.9.rbi +++ b/sorbet/rbi/gems/rexml@3.3.0.rbi @@ -3454,47 +3454,47 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml//lib/rexml/source.rb#156 +# source://rexml//lib/rexml/source.rb#176 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # # @return [IOSource] a new instance of IOSource # - # source://rexml//lib/rexml/source.rb#160 + # source://rexml//lib/rexml/source.rb#180 def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#238 + # source://rexml//lib/rexml/source.rb#258 def current_line; end # @return [Boolean] # - # source://rexml//lib/rexml/source.rb#233 + # source://rexml//lib/rexml/source.rb#253 def empty?; end - # source://rexml//lib/rexml/source.rb#210 + # source://rexml//lib/rexml/source.rb#230 def ensure_buffer; end # Note: When specifying a string for 'pattern', it must not include '>' except in the following formats: # - ">" # - "XXX>" (X is any string excluding '>') # - # source://rexml//lib/rexml/source.rb#217 + # source://rexml//lib/rexml/source.rb#237 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#181 + # source://rexml//lib/rexml/source.rb#201 def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#192 + # source://rexml//lib/rexml/source.rb#212 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#280 + # source://rexml//lib/rexml/source.rb#300 def encoding_updated; end - # source://rexml//lib/rexml/source.rb#260 + # source://rexml//lib/rexml/source.rb#280 def readline(term = T.unsafe(nil)); end end @@ -4324,7 +4324,7 @@ end # A Source can be searched for patterns, and wraps buffers and other # objects and provides consumption of text # -# source://rexml//lib/rexml/source.rb#31 +# source://rexml//lib/rexml/source.rb#51 class REXML::Source include ::REXML::Encoding include ::REXML::Source::Private @@ -4336,74 +4336,74 @@ class REXML::Source # @param encoding if non-null, sets the encoding of the source to this # @return [Source] a new instance of Source # - # source://rexml//lib/rexml/source.rb#51 + # source://rexml//lib/rexml/source.rb#71 def initialize(arg, encoding = T.unsafe(nil)); end # The current buffer (what we're going to read next) # - # source://rexml//lib/rexml/source.rb#63 + # source://rexml//lib/rexml/source.rb#83 def buffer; end - # source://rexml//lib/rexml/source.rb#67 + # source://rexml//lib/rexml/source.rb#87 def buffer_encoding=(encoding); end # @return the current line in the source # - # source://rexml//lib/rexml/source.rb#116 + # source://rexml//lib/rexml/source.rb#136 def current_line; end # @return [Boolean] true if the Source is exhausted # - # source://rexml//lib/rexml/source.rb#111 + # source://rexml//lib/rexml/source.rb#131 def empty?; end # Returns the value of attribute encoding. # - # source://rexml//lib/rexml/source.rb#35 + # source://rexml//lib/rexml/source.rb#55 def encoding; end # Inherited from Encoding # Overridden to support optimized en/decoding # - # source://rexml//lib/rexml/source.rb#73 + # source://rexml//lib/rexml/source.rb#93 def encoding=(enc); end - # source://rexml//lib/rexml/source.rb#91 + # source://rexml//lib/rexml/source.rb#111 def ensure_buffer; end # The line number of the last consumed text # - # source://rexml//lib/rexml/source.rb#34 + # source://rexml//lib/rexml/source.rb#54 def line; end - # source://rexml//lib/rexml/source.rb#94 + # source://rexml//lib/rexml/source.rb#114 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#102 + # source://rexml//lib/rexml/source.rb#122 def position; end - # source://rexml//lib/rexml/source.rb#106 + # source://rexml//lib/rexml/source.rb#126 def position=(pos); end - # source://rexml//lib/rexml/source.rb#78 + # source://rexml//lib/rexml/source.rb#98 def read(term = T.unsafe(nil)); end - # source://rexml//lib/rexml/source.rb#81 + # source://rexml//lib/rexml/source.rb#101 def read_until(term); end private - # source://rexml//lib/rexml/source.rb#125 + # source://rexml//lib/rexml/source.rb#145 def detect_encoding; end - # source://rexml//lib/rexml/source.rb#143 + # source://rexml//lib/rexml/source.rb#163 def encoding_updated; end end -# source://rexml//lib/rexml/source.rb#37 +# source://rexml//lib/rexml/source.rb#57 module REXML::Source::Private; end -# source://rexml//lib/rexml/source.rb#38 +# source://rexml//lib/rexml/source.rb#58 REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash) # Represents text nodes in an XML document diff --git a/sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi b/sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi deleted file mode 100644 index b142f2899..000000000 --- a/sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi +++ /dev/null @@ -1,1212 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rubocop-capybara` gem. -# Please instead update this file by running `bin/tapioca gem rubocop-capybara`. - - -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#3 -module RuboCop; end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#4 -module RuboCop::Cop; end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#5 -module RuboCop::Cop::Capybara; end - -# Help methods for capybara. -# -# @api private -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#8 -module RuboCop::Cop::Capybara::CapybaraHelp - private - - # @api private - # @example - # common_attributes?('a[focused]') # => true - # common_attributes?('button[focused][visible]') # => true - # common_attributes?('table[id=some-id]') # => true - # common_attributes?('h1[invalid]') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#61 - def common_attributes?(selector); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param option [Symbol] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#125 - def include_option?(node, option); end - - # @api private - # @example - # replaceable_attributes?('table[id=some-id]') # => true - # replaceable_attributes?('a[focused]') # => false - # @param attrs [Array] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#70 - def replaceable_attributes?(attrs); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param element [String] - # @param attrs [Array] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#108 - def replaceable_element?(node, element, attrs); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param locator [String] - # @param element [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#45 - def replaceable_option?(node, locator, element); end - - # @api private - # @param pseudo_class [String] - # @param locator [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#85 - def replaceable_pseudo_class?(pseudo_class, locator); end - - # @api private - # @param locator [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#96 - def replaceable_pseudo_class_not?(locator); end - - # @api private - # @param locator [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#76 - def replaceable_pseudo_classes?(locator); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param attrs [Array] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#118 - def replaceable_to_link?(node, attrs); end - - class << self - # @api private - # @example - # common_attributes?('a[focused]') # => true - # common_attributes?('button[focused][visible]') # => true - # common_attributes?('table[id=some-id]') # => true - # common_attributes?('h1[invalid]') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#61 - def common_attributes?(selector); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param option [Symbol] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#125 - def include_option?(node, option); end - - # @api private - # @example - # replaceable_attributes?('table[id=some-id]') # => true - # replaceable_attributes?('a[focused]') # => false - # @param attrs [Array] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#70 - def replaceable_attributes?(attrs); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param element [String] - # @param attrs [Array] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#108 - def replaceable_element?(node, element, attrs); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param locator [String] - # @param element [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#45 - def replaceable_option?(node, locator, element); end - - # @api private - # @param pseudo_class [String] - # @param locator [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#85 - def replaceable_pseudo_class?(pseudo_class, locator); end - - # @api private - # @param locator [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#96 - def replaceable_pseudo_class_not?(locator); end - - # @api private - # @param locator [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#76 - def replaceable_pseudo_classes?(locator); end - - # @api private - # @param node [RuboCop::AST::SendNode] - # @param attrs [Array] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#118 - def replaceable_to_link?(node, attrs); end - end -end - -# @api private -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#9 -RuboCop::Cop::Capybara::CapybaraHelp::COMMON_OPTIONS = T.let(T.unsafe(nil), Array) - -# @api private -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#12 -RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_OPTIONS = T.let(T.unsafe(nil), Hash) - -# @api private -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/capybara_help.rb#35 -RuboCop::Cop::Capybara::CapybaraHelp::SPECIFIC_PSEUDO_CLASSES = T.let(T.unsafe(nil), Array) - -# Checks for methods of button or link clicks. -# -# By default, prefer to use `click_link_or_button` or `click_on`. -# These methods offer a weaker coupling between the test and HTML, -# allowing for a more faithful reflection of how the user behaves. -# -# You can set `EnforcedStyle: strict` to prefer the use of -# `click_link` and `click_button`, but this is a deprecated setting. -# -# @example EnforcedStyle: link_or_button (default) -# # bad -# click_link('foo') -# click_button('foo') -# -# # good -# click_link_or_button('foo') -# click_on('foo') -# @example EnforcedStyle: strict -# # bad -# click_link_or_button('foo') -# click_on('foo') -# -# # good -# click_link('foo') -# click_button('foo') -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#33 -class RuboCop::Cop::Capybara::ClickLinkOrButtonStyle < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#44 - def on_send(node); end - - private - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#69 - def link_or_button_method?(node); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#52 - def offense?(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#57 - def offense_message(node); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#65 - def strict_method?(node); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#41 -RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::CLICK_LINK_OR_BUTTON = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#38 -RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::MSG_CLICK_LINK_OR_BUTTON = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#36 -RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::MSG_STRICT = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#42 -RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/click_link_or_button_style.rb#40 -RuboCop::Cop::Capybara::ClickLinkOrButtonStyle::STRICT_METHODS = T.let(T.unsafe(nil), Array) - -# Css selector parser. -# -# @api private -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#8 -class RuboCop::Cop::Capybara::CssAttributesParser - # @api private - # @return [CssAttributesParser] a new instance of CssAttributesParser - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#9 - def initialize(selector); end - - # @api private - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#18 - def parse; end - - private - - # @api private - # @example - # normalize_value('true') # => true - # normalize_value('false') # => false - # normalize_value(nil) # => nil - # normalize_value("foo") # => "'foo'" - # @param value [String] - # @return [Boolean, String] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#61 - def normalize_value(value); end - - # @api private - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#42 - def on_bracket_end; end - - # @api private - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_attributes_parser.rb#33 - def on_bracket_start; end -end - -# Helps parsing css selector. -# -# @api private -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#8 -module RuboCop::Cop::Capybara::CssSelector - private - - # @api private - # @example - # attribute?('[attribute]') # => true - # attribute?('attribute') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#48 - def attribute?(selector); end - - # @api private - # @example - # attributes('a[foo-bar_baz]') # => {"foo-bar_baz=>nil} - # attributes('button[foo][bar=baz]') # => {"foo"=>nil, "bar"=>"'baz'"} - # attributes('table[foo=bar]') # => {"foo"=>"'bar'"} - # attributes('[foo="bar[baz][qux]"]') # => {"foo"=>"'bar[baz][qux]'"} - # @param selector [String] - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#59 - def attributes(selector); end - - # @api private - # @example - # classes('#some-id') # => [] - # classes('.some-cls') # => ['some-cls'] - # classes('#some-id.some-cls') # => ['some-cls'] - # classes('#some-id.cls1.cls2') # => ['cls1', 'cls2'] - # @param selector [String] - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#39 - def classes(selector); end - - # @api private - # @example - # id('#some-id') # => some-id - # id('.some-cls') # => nil - # id('#some-id.cls') # => some-id - # @param selector [String] - # @return [String] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#17 - def id(selector); end - - # @api private - # @example - # id?('#some-id') # => true - # id?('.some-cls') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#28 - def id?(selector); end - - # @api private - # @example - # multiple_selectors?('a.cls b#id') # => true - # multiple_selectors?('a.cls') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#82 - def multiple_selectors?(selector); end - - # @api private - # @example - # pseudo_classes('button:not([disabled])') # => ['not()'] - # pseudo_classes('a:enabled:not([valid])') # => ['enabled', 'not()'] - # @param selector [String] - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#68 - def pseudo_classes(selector); end - - class << self - # @api private - # @example - # attribute?('[attribute]') # => true - # attribute?('attribute') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#48 - def attribute?(selector); end - - # @api private - # @example - # attributes('a[foo-bar_baz]') # => {"foo-bar_baz=>nil} - # attributes('button[foo][bar=baz]') # => {"foo"=>nil, "bar"=>"'baz'"} - # attributes('table[foo=bar]') # => {"foo"=>"'bar'"} - # attributes('[foo="bar[baz][qux]"]') # => {"foo"=>"'bar[baz][qux]'"} - # @param selector [String] - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#59 - def attributes(selector); end - - # @api private - # @example - # classes('#some-id') # => [] - # classes('.some-cls') # => ['some-cls'] - # classes('#some-id.some-cls') # => ['some-cls'] - # classes('#some-id.cls1.cls2') # => ['cls1', 'cls2'] - # @param selector [String] - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#39 - def classes(selector); end - - # @api private - # @example - # id('#some-id') # => some-id - # id('.some-cls') # => nil - # id('#some-id.cls') # => some-id - # @param selector [String] - # @return [String] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#17 - def id(selector); end - - # @api private - # @example - # id?('#some-id') # => true - # id?('.some-cls') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#28 - def id?(selector); end - - # @api private - # @example - # multiple_selectors?('a.cls b#id') # => true - # multiple_selectors?('a.cls') # => false - # @param selector [String] - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#82 - def multiple_selectors?(selector); end - - # @api private - # @example - # pseudo_classes('button:not([disabled])') # => ['not()'] - # pseudo_classes('a:enabled:not([valid])') # => ['enabled', 'not()'] - # @param selector [String] - # @return [Array] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/mixin/css_selector.rb#68 - def pseudo_classes(selector); end - end -end - -# Checks that no expectations are set on Capybara's `current_path`. -# -# The -# https://www.rubydoc.info/github/teamcapybara/capybara/master/Capybara/RSpecMatchers#have_current_path-instance_method[`have_current_path` matcher] -# should be used on `page` to set expectations on Capybara's -# current path, since it uses -# https://github.com/teamcapybara/capybara/blob/master/README.md#asynchronous-javascript-ajax-and-friends[Capybara's waiting functionality] -# which ensures that preceding actions (like `click_link`) have -# completed. -# -# This cop does not support autocorrection in some cases. -# -# @example -# # bad -# expect(current_path).to eq('/callback') -# expect(page.current_path).to eq('/callback') -# -# # good -# expect(page).to have_current_path('/callback', ignore_query: true) -# -# # bad (does not support autocorrection when `match` with a variable) -# expect(page).to match(variable) -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#29 -class RuboCop::Cop::Capybara::CurrentPathExpectation < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - extend ::RuboCop::Cop::AutoCorrector - - # Supported matchers: eq(...) / match(/regexp/) / match('regexp') - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#46 - def as_is_matcher(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#40 - def expectation_set_on_current_path(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#63 - def on_send(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#53 - def regexp_node_matcher(param0 = T.unsafe(nil)); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#113 - def add_argument_parentheses(corrector, arg_node); end - - # `have_current_path` with no options will include the querystring - # while `page.current_path` does not. - # This ensures the option `ignore_query: true` is added - # except when `match` matcher. - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#131 - def add_ignore_query_options(corrector, node, matcher_node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#75 - def autocorrect(corrector, node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#99 - def convert_regexp_node_to_literal(corrector, matcher_node, regexp_node); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#123 - def method_call_with_no_parentheses?(arg_node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#105 - def regexp_node_to_regexp_expr(regexp_node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#86 - def rewrite_expectation(corrector, node, to_symbol, matcher_node); end - - class << self - # source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#59 - def autocorrect_incompatible_with; end - end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#33 -RuboCop::Cop::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/current_path_expectation.rb#37 -RuboCop::Cop::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Checks for usage of deprecated style methods. -# -# @example when using `assert_style` -# # bad -# page.find(:css, '#first').assert_style(display: 'block') -# -# # good -# page.find(:css, '#first').assert_matches_style(display: 'block') -# @example when using `has_style?` -# # bad -# expect(page.find(:css, 'first') -# .has_style?(display: 'block')).to be true -# -# # good -# expect(page.find(:css, 'first') -# .matches_style?(display: 'block')).to be true -# @example when using `have_style` -# # bad -# expect(page).to have_style(display: 'block') -# -# # good -# expect(page).to match_style(display: 'block') -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/match_style.rb#31 -class RuboCop::Cop::Capybara::MatchStyle < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-capybara//lib/rubocop/cop/capybara/match_style.rb#42 - def on_send(node); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/match_style.rb#52 - def message(node); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/match_style.rb#34 -RuboCop::Cop::Capybara::MatchStyle::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/match_style.rb#36 -RuboCop::Cop::Capybara::MatchStyle::PREFERRED_METHOD = T.let(T.unsafe(nil), Hash) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/match_style.rb#35 -RuboCop::Cop::Capybara::MatchStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Enforces use of `have_no_*` or `not_to` for negated expectations. -# -# @example EnforcedStyle: have_no (default) -# # bad -# expect(page).not_to have_selector 'a' -# expect(page).not_to have_css('a') -# -# # good -# expect(page).to have_no_selector 'a' -# expect(page).to have_no_css('a') -# @example EnforcedStyle: not_to -# # bad -# expect(page).to have_no_selector 'a' -# expect(page).to have_no_css('a') -# -# # good -# expect(page).not_to have_selector 'a' -# expect(page).not_to have_css('a') -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#26 -class RuboCop::Cop::Capybara::NegationMatcher < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#50 - def have_no?(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#44 - def not_to?(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#55 - def on_send(node); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#79 - def message(matcher); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#69 - def offense?(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#75 - def offense_range(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#94 - def replaced_matcher(matcher); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#85 - def replaced_runner; end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#31 -RuboCop::Cop::Capybara::NegationMatcher::CAPYBARA_MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#30 -RuboCop::Cop::Capybara::NegationMatcher::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#38 -RuboCop::Cop::Capybara::NegationMatcher::NEGATIVE_MATCHERS = T.let(T.unsafe(nil), Set) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#36 -RuboCop::Cop::Capybara::NegationMatcher::POSITIVE_MATCHERS = T.let(T.unsafe(nil), Set) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/negation_matcher.rb#41 -RuboCop::Cop::Capybara::NegationMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#6 -module RuboCop::Cop::Capybara::RSpec; end - -# A helper for `explicit` style -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#108 -module RuboCop::Cop::Capybara::RSpec::ExplicitHelper - extend ::RuboCop::AST::NodePattern::Macros - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#138 - def predicate_matcher?(param0 = T.unsafe(nil)); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#124 - def allowed_explicit_matchers; end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#128 - def check_explicit(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#162 - def corrector_explicit(corrector, to_node, actual, matcher); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#156 - def message_explicit(matcher); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#169 - def move_predicate(corrector, actual, matcher); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#149 - def predicate_matcher_name?(name); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#180 - def replacement_matcher(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#176 - def to_predicate_method(matcher); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#113 -RuboCop::Cop::Capybara::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#118 -RuboCop::Cop::Capybara::RSpec::ExplicitHelper::INFLECTED_MATCHER = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#111 -RuboCop::Cop::Capybara::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) - -# Use `have_css` or `have_xpath` instead of `have_selector`. -# -# @example -# # bad -# expect(foo).to have_selector(:css, 'bar') -# -# # good -# expect(foo).to have_css('bar') -# -# # bad -# expect(foo).to have_selector(:xpath, 'bar') -# -# # good -# expect(foo).to have_xpath('bar') -# @example DefaultSelector: css (default) -# # bad -# expect(foo).to have_selector('bar') -# -# # good -# expect(foo).to have_css('bar') -# @example DefaultSelector: xpath -# # bad -# expect(foo).to have_selector('bar') -# -# # good -# expect(foo).to have_xpath('bar') -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#36 -class RuboCop::Cop::Capybara::RSpec::HaveSelector < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#44 - def on_send(node); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#80 - def default_selector; end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#65 - def deletion_range(first_argument, second_argument); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#61 - def message_typed(type); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#76 - def message_untyped; end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#52 - def on_select_with_type(node, type); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#70 - def on_select_without_type(node); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#40 -RuboCop::Cop::Capybara::RSpec::HaveSelector::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#41 -RuboCop::Cop::Capybara::RSpec::HaveSelector::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/have_selector.rb#42 -RuboCop::Cop::Capybara::RSpec::HaveSelector::SELECTORS = T.let(T.unsafe(nil), Array) - -# A helper for `inflected` style -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#8 -module RuboCop::Cop::Capybara::RSpec::InflectedHelper - extend ::RuboCop::AST::NodePattern::Macros - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#46 - def be_bool?(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#51 - def be_boolthy?(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#32 - def predicate_in_actual?(param0 = T.unsafe(nil)); end - - private - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#55 - def boolean_matcher?(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#19 - def check_inflected(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#67 - def message_inflected(predicate); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#63 - def predicate?(sym); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#77 - def remove_predicate(corrector, predicate); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#85 - def rewrite_matcher(corrector, predicate, matcher); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#73 - def to_predicate_matcher(name); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#94 - def true?(to_symbol, matcher); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#11 -RuboCop::Cop::Capybara::RSpec::InflectedHelper::EXPLICIT_MATCHER = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#14 -RuboCop::Cop::Capybara::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String) - -# Prefer using predicate matcher over using predicate method directly. -# -# Capybara defines magic matchers for predicate methods. -# This cop recommends to use the predicate matcher instead of using -# predicate method directly. -# -# @example Strict: true, EnforcedStyle: inflected (default) -# # bad -# expect(foo.matches_css?(bar: 'baz')).to be_truthy -# expect(foo.matches_selector?(bar: 'baz')).to be_truthy -# expect(foo.matches_style?(bar: 'baz')).to be_truthy -# expect(foo.matches_xpath?(bar: 'baz')).to be_truthy -# -# # good -# expect(foo).to match_css(bar: 'baz') -# expect(foo).to match_selector(bar: 'baz') -# expect(foo).to match_style(bar: 'baz') -# expect(foo).to match_xpath(bar: 'baz') -# -# # also good - It checks "true" strictly. -# expect(foo.matches_style?(bar: 'baz')).to be(true) -# @example Strict: false, EnforcedStyle: inflected -# # bad -# expect(foo.matches_style?(bar: 'baz')).to be_truthy -# expect(foo.matches_style?(bar: 'baz')).to be(true) -# -# # good -# expect(foo).to match_style(bar: 'baz') -# @example Strict: true, EnforcedStyle: explicit -# # bad -# expect(foo).to match_style(bar: 'baz') -# -# # good - the above code is rewritten to it by this cop -# expect(foo.matches_style?(bar: 'baz')).to be(true) -# @example Strict: false, EnforcedStyle: explicit -# # bad -# expect(foo).to match_style(bar: 'baz') -# -# # good - the above code is rewritten to it by this cop -# expect(foo.matches_style?(bar: 'baz')).to be_truthy -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#238 -class RuboCop::Cop::Capybara::RSpec::PredicateMatcher < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::Cop::Capybara::RSpec::InflectedHelper - include ::RuboCop::Cop::Capybara::RSpec::ExplicitHelper - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#246 - def on_send(node); end - - private - - # returns args location with whitespace - # - # @example - # foo 1, 2 - # ^^^^^ - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#260 - def args_loc(send_node); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/rspec/predicate_matcher.rb#244 -RuboCop::Cop::Capybara::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Checks for redundant `within find(...)` calls. -# -# @example -# # bad -# within find('foo.bar') do -# # ... -# end -# -# # good -# within 'foo.bar' do -# # ... -# end -# -# # bad -# within find_by_id('foo') do -# # ... -# end -# -# # good -# within '#foo' do -# # ... -# end -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#29 -class RuboCop::Cop::Capybara::RedundantWithinFind < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#41 - def on_send(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#36 - def within_find(param0 = T.unsafe(nil)); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#51 - def msg(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#55 - def replaced(node); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#33 -RuboCop::Cop::Capybara::RedundantWithinFind::FIND_METHODS = T.let(T.unsafe(nil), Set) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#31 -RuboCop::Cop::Capybara::RedundantWithinFind::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/redundant_within_find.rb#32 -RuboCop::Cop::Capybara::RedundantWithinFind::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Checks for there is a more specific actions offered by Capybara. -# -# @example -# -# # bad -# find('a').click -# find('button.cls').click -# find('a', exact_text: 'foo').click -# find('div button').click -# -# # good -# click_link -# click_button(class: 'cls') -# click_link(exact_text: 'foo') -# find('div').click_button -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#22 -class RuboCop::Cop::Capybara::SpecificActions < ::RuboCop::Cop::Base - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#31 - def click_on_selector(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#35 - def on_send(node); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#87 - def good_action(action); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#73 - def last_selector(arg); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#81 - def message(action, selector); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#77 - def offense_range(node, receiver); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#57 - def replaceable?(node, arg, action); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#63 - def replaceable_attributes?(selector); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#53 - def specific_action(selector); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#69 - def supported_selector?(selector); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#23 -RuboCop::Cop::Capybara::SpecificActions::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#24 -RuboCop::Cop::Capybara::SpecificActions::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_actions.rb#25 -RuboCop::Cop::Capybara::SpecificActions::SPECIFIC_ACTION = T.let(T.unsafe(nil), Hash) - -# Checks if there is a more specific finder offered by Capybara. -# -# @example -# # bad -# find('#some-id') -# find('[id=some-id]') -# find(:css, '#some-id') -# find(:id, 'some-id') -# -# # good -# find_by_id('some-id') -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#18 -class RuboCop::Cop::Capybara::SpecificFinders < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#31 - def class_options(param0); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#26 - def find_argument(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#35 - def on_send(node); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#99 - def append_options(classes, options); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#68 - def attribute?(arg); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#89 - def autocorrect_classes(corrector, node, classes); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#84 - def deletion_range(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#126 - def end_pos(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#104 - def keyword_argument_class(classes); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#122 - def offense_range(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#48 - def on_attr(node, sym, arg); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#56 - def on_id(node, sym, arg); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#64 - def on_sym_id(node, sym, id); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#73 - def register_offense(node, sym, id, classes = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#109 - def replaced_arguments(arg, id); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#114 - def to_options(attrs); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#22 -RuboCop::Cop::Capybara::SpecificFinders::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_finders.rb#23 -RuboCop::Cop::Capybara::SpecificFinders::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Checks for there is a more specific matcher offered by Capybara. -# -# @example -# -# # bad -# expect(page).to have_selector('button') -# expect(page).to have_no_selector('button.cls') -# expect(page).to have_css('button') -# expect(page).to have_no_css('a.cls', href: 'http://example.com') -# expect(page).to have_css('table.cls') -# expect(page).to have_css('select') -# expect(page).to have_css('input', exact_text: 'foo') -# -# # good -# expect(page).to have_button -# expect(page).to have_no_button(class: 'cls') -# expect(page).to have_button -# expect(page).to have_no_link('foo', class: 'cls', href: 'http://example.com') -# expect(page).to have_table(class: 'cls') -# expect(page).to have_select -# expect(page).to have_field(with: 'foo') -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#28 -class RuboCop::Cop::Capybara::SpecificMatcher < ::RuboCop::Cop::Base - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#41 - def first_argument(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#50 - def on_send(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#46 - def text_with_regexp?(param0); end - - private - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#86 - def good_matcher(node, matcher); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#80 - def message(node, matcher); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#67 - def replaceable?(node, arg, matcher); end - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#74 - def replaceable_attributes?(selector); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#62 - def specific_matcher(arg); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#29 -RuboCop::Cop::Capybara::SpecificMatcher::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#30 -RuboCop::Cop::Capybara::SpecificMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/specific_matcher.rb#32 -RuboCop::Cop::Capybara::SpecificMatcher::SPECIFIC_MATCHER = T.let(T.unsafe(nil), Hash) - -# Checks for boolean visibility in Capybara finders. -# -# Capybara lets you find elements that match a certain visibility using -# the `:visible` option. `:visible` accepts both boolean and symbols as -# values, however using booleans can have unwanted effects. `visible: -# false` does not find just invisible elements, but both visible and -# invisible elements. For expressiveness and clarity, use one of the -# symbol values, `:all`, `:hidden` or `:visible`. -# Read more in -# https://www.rubydoc.info/gems/capybara/Capybara%2FNode%2FFinders:all[the documentation]. -# -# @example -# # bad -# expect(page).to have_selector('.foo', visible: false) -# expect(page).to have_css('.foo', visible: true) -# expect(page).to have_link('my link', visible: false) -# -# # good -# expect(page).to have_selector('.foo', visible: :visible) -# expect(page).to have_css('.foo', visible: :all) -# expect(page).to have_link('my link', visible: :hidden) -# -# source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#28 -class RuboCop::Cop::Capybara::VisibilityMatcher < ::RuboCop::Cop::Base - # source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#58 - def on_send(node); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#54 - def visible_false?(param0 = T.unsafe(nil)); end - - # source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#49 - def visible_true?(param0 = T.unsafe(nil)); end - - private - - # @return [Boolean] - # - # source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#65 - def capybara_matcher?(method_name); end -end - -# source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#31 -RuboCop::Cop::Capybara::VisibilityMatcher::CAPYBARA_MATCHER_METHODS = T.let(T.unsafe(nil), Array) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#29 -RuboCop::Cop::Capybara::VisibilityMatcher::MSG_FALSE = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#30 -RuboCop::Cop::Capybara::VisibilityMatcher::MSG_TRUE = T.let(T.unsafe(nil), String) - -# source://rubocop-capybara//lib/rubocop/cop/capybara/visibility_matcher.rb#46 -RuboCop::Cop::Capybara::VisibilityMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/rubocop-factory_bot@2.26.0.rbi b/sorbet/rbi/gems/rubocop-factory_bot@2.26.0.rbi deleted file mode 100644 index beb850ff0..000000000 --- a/sorbet/rbi/gems/rubocop-factory_bot@2.26.0.rbi +++ /dev/null @@ -1,928 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rubocop-factory_bot` gem. -# Please instead update this file by running `bin/tapioca gem rubocop-factory_bot`. - - -# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#3 -module RuboCop; end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#4 -module RuboCop::Cop; end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#5 -module RuboCop::Cop::FactoryBot; end - -# Use a consistent style to define associations. -# -# @example EnforcedStyle: implicit (default) -# # bad -# factory :post do -# association :user -# end -# -# # good -# factory :post do -# user -# end -# -# # bad -# factory :post do -# association :user, :author -# end -# -# # good -# factory :post do -# user factory: %i[user author] -# end -# @example EnforcedStyle: explicit -# # bad -# factory :post do -# user -# end -# -# # good -# factory :post do -# association :user -# end -# -# # bad -# factory :post do -# user factory: %i[user author] -# end -# -# # good -# factory :post do -# association :user, :author -# end -# -# # good (NonImplicitAssociationMethodNames: ['email']) -# sequence :email do |n| -# "person#{n}@example.com" -# end -# -# factory :user do -# email -# end -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#63 -class RuboCop::Cop::FactoryBot::AssociationStyle < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#140 - def association_names(param0); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#97 - def explicit_association?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#114 - def factory_option_matcher(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#109 - def implicit_association?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#83 - def on_send(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#145 - def trait_name(param0); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#135 - def trait_names_from_explicit(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#102 - def with_strategy_build_option?(param0 = T.unsafe(nil)); end - - private - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#149 - def autocorrect(corrector, node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#157 - def autocorrect_to_explicit_style(corrector, node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#165 - def autocorrect_to_implicit_style(corrector, node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#175 - def bad?(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#196 - def bad_associations_in(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#202 - def children_of_factory_block(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#214 - def factory_names_from_explicit(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#186 - def keyword?(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#224 - def non_implicit_association_method_name?(method_name); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#228 - def non_implicit_association_method_names; end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#241 - def options_for_autocorrect_to_implicit_style(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#233 - def options_from_explicit(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#250 - def trait_within_trait?(node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#68 -RuboCop::Cop::FactoryBot::AssociationStyle::DEFAULT_NON_IMPLICIT_ASSOCIATION_METHOD_NAMES = T.let(T.unsafe(nil), Array) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#77 -RuboCop::Cop::FactoryBot::AssociationStyle::KEYWORDS = T.let(T.unsafe(nil), Array) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/association_style.rb#76 -RuboCop::Cop::FactoryBot::AssociationStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Always declare attribute values as blocks. -# -# @example -# # bad -# kind [:active, :rejected].sample -# -# # good -# kind { [:active, :rejected].sample } -# -# # bad -# closed_at 1.day.from_now -# -# # good -# closed_at { 1.day.from_now } -# -# # bad -# count 1 -# -# # good -# count { 1 } -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#27 -class RuboCop::Cop::FactoryBot::AttributeDefinedStatically < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#85 - def association?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#38 - def factory_attributes(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#42 - def on_block(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#33 - def value_matcher(param0 = T.unsafe(nil)); end - - private - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#119 - def attribute_defining_method?(method_name); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#58 - def autocorrect(corrector, node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#87 - def autocorrect_replacing_parens(corrector, node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#94 - def autocorrect_without_parens(corrector, node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#103 - def braces(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#66 - def offensive_receiver?(receiver, node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#80 - def proc?(attribute); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#72 - def receiver_matches_first_block_argument?(receiver, node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#115 - def reserved_method?(method_name); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#111 - def value_hash_without_braces?(node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/attribute_defined_statically.rb#30 -RuboCop::Cop::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsafe(nil), String) - -# Handles `ExplicitOnly` configuration parameters. -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#7 -module RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly - include ::RuboCop::FactoryBot::Language - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#16 - def explicit_only?; end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/mixin/configurable_explicit_only.rb#10 - def factory_call?(node); end -end - -# Use a consistent style for parentheses in factory_bot calls. -# -# @example `EnforcedStyle: require_parentheses` (default) -# -# # bad -# create :user -# build :login -# -# # good -# create(:user) -# build(:login) -# @example `EnforcedStyle: omit_parentheses` -# -# # bad -# create(:user) -# build(:login) -# -# # good -# create :user -# build :login -# -# # also good -# # when method name and first argument are not on same line -# create( -# :user -# ) -# build( -# :user, -# name: 'foo' -# ) -# @example `ExplicitOnly: false` (default) -# -# # bad - with `EnforcedStyle: require_parentheses` -# FactoryBot.create :user -# build :user -# -# # good - with `EnforcedStyle: require_parentheses` -# FactoryBot.create(:user) -# build(:user) -# @example `ExplicitOnly: true` -# -# # bad - with `EnforcedStyle: require_parentheses` -# FactoryBot.create :user -# FactoryBot.build :user -# -# # good - with `EnforcedStyle: require_parentheses` -# FactoryBot.create(:user) -# FactoryBot.build(:user) -# create :user -# build :user -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#60 -class RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::FactoryBot::Language - include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#71 - def factory_call(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#79 - def omit_hash_value?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#93 - def on_send(node); end - - private - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#130 - def ambiguous_without_parentheses?(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#101 - def register_offense(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#108 - def register_offense_with_parentheses(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#119 - def register_offense_without_parentheses(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#134 - def remove_parentheses(corrector, node); end - - class << self - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#89 - def autocorrect_incompatible_with; end - end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#128 -RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::AMBIGUOUS_TYPES = T.let(T.unsafe(nil), Array) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#67 -RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#66 -RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::MSG_OMIT_PARENS = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#65 -RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::MSG_REQUIRE_PARENS = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/consistent_parentheses_style.rb#68 -RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) - -# Checks for create_list usage. -# -# This cop can be configured using the `EnforcedStyle` option -# -# @example `EnforcedStyle: create_list` (default) -# # bad -# 3.times { create :user } -# 3.times.map { create :user } -# [create(:user), create(:user), create(:user)] -# Array.new(3) { create :user } -# -# # good -# create_list :user, 3 -# -# # bad -# 3.times { create :user, age: 18 } -# -# # good - index is used to alter the created models attributes -# 3.times { |n| create :user, age: n } -# -# # good - contains a method call, may return different values -# 3.times { create :user, age: rand } -# @example `EnforcedStyle: n_times` -# # bad -# create_list :user, 3 -# [create(:user), create(:user), create(:user)] -# -# # good -# 3.times.map { create :user } -# @example `ExplicitOnly: false` (default) -# -# # bad - with `EnforcedStyle: create_list` -# 3.times { FactoryBot.create :user } -# 3.times { create :user } -# -# # good - with `EnforcedStyle: create_list` -# FactoryBot.create_list :user, 3 -# create_list :user, 3 -# @example `ExplicitOnly: true` -# -# # bad - with `EnforcedStyle: create_list` -# 3.times { FactoryBot.create :user } -# -# # good - with `EnforcedStyle: create_list` -# FactoryBot.create_list :user, 3 -# create_list :user, 3 -# 3.times { create :user } -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#61 -class RuboCop::Cop::FactoryBot::CreateList < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::FactoryBot::Language - include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#92 - def arguments_include_method_call?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#83 - def block_with_arg_and_used?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#97 - def factory_call(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#107 - def factory_calls_in_array?(param0); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#102 - def factory_list_call(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#111 - def on_array(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#123 - def on_block(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#136 - def on_send(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#72 - def repeat_count(param0 = T.unsafe(nil)); end - - private - - # For ease of modification, it is replaced with the `n_times` style, - # but if it is not appropriate for the configured style, - # it will be replaced in the subsequent autocorrection. - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#160 - def autocorrect_same_factory_calls_in_array(corrector, node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#171 - def contains_only_factory?(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#179 - def preferred_message_for_array(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#151 - def repeat_multiple_time?(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#188 - def same_factory_calls_in_array?(node); end -end - -# :nodoc -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#194 -module RuboCop::Cop::FactoryBot::CreateList::Corrector - private - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#197 - def build_options_string(options); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#201 - def format_method_call(node, method, arguments); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#209 - def format_receiver(receiver); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#254 -class RuboCop::Cop::FactoryBot::CreateList::CreateListCorrector - include ::RuboCop::Cop::FactoryBot::CreateList::Corrector - - # @return [CreateListCorrector] a new instance of CreateListCorrector - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#257 - def initialize(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#261 - def call(corrector); end - - private - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#284 - def build_arguments(node, count); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#293 - def call_replacement(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#275 - def call_with_block_replacement(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#306 - def count_from(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#319 - def format_block(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#327 - def format_multiline_block(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#335 - def format_singleline_block(node); end - - # Returns the value of attribute node. - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#273 - def node; end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#67 -RuboCop::Cop::FactoryBot::CreateList::MSG_CREATE_LIST = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#68 -RuboCop::Cop::FactoryBot::CreateList::MSG_N_TIMES = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#69 -RuboCop::Cop::FactoryBot::CreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# :nodoc -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#217 -class RuboCop::Cop::FactoryBot::CreateList::TimesCorrector - include ::RuboCop::Cop::FactoryBot::CreateList::Corrector - - # @return [TimesCorrector] a new instance of TimesCorrector - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#220 - def initialize(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#224 - def call(corrector); end - - private - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#246 - def factory_call_block_source; end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#233 - def generate_n_times_block(node); end - - # Returns the value of attribute node. - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/create_list.rb#231 - def node; end -end - -# Check for excessive model creation in a list. -# -# @example MaxAmount: 10 (default) -# # We do not allow more than 10 items to be created -# -# # bad -# create_list(:merge_request, 1000, state: :opened) -# -# # good -# create_list(:merge_request, 10, state: :opened) -# @example MaxAmount: 20 -# # We do not allow more than 20 items to be created -# -# # bad -# create_list(:merge_request, 1000, state: :opened) -# -# # good -# create_list(:merge_request, 15, state: :opened) -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#26 -class RuboCop::Cop::FactoryBot::ExcessiveCreateList < ::RuboCop::Cop::Base - include ::RuboCop::FactoryBot::Language - include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#33 - def create_list?(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#39 - def on_send(node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#29 -RuboCop::Cop::FactoryBot::ExcessiveCreateList::MESSAGE = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/excessive_create_list.rb#37 -RuboCop::Cop::FactoryBot::ExcessiveCreateList::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Use definition in factory association instead of hard coding a strategy. -# -# @example -# # bad - only works for one strategy -# factory :foo do -# profile { create(:profile) } -# end -# -# # good - implicit -# factory :foo do -# profile -# end -# -# # good - explicit -# factory :foo do -# association :profile -# end -# -# # good - inline -# factory :foo do -# profile { association :profile } -# end -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#29 -class RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy < ::RuboCop::Cop::Base - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#36 - def factory_declaration(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#43 - def factory_strategy_association(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#51 - def on_block(node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#33 -RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy::HARDCODED = T.let(T.unsafe(nil), Set) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_association_with_strategy.rb#30 -RuboCop::Cop::FactoryBot::FactoryAssociationWithStrategy::MSG = T.let(T.unsafe(nil), String) - -# Use string value when setting the class attribute explicitly. -# -# This cop would promote faster tests by lazy-loading of -# application files. Also, this could help you suppress potential bugs -# in combination with external libraries by avoiding a preload of -# application files from the factory files. -# -# @example -# # bad -# factory :foo, class: Foo do -# end -# -# # good -# factory :foo, class: 'Foo' do -# end -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#22 -class RuboCop::Cop::FactoryBot::FactoryClassName < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#31 - def class_name(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#35 - def on_send(node); end - - private - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#48 - def allowed?(const_name); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#27 -RuboCop::Cop::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.unsafe(nil), Array) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#25 -RuboCop::Cop::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_class_name.rb#28 -RuboCop::Cop::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Checks for name style for argument of FactoryBot::Syntax::Methods. -# -# @example EnforcedStyle: symbol (default) -# # bad -# create('user') -# build "user", username: "NAME" -# -# # good -# create(:user) -# build :user, username: "NAME" -# -# # good - namespaced models -# create('users/internal') -# @example EnforcedStyle: string -# # bad -# create(:user) -# build :user, username: "NAME" -# -# # good -# create('user') -# build "user", username: "NAME" -# @example `ExplicitOnly: false` (default) -# -# # bad - with `EnforcedStyle: symbol` -# FactoryBot.create('user') -# create('user') -# -# # good - with `EnforcedStyle: symbol` -# FactoryBot.create(:user) -# create(:user) -# @example `ExplicitOnly: true` -# -# # bad - with `EnforcedStyle: symbol` -# FactoryBot.create(:user) -# FactoryBot.build "user", username: "NAME" -# -# # good - with `EnforcedStyle: symbol` -# FactoryBot.create('user') -# FactoryBot.build "user", username: "NAME" -# FactoryBot.create(:user) -# create(:user) -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#51 -class RuboCop::Cop::FactoryBot::FactoryNameStyle < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::FactoryBot::Language - include ::RuboCop::Cop::FactoryBot::ConfigurableExplicitOnly - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#62 - def factory_call(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#69 - def on_send(node); end - - private - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#89 - def namespaced?(name); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#85 - def offense_for_string_style?(name); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#81 - def offense_for_symbol_style?(name); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#93 - def register_offense(name, prefer); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#58 -RuboCop::Cop::FactoryBot::FactoryNameStyle::FACTORY_CALLS = T.let(T.unsafe(nil), Set) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#57 -RuboCop::Cop::FactoryBot::FactoryNameStyle::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/factory_name_style.rb#59 -RuboCop::Cop::FactoryBot::FactoryNameStyle::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) - -# Do not create a FactoryBot sequence for an id column. -# -# @example -# # bad - can lead to conflicts between FactoryBot and DB sequences -# factory :foo do -# sequence :id -# end -# -# # good - a non-id column -# factory :foo do -# sequence :some_non_id_column -# end -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#19 -class RuboCop::Cop::FactoryBot::IdSequence < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - include ::RuboCop::FactoryBot::Language - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#27 - def on_send(node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#24 -RuboCop::Cop::FactoryBot::IdSequence::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/id_sequence.rb#25 -RuboCop::Cop::FactoryBot::IdSequence::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Checks for redundant `factory` option. -# -# @example -# # bad -# association :user, factory: :user -# -# # good -# association :user -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#14 -class RuboCop::Cop::FactoryBot::RedundantFactoryOption < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#24 - def association_with_a_factory_option(param0 = T.unsafe(nil)); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#42 - def on_send(node); end - - private - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#55 - def autocorrect(corrector, node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#19 -RuboCop::Cop::FactoryBot::RedundantFactoryOption::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/redundant_factory_option.rb#21 -RuboCop::Cop::FactoryBot::RedundantFactoryOption::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Use shorthands from `FactoryBot::Syntax::Methods` in your specs. -# -# @example -# # bad -# FactoryBot.create(:bar) -# FactoryBot.build(:bar) -# FactoryBot.attributes_for(:bar) -# -# # good -# create(:bar) -# build(:bar) -# attributes_for(:bar) -# -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#48 -class RuboCop::Cop::FactoryBot::SyntaxMethods < ::RuboCop::Cop::Base - include ::RuboCop::Cop::RangeHelp - include ::RuboCop::FactoryBot::Language - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#73 - def on_send(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#58 - def spec_group?(param0 = T.unsafe(nil)); end - - private - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#87 - def crime_scene(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#109 - def example_group_root?(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#113 - def example_group_root_with_siblings?(node); end - - # @return [Boolean] - # - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#101 - def inside_example_group?(node); end - - # source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#94 - def offense(node); end -end - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#53 -RuboCop::Cop::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-factory_bot//lib/rubocop/cop/factory_bot/syntax_methods.rb#55 -RuboCop::Cop::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) - -# RuboCop factory_bot project namespace -# -# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#5 -module RuboCop::FactoryBot - class << self - # source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#54 - def attribute_defining_methods; end - - # source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#58 - def reserved_methods; end - end -end - -# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#6 -RuboCop::FactoryBot::ATTRIBUTE_DEFINING_METHODS = T.let(T.unsafe(nil), Array) - -# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#29 -RuboCop::FactoryBot::DEFINITION_PROXY_METHODS = T.let(T.unsafe(nil), Array) - -# Contains node matchers for common factory_bot DSL. -# -# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#6 -module RuboCop::FactoryBot::Language - extend ::RuboCop::AST::NodePattern::Macros - - # source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#30 - def factory_bot?(param0 = T.unsafe(nil)); end -end - -# source://rubocop-factory_bot//lib/rubocop/factory_bot/language.rb#9 -RuboCop::FactoryBot::Language::METHODS = T.let(T.unsafe(nil), Set) - -# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#42 -RuboCop::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array) - -# source://rubocop-factory_bot//lib/rubocop/factory_bot/factory_bot.rb#14 -RuboCop::FactoryBot::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array) diff --git a/sorbet/rbi/gems/rubocop-rspec@2.31.0.rbi b/sorbet/rbi/gems/rubocop-rspec@3.0.1.rbi similarity index 88% rename from sorbet/rbi/gems/rubocop-rspec@2.31.0.rbi rename to sorbet/rbi/gems/rubocop-rspec@3.0.1.rbi index 21b0b31ed..06a43e28f 100644 --- a/sorbet/rbi/gems/rubocop-rspec@2.31.0.rbi +++ b/sorbet/rbi/gems/rubocop-rspec@3.0.1.rbi @@ -181,18 +181,17 @@ RuboCop::Cop::RSpec::AroundBlock::MSG_UNUSED_ARG = T.let(T.unsafe(nil), String) # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#7 class RuboCop::Cop::RSpec::Base < ::RuboCop::Cop::Base include ::RuboCop::RSpec::Language - extend ::RuboCop::RSpec::Language::NodePattern # Set the config for dynamic DSL configuration-aware helpers # that have no other means of accessing the configuration. # - # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#20 + # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#19 def on_new_investigation; end class << self # Invoke the original inherited hook so our cops are recognized # - # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#14 + # source://rubocop-rspec//lib/rubocop/cop/rspec/base.rb#13 def inherited(subclass); end end end @@ -418,242 +417,6 @@ RuboCop::Cop::RSpec::BeforeAfterAll::MSG = T.let(T.unsafe(nil), String) # source://rubocop-rspec//lib/rubocop/cop/rspec/before_after_all.rb#27 RuboCop::Cop::RSpec::BeforeAfterAll::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#6 -module RuboCop::Cop::RSpec::Capybara; end - -# Checks that no expectations are set on Capybara's `current_path`. -# -# The -# https://www.rubydoc.info/github/teamcapybara/capybara/master/Capybara/RSpecMatchers#have_current_path-instance_method[`have_current_path` matcher] -# should be used on `page` to set expectations on Capybara's -# current path, since it uses -# https://github.com/teamcapybara/capybara/blob/master/README.md#asynchronous-javascript-ajax-and-friends[Capybara's waiting functionality] -# which ensures that preceding actions (like `click_link`) have -# completed. -# -# This cop does not support autocorrection in some cases. -# -# @example -# # bad -# expect(current_path).to eq('/callback') -# -# # good -# expect(page).to have_current_path('/callback') -# -# # bad (does not support autocorrection) -# expect(page.current_path).to match(variable) -# -# # good -# expect(page).to have_current_path('/callback') -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/current_path_expectation.rb#34 -RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation = RuboCop::Cop::Capybara::CurrentPathExpectation - -# Checks for consistent method usage in feature specs. -# -# By default, the cop disables all Capybara-specific methods that have -# the same native RSpec method (e.g. are just aliases). Some teams -# however may prefer using some of the Capybara methods (like `feature`) -# to make it obvious that the test uses Capybara, while still disable -# the rest of the methods, like `given` (alias for `let`), `background` -# (alias for `before`), etc. You can configure which of the methods to -# be enabled by using the EnabledMethods configuration option. -# -# @example -# # bad -# feature 'User logs in' do -# given(:user) { User.new } -# -# background do -# visit new_session_path -# end -# -# scenario 'with OAuth' do -# # ... -# end -# end -# -# # good -# describe 'User logs in' do -# let(:user) { User.new } -# -# before do -# visit new_session_path -# end -# -# it 'with OAuth' do -# # ... -# end -# end -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#44 -class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base - include ::RuboCop::Cop::RSpec::InsideExampleGroup - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#61 - def capybara_speak(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#66 - def feature_method(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#84 - def message(range); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#72 - def on_block(node); end - - private - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#91 - def enabled?(method_name); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#95 - def enabled_methods; end -end - -# https://github.com/teamcapybara/capybara/blob/e283c1aeaa72441f5403963577e16333bf111a81/lib/capybara/rspec/features.rb#L31-L36 -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#51 -RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash) - -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/feature_methods.rb#48 -RuboCop::Cop::RSpec::Capybara::FeatureMethods::MSG = T.let(T.unsafe(nil), String) - -# Checks for usage of deprecated style methods. -# -# @example when using `assert_style` -# # bad -# page.find(:css, '#first').assert_style(display: 'block') -# -# # good -# page.find(:css, '#first').assert_matches_style(display: 'block') -# @example when using `has_style?` -# # bad -# expect(page.find(:css, 'first') -# .has_style?(display: 'block')).to be true -# -# # good -# expect(page.find(:css, 'first') -# .matches_style?(display: 'block')).to be true -# @example when using `have_style` -# # bad -# expect(page).to have_style(display: 'block') -# -# # good -# expect(page).to match_style(display: 'block') -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/match_style.rb#34 -RuboCop::Cop::RSpec::Capybara::MatchStyle = RuboCop::Cop::Capybara::MatchStyle - -# Enforces use of `have_no_*` or `not_to` for negated expectations. -# -# @example EnforcedStyle: not_to (default) -# # bad -# expect(page).to have_no_selector -# expect(page).to have_no_css('a') -# -# # good -# expect(page).not_to have_selector -# expect(page).not_to have_css('a') -# @example EnforcedStyle: have_no -# # bad -# expect(page).not_to have_selector -# expect(page).not_to have_css('a') -# -# # good -# expect(page).to have_no_selector -# expect(page).to have_no_css('a') -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/negation_matcher.rb#29 -RuboCop::Cop::RSpec::Capybara::NegationMatcher = RuboCop::Cop::Capybara::NegationMatcher - -# Checks for there is a more specific actions offered by Capybara. -# -# @example -# -# # bad -# find('a').click -# find('button.cls').click -# find('a', exact_text: 'foo').click -# find('div button').click -# -# # good -# click_link -# click_button(class: 'cls') -# click_link(exact_text: 'foo') -# find('div').click_button -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_actions.rb#25 -RuboCop::Cop::RSpec::Capybara::SpecificActions = RuboCop::Cop::Capybara::SpecificActions - -# Checks if there is a more specific finder offered by Capybara. -# -# @example -# # bad -# find('#some-id') -# find('[visible][id=some-id]') -# -# # good -# find_by_id('some-id') -# find_by_id('some-id', visible: true) -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_finders.rb#20 -RuboCop::Cop::RSpec::Capybara::SpecificFinders = RuboCop::Cop::Capybara::SpecificFinders - -# Checks for there is a more specific matcher offered by Capybara. -# -# @example -# -# # bad -# expect(page).to have_selector('button') -# expect(page).to have_no_selector('button.cls') -# expect(page).to have_css('button') -# expect(page).to have_no_css('a.cls', href: 'http://example.com') -# expect(page).to have_css('table.cls') -# expect(page).to have_css('select') -# expect(page).to have_css('input', exact_text: 'foo') -# -# # good -# expect(page).to have_button -# expect(page).to have_no_button(class: 'cls') -# expect(page).to have_button -# expect(page).to have_no_link('foo', class: 'cls', href: 'http://example.com') -# expect(page).to have_table(class: 'cls') -# expect(page).to have_select -# expect(page).to have_field('foo') -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/specific_matcher.rb#31 -RuboCop::Cop::RSpec::Capybara::SpecificMatcher = RuboCop::Cop::Capybara::SpecificMatcher - -# Checks for boolean visibility in Capybara finders. -# -# Capybara lets you find elements that match a certain visibility -# using the `:visible` option. `:visible` accepts both boolean and -# symbols as values, however using booleans can have unwanted -# effects. `visible: false` does not find just invisible elements, -# but both visible and invisible elements. For expressiveness and -# clarity, use one of the # symbol values, `:all`, `:hidden` or -# `:visible`. -# Read more in -# https://www.rubydoc.info/gems/capybara/Capybara%2FNode%2FFinders:all[the documentation]. -# -# @example -# # bad -# expect(page).to have_selector('.foo', visible: false) -# expect(page).to have_css('.foo', visible: true) -# expect(page).to have_link('my link', visible: false) -# -# # good -# expect(page).to have_selector('.foo', visible: :visible) -# expect(page).to have_css('.foo', visible: :all) -# expect(page).to have_link('my link', visible: :hidden) -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/capybara/visibility_matcher.rb#32 -RuboCop::Cop::RSpec::Capybara::VisibilityMatcher = RuboCop::Cop::Capybara::VisibilityMatcher - # Prefer negated matchers over `to change.by(0)`. # # In the case of composite expectations, cop suggest using the @@ -1375,6 +1138,19 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St # PreferredMethods: # context: describe # +# If you were previously using the `RSpec/Capybara/FeatureMethods` cop and +# want to keep disabling all Capybara-specific methods that have the same +# native RSpec method (e.g. are just aliases), use the following config: +# +# RSpec/Dialect: +# PreferredMethods: +# background: :before +# scenario: :it +# xscenario: :xit +# given: :let +# given!: :let! +# feature: :describe +# # You can expect the following behavior: # # @example @@ -1388,19 +1164,19 @@ RuboCop::Cop::RSpec::DescribedClassModuleWrapping::MSG = T.let(T.unsafe(nil), St # # ... # end # -# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#45 +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#58 class RuboCop::Cop::RSpec::Dialect < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::MethodPreference extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#54 + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#67 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#52 + # source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#65 def rspec_method?(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#49 +# source://rubocop-rspec//lib/rubocop/cop/rspec/dialect.rb#62 RuboCop::Cop::RSpec::Dialect::MSG = T.let(T.unsafe(nil), String) # Avoid duplicated metadata. @@ -2441,12 +2217,9 @@ class RuboCop::Cop::RSpec::ExpectInLet < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#25 def on_block(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#25 - def on_numblock(node); end - private - # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#38 + # source://rubocop-rspec//lib/rubocop/cop/rspec/expect_in_let.rb#36 def message(expect); end end @@ -2552,156 +2325,6 @@ RuboCop::Cop::RSpec::ExplicitHelper::BUILT_IN_MATCHERS = T.let(T.unsafe(nil), Ar # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#125 RuboCop::Cop::RSpec::ExplicitHelper::MSG_EXPLICIT = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#6 -module RuboCop::Cop::RSpec::FactoryBot; end - -# Always declare attribute values as blocks. -# -# @example -# # bad -# kind [:active, :rejected].sample -# -# # good -# kind { [:active, :rejected].sample } -# -# # bad -# closed_at 1.day.from_now -# -# # good -# closed_at { 1.day.from_now } -# -# # bad -# count 1 -# -# # good -# count { 1 } -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb#30 -RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically = RuboCop::Cop::FactoryBot::AttributeDefinedStatically - -# Use a consistent style for parentheses in factory bot calls. -# -# @example -# -# # bad -# create :user -# build(:user) -# create(:login) -# create :login -# @example `EnforcedStyle: require_parentheses` (default) -# -# # good -# create(:user) -# create(:user) -# create(:login) -# build(:login) -# @example `EnforcedStyle: omit_parentheses` -# -# # good -# create :user -# build :user -# create :login -# create :login -# -# # also good -# # when method name and first argument are not on same line -# create( -# :user -# ) -# build( -# :user, -# name: 'foo' -# ) -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb#45 -RuboCop::Cop::RSpec::FactoryBot::ConsistentParenthesesStyle = RuboCop::Cop::FactoryBot::ConsistentParenthesesStyle - -# Checks for create_list usage. -# -# This cop can be configured using the `EnforcedStyle` option -# -# @example `EnforcedStyle: create_list` (default) -# # bad -# 3.times { create :user } -# -# # good -# create_list :user, 3 -# -# # bad -# 3.times { create :user, age: 18 } -# -# # good - index is used to alter the created models attributes -# 3.times { |n| create :user, age: n } -# -# # good - contains a method call, may return different values -# 3.times { create :user, age: rand } -# @example `EnforcedStyle: n_times` -# # bad -# create_list :user, 3 -# -# # good -# 3.times { create :user } -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/create_list.rb#36 -RuboCop::Cop::RSpec::FactoryBot::CreateList = RuboCop::Cop::FactoryBot::CreateList - -# Use string value when setting the class attribute explicitly. -# -# This cop would promote faster tests by lazy-loading of -# application files. Also, this could help you suppress potential -# bugs in combination with external libraries by avoiding a preload -# of application files from the factory files. -# -# @example -# # bad -# factory :foo, class: Foo do -# end -# -# # good -# factory :foo, class: 'Foo' do -# end -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb#25 -RuboCop::Cop::RSpec::FactoryBot::FactoryClassName = RuboCop::Cop::FactoryBot::FactoryClassName - -# Checks for name style for argument of FactoryBot::Syntax::Methods. -# -# @example EnforcedStyle: symbol (default) -# # bad -# create('user') -# build "user", username: "NAME" -# -# # good -# create(:user) -# build :user, username: "NAME" -# @example EnforcedStyle: string -# # bad -# create(:user) -# build :user, username: "NAME" -# -# # good -# create('user') -# build "user", username: "NAME" -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb#29 -RuboCop::Cop::RSpec::FactoryBot::FactoryNameStyle = RuboCop::Cop::FactoryBot::FactoryNameStyle - -# Use shorthands from `FactoryBot::Syntax::Methods` in your specs. -# -# @example -# # bad -# FactoryBot.create(:bar) -# FactoryBot.build(:bar) -# FactoryBot.attributes_for(:bar) -# -# # good -# create(:bar) -# build(:bar) -# attributes_for(:bar) -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb#51 -RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods = RuboCop::Cop::FactoryBot::SyntaxMethods - # Help methods for file. # # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/file_help.rb#7 @@ -2710,137 +2333,6 @@ module RuboCop::Cop::RSpec::FileHelp def expanded_file_path; end end -# Checks that spec file paths are consistent and well-formed. -# -# This cop is deprecated. -# We plan to remove it in the next major version update to 3.0. -# The migration targets are `RSpec/SpecFilePathSuffix` -# and `RSpec/SpecFilePathFormat`. -# If you are using this cop, please plan for migration. -# -# By default, this checks that spec file paths are consistent with the -# test subject and enforces that it reflects the described -# class/module and its optionally called out method. -# -# With the configuration option `IgnoreMethods` the called out method will -# be ignored when determining the enforced path. -# -# With the configuration option `CustomTransform` modules or classes can -# be specified that should not as usual be transformed from CamelCase to -# snake_case (e.g. 'RuboCop' => 'rubocop' ). -# -# With the configuration option `SpecSuffixOnly` test files will only -# be checked to ensure they end in '_spec.rb'. This option disables -# checking for consistency in the test subject or test methods. -# -# @example -# # bad -# whatever_spec.rb # describe MyClass -# -# # bad -# my_class_spec.rb # describe MyClass, '#method' -# -# # good -# my_class_spec.rb # describe MyClass -# -# # good -# my_class_method_spec.rb # describe MyClass, '#method' -# -# # good -# my_class/method_spec.rb # describe MyClass, '#method' -# @example when configuration is `IgnoreMethods: true` -# # bad -# whatever_spec.rb # describe MyClass -# -# # good -# my_class_spec.rb # describe MyClass -# -# # good -# my_class_spec.rb # describe MyClass, '#method' -# @example when configuration is `SpecSuffixOnly: true` -# # good -# whatever_spec.rb # describe MyClass -# -# # good -# my_class_spec.rb # describe MyClass -# -# # good -# my_class_spec.rb # describe MyClass, '#method' -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#65 -class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base - include ::RuboCop::Cop::RSpec::TopLevelGroup - include ::RuboCop::Cop::RSpec::Namespace - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#72 - def example_group(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#81 - def on_top_level_example_group(node); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#79 - def routing_metadata?(param0); end - - private - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#142 - def camel_to_snake_case(string); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#149 - def custom_transform; end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#91 - def ensure_correct_file_path(send_node, example_group, arguments); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#173 - def expanded_file_path; end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#132 - def expected_path(constant); end - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#157 - def filename_ends_with?(pattern); end - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#153 - def ignore_methods?; end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#125 - def name_pattern(method_name); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#107 - def pattern_for(example_group, arguments); end - - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#121 - def pattern_for_spec_suffix_only; end - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#161 - def relevant_rubocop_rspec_file?(_file); end - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#103 - def routing_spec?(args); end - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#169 - def routing_spec_path?; end - - # @return [Boolean] - # - # source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#165 - def spec_suffix_only?; end -end - -# source://rubocop-rspec//lib/rubocop/cop/rspec/file_path.rb#69 -RuboCop::Cop::RSpec::FilePath::MSG = T.let(T.unsafe(nil), String) - # Helps find the true end location of nodes which might contain heredocs. # # source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/final_end_location.rb#7 @@ -4381,6 +3873,43 @@ end # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_example_group_argument.rb#24 RuboCop::Cop::RSpec::MissingExampleGroupArgument::MSG = T.let(T.unsafe(nil), String) +# Checks if `.to`, `not_to` or `to_not` are used. +# +# The RSpec::Expectations::ExpectationTarget must use `to`, `not_to` or +# `to_not` to run. Therefore, this cop checks if other methods are used. +# +# @example +# # bad +# expect(something).kind_of? Foo +# is_expected == 42 +# expect{something}.eq? BarError +# +# # good +# expect(something).to be_a Foo +# is_expected.to eq 42 +# expect{something}.to raise_error BarError +# +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#22 +class RuboCop::Cop::RSpec::MissingExpectationTargetMethod < ::RuboCop::Cop::RSpec::Base + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#27 + def expect?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#35 + def expect_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#40 + def expectation_without_runner?(param0 = T.unsafe(nil)); end + + # source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#44 + def on_send(node); end +end + +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#23 +RuboCop::Cop::RSpec::MissingExpectationTargetMethod::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-rspec//lib/rubocop/cop/rspec/missing_expectation_target_method.rb#24 +RuboCop::Cop::RSpec::MissingExpectationTargetMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Checks for multiple top-level example groups. # # Multiple descriptions for the same class or module should either @@ -4513,7 +4042,7 @@ RuboCop::Cop::RSpec::MultipleExpectations::ANYTHING = T.let(T.unsafe(nil), Proc) RuboCop::Cop::RSpec::MultipleExpectations::MSG = T.let(T.unsafe(nil), String) # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_expectations.rb#75 -RuboCop::Cop::RSpec::MultipleExpectations::TRUE = T.let(T.unsafe(nil), Proc) +RuboCop::Cop::RSpec::MultipleExpectations::TRUE_NODE = T.let(T.unsafe(nil), Proc) # Checks if example groups contain too many `let` and `subject` calls. # @@ -4609,7 +4138,7 @@ class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#142 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#140 def allow_subject?; end # Returns the value of attribute example_group_memoized_helpers. @@ -4617,13 +4146,13 @@ class RuboCop::Cop::RSpec::MultipleMemoizedHelpers < ::RuboCop::Cop::RSpec::Base # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#108 def example_group_memoized_helpers; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#117 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#115 def helpers(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#138 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#136 def max; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#128 + # source://rubocop-rspec//lib/rubocop/cop/rspec/multiple_memoized_helpers.rb#126 def variable_nodes(node); end end @@ -4796,18 +4325,18 @@ class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#120 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#123 def allow_explicit_subject?(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#124 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#127 def always?; end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#114 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#117 def check_explicit_subject(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#147 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#150 def find_subject(block_node); end # @return [Boolean] @@ -4817,15 +4346,15 @@ class RuboCop::Cop::RSpec::NamedSubject < ::RuboCop::Cop::RSpec::Base # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#128 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#131 def named_only?(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#139 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#142 def nearest_subject(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#133 + # source://rubocop-rspec//lib/rubocop/cop/rspec/named_subject.rb#136 def subject_definition_is_named?(node); end end @@ -5377,215 +4906,6 @@ end # source://rubocop-rspec//lib/rubocop/cop/rspec/predicate_matcher.rb#320 RuboCop::Cop::RSpec::PredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#6 -module RuboCop::Cop::RSpec::Rails; end - -# Checks that tests use RSpec `before` hook over Rails `setup` -# method. -# -# @example -# # bad -# setup do -# allow(foo).to receive(:bar) -# end -# -# # good -# before do -# allow(foo).to receive(:bar) -# end -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb#23 -RuboCop::Cop::RSpec::Rails::AvoidSetupHook = RuboCop::Cop::RSpecRails::AvoidSetupHook - -# Checks that tests use `have_http_status` instead of equality matchers. -# -# @example ResponseMethods: ['response', 'last_response'] (default) -# # bad -# expect(response.status).to be(200) -# expect(last_response.code).to eq("200") -# -# # good -# expect(response).to have_http_status(200) -# expect(last_response).to have_http_status(200) -# @example ResponseMethods: ['foo_response'] -# # bad -# expect(foo_response.status).to be(200) -# -# # good -# expect(foo_response).to have_http_status(200) -# -# # also good -# expect(response).to have_http_status(200) -# expect(last_response).to have_http_status(200) -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/have_http_status.rb#31 -RuboCop::Cop::RSpec::Rails::HaveHttpStatus = RuboCop::Cop::RSpecRails::HaveHttpStatus - -# Enforces use of symbolic or numeric value to describe HTTP status. -# -# This cop inspects only `have_http_status` calls. -# So, this cop does not check if a method starting with `be_*` is -# used when setting for `EnforcedStyle: symbolic` or -# `EnforcedStyle: numeric`. -# -# @example `EnforcedStyle: symbolic` (default) -# # bad -# it { is_expected.to have_http_status 200 } -# it { is_expected.to have_http_status 404 } -# it { is_expected.to have_http_status "403" } -# -# # good -# it { is_expected.to have_http_status :ok } -# it { is_expected.to have_http_status :not_found } -# it { is_expected.to have_http_status :forbidden } -# it { is_expected.to have_http_status :success } -# it { is_expected.to have_http_status :error } -# @example `EnforcedStyle: numeric` -# # bad -# it { is_expected.to have_http_status :ok } -# it { is_expected.to have_http_status :not_found } -# it { is_expected.to have_http_status "forbidden" } -# -# # good -# it { is_expected.to have_http_status 200 } -# it { is_expected.to have_http_status 404 } -# it { is_expected.to have_http_status 403 } -# it { is_expected.to have_http_status :success } -# it { is_expected.to have_http_status :error } -# @example `EnforcedStyle: be_status` -# # bad -# it { is_expected.to have_http_status :ok } -# it { is_expected.to have_http_status :not_found } -# it { is_expected.to have_http_status "forbidden" } -# it { is_expected.to have_http_status 200 } -# it { is_expected.to have_http_status 404 } -# it { is_expected.to have_http_status "403" } -# -# # good -# it { is_expected.to be_ok } -# it { is_expected.to be_not_found } -# it { is_expected.to have_http_status :success } -# it { is_expected.to have_http_status :error } -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/http_status.rb#57 -RuboCop::Cop::RSpec::Rails::HttpStatus = RuboCop::Cop::RSpecRails::HttpStatus - -# Identifies redundant spec type. -# -# After setting up rspec-rails, you will have enabled -# `config.infer_spec_type_from_file_location!` by default in -# spec/rails_helper.rb. This cop works in conjunction with -# this config. -# If you disable this config, disable this cop as well. -# -# @example -# # bad -# # spec/models/user_spec.rb -# RSpec.describe User, type: :model do -# end -# -# # good -# # spec/models/user_spec.rb -# RSpec.describe User do -# end -# -# # good -# # spec/models/user_spec.rb -# RSpec.describe User, type: :common do -# end -# @example `Inferences` configuration -# # .rubocop.yml -# # RSpec/Rails/InferredSpecType: -# # Inferences: -# # services: service -# -# # bad -# # spec/services/user_spec.rb -# RSpec.describe User, type: :service do -# end -# -# # good -# # spec/services/user_spec.rb -# RSpec.describe User do -# end -# -# # good -# # spec/services/user_spec.rb -# RSpec.describe User, type: :common do -# end -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/inferred_spec_type.rb#58 -RuboCop::Cop::RSpec::Rails::InferredSpecType = RuboCop::Cop::RSpecRails::InferredSpecType - -# Check if using Minitest-like matchers. -# -# Check the use of minitest-like matchers -# starting with `assert_` or `refute_`. -# -# @example -# # bad -# assert_equal(a, b) -# assert_equal a, b, "must be equal" -# assert_not_includes a, b -# refute_equal(a, b) -# assert_nil a -# refute_empty(b) -# assert_true(a) -# assert_false(a) -# -# # good -# expect(b).to eq(a) -# expect(b).to(eq(a), "must be equal") -# expect(a).not_to include(b) -# expect(b).not_to eq(a) -# expect(a).to eq(nil) -# expect(a).not_to be_empty -# expect(a).to be(true) -# expect(a).to be(false) -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/minitest_assertions.rb#35 -RuboCop::Cop::RSpec::Rails::MinitestAssertions = RuboCop::Cop::RSpecRails::MinitestAssertions - -# Enforces use of `be_invalid` or `not_to` for negated be_valid. -# -# @example EnforcedStyle: not_to (default) -# # bad -# expect(foo).to be_invalid -# -# # good -# expect(foo).not_to be_valid -# -# # good (with method chain) -# expect(foo).to be_invalid.and be_odd -# @example EnforcedStyle: be_invalid -# # bad -# expect(foo).not_to be_valid -# -# # good -# expect(foo).to be_invalid -# -# # good (with method chain) -# expect(foo).to be_invalid.or be_even -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/negation_be_valid.rb#35 -RuboCop::Cop::RSpec::Rails::NegationBeValid = RuboCop::Cop::RSpecRails::NegationBeValid - -# Prefer to travel in `before` rather than `around`. -# -# @example -# # bad -# around do |example| -# freeze_time do -# example.run -# end -# end -# -# # good -# before { freeze_time } -# -# source://rubocop-rspec//lib/rubocop/cop/rspec/rails/travel_around.rb#30 -RuboCop::Cop::RSpec::Rails::TravelAround = RuboCop::Cop::RSpecRails::TravelAround - # Check for `once` and `twice` receive counts matchers usage. # # @example @@ -5856,17 +5176,17 @@ RuboCop::Cop::RSpec::RedundantPredicateMatcher::RESTRICT_ON_SEND = T.let(T.unsaf class RuboCop::Cop::RSpec::RemoveConst < ::RuboCop::Cop::RSpec::Base # Check for offenses # - # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#32 + # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#31 def on_send(node); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#27 + # source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#26 def remove_const(param0 = T.unsafe(nil)); end end -# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#22 +# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#21 RuboCop::Cop::RSpec::RemoveConst::MSG = T.let(T.unsafe(nil), String) -# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#24 +# source://rubocop-rspec//lib/rubocop/cop/rspec/remove_const.rb#23 RuboCop::Cop::RSpec::RemoveConst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) # Check for repeated description strings in example groups. @@ -7062,13 +6382,13 @@ class RuboCop::Cop::RSpec::StubbedMock < ::RuboCop::Cop::RSpec::Base private - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#155 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#157 def msg(method_name); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#144 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#146 def on_expectation(expectation, method_name, matcher); end - # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#161 + # source://rubocop-rspec//lib/rubocop/cop/rspec/stubbed_mock.rb#163 def replacement(method_name); end end @@ -7677,24 +6997,6 @@ end # source://rubocop-rspec//lib/rubocop/cop/rspec/yield.rb#19 RuboCop::Cop::RSpec::Yield::MSG = T.let(T.unsafe(nil), String) -module RuboCop::Cop::Style; end - -class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - include ::RuboCop::Cop::RangeHelp - - # source://rubocop/1.64.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 - def on_csend(node); end - - # source://rubocop/1.64.1/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95 - def on_send(node); end - - class << self - # source://rubocop-rspec//lib/rubocop-rspec.rb#63 - def autocorrect_incompatible_with; end - end -end - # RuboCop RSpec project namespace # # source://rubocop-rspec//lib/rubocop/rspec.rb#5 @@ -7756,34 +7058,33 @@ RuboCop::RSpec::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname) class RuboCop::RSpec::Concept include ::RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - extend ::RuboCop::RSpec::Language::NodePattern # @return [Concept] a new instance of Concept # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#11 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#10 def initialize(node); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#15 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 def ==(other); end # @return [Boolean] # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#15 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#14 def eql?(other); end - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#21 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#20 def hash; end - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#25 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#24 def to_node; end protected # Returns the value of attribute node. # - # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#31 + # source://rubocop-rspec//lib/rubocop/rspec/concept.rb#30 def node; end end @@ -7969,218 +7270,183 @@ end # In addition to providing useful matchers, this class is responsible for # using the configured aliases. # -# source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#5 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#14 module RuboCop::RSpec::Language extend ::RuboCop::AST::NodePattern::Macros - extend ::RuboCop::RSpec::Language::NodePattern - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#50 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#49 def example?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#29 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#28 def example_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#45 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#44 def example_group_with_body?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#26 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#25 def explicit_rspec?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#53 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#52 def hook?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#69 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#68 def include?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#61 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#60 def let?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#23 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#22 def rspec?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#34 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#33 def shared_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#38 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#37 def spec_group?(param0 = T.unsafe(nil)); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#77 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#76 def subject?(param0 = T.unsafe(nil)); end class << self # Returns the value of attribute config. # - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#19 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18 def config; end # Sets the attribute config # # @param value the value to set the attribute config to. # - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#19 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#18 def config=(_arg0); end end end # This is used in Dialect and DescribeClass cops to detect RSpec blocks. # -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#205 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#204 module RuboCop::RSpec::Language::ALL class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#206 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#205 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#79 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#78 module RuboCop::RSpec::Language::ExampleGroups class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#81 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#80 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#91 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#90 def focused(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#87 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#86 def regular(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#95 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#94 def skipped(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#101 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#100 module RuboCop::RSpec::Language::Examples class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#103 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#102 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#114 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#113 def focused(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#122 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#121 def pending(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#110 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#109 def regular(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#118 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#117 def skipped(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#128 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#127 module RuboCop::RSpec::Language::Expectations class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#129 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#128 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#134 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#133 module RuboCop::RSpec::Language::Helpers class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#135 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#134 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#146 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#145 module RuboCop::RSpec::Language::HookScopes class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#148 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#147 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#147 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#146 RuboCop::RSpec::Language::HookScopes::ALL = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#140 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#139 module RuboCop::RSpec::Language::Hooks class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#141 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#140 def all(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#153 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#152 module RuboCop::RSpec::Language::Includes class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#155 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#154 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#164 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#163 def context(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#160 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#159 def examples(element); end end end -# Helper methods to detect RSpec DSL used with send and block -# -# @deprecated Prefer using Node Pattern directly -# Use `'(block (send nil? #Example.all ...) ...)'` instead of -# `block_pattern('#Example.all')` -# -# source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#10 -module RuboCop::RSpec::Language::NodePattern - # @deprecated Prefer using Node Pattern directly - # - # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#30 - def block_or_numblock_pattern(string); end - - # @deprecated Prefer using Node Pattern directly - # - # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#18 - def block_pattern(string); end - - # @deprecated Prefer using Node Pattern directly - # - # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#24 - def numblock_pattern(string); end - - # @deprecated Prefer using Node Pattern directly - # - # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#12 - def send_pattern(string); end - - private - - # source://rubocop-rspec//lib/rubocop/rspec/language/node_pattern.rb#37 - def deprecation_warning(method); end -end - -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#170 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#169 module RuboCop::RSpec::Language::Runners class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#173 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#172 def all(element = T.unsafe(nil)); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#171 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#170 RuboCop::RSpec::Language::Runners::ALL = T.let(T.unsafe(nil), Array) -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#181 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#180 module RuboCop::RSpec::Language::SharedGroups class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#183 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#182 def all(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#192 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#191 def context(element); end - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#188 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#187 def examples(element); end end end -# source://rubocop-rspec//lib/rubocop/rspec/language.rb#198 +# source://rubocop-rspec//lib/rubocop/rspec/language.rb#197 module RuboCop::RSpec::Language::Subjects class << self - # source://rubocop-rspec//lib/rubocop/rspec/language.rb#199 + # source://rubocop-rspec//lib/rubocop/rspec/language.rb#198 def all(element); end end end diff --git a/sorbet/rbi/gems/rubocop-rspec_rails@2.29.0.rbi b/sorbet/rbi/gems/rubocop-rspec_rails@2.29.0.rbi deleted file mode 100644 index d72f639dd..000000000 --- a/sorbet/rbi/gems/rubocop-rspec_rails@2.29.0.rbi +++ /dev/null @@ -1,911 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `rubocop-rspec_rails` gem. -# Please instead update this file by running `bin/tapioca gem rubocop-rspec_rails`. - - -# FIXME: This is a workaround for the following issue: -# https://github.com/rubocop/rubocop-rspec_rails/issues/8 -# -# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#3 -module RuboCop; end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#4 -module RuboCop::Cop; end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#5 -module RuboCop::Cop::RSpecRails; end - -# Checks that tests use RSpec `before` hook over Rails `setup` method. -# -# @example -# # bad -# setup do -# allow(foo).to receive(:bar) -# end -# -# # good -# before do -# allow(foo).to receive(:bar) -# end -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#19 -class RuboCop::Cop::RSpecRails::AvoidSetupHook < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#31 - def on_block(node); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#25 - def setup_call(param0 = T.unsafe(nil)); end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/avoid_setup_hook.rb#22 -RuboCop::Cop::RSpecRails::AvoidSetupHook::MSG = T.let(T.unsafe(nil), String) - -# Checks that tests use `have_http_status` instead of equality matchers. -# -# @example ResponseMethods: ['response', 'last_response'] (default) -# # bad -# expect(response.status).to be(200) -# expect(last_response.code).to eq("200") -# -# # good -# expect(response).to have_http_status(200) -# expect(last_response).to have_http_status(200) -# @example ResponseMethods: ['foo_response'] -# # bad -# expect(foo_response.status).to be(200) -# -# # good -# expect(foo_response).to have_http_status(200) -# -# # also good -# expect(response).to have_http_status(200) -# expect(last_response).to have_http_status(200) -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#28 -class RuboCop::Cop::RSpecRails::HaveHttpStatus < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#39 - def match_status(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#49 - def on_send(node); end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#71 - def response_methods; end - - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#67 - def response_methods?(name); end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#31 -RuboCop::Cop::RSpecRails::HaveHttpStatus::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#36 -RuboCop::Cop::RSpecRails::HaveHttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/have_http_status.rb#35 -RuboCop::Cop::RSpecRails::HaveHttpStatus::RUNNERS = T.let(T.unsafe(nil), Set) - -# Enforces use of symbolic or numeric value to describe HTTP status. -# -# This cop inspects only `have_http_status` calls. -# So, this cop does not check if a method starting with `be_*` is used -# when setting for `EnforcedStyle: symbolic` or -# `EnforcedStyle: numeric`. -# -# @example `EnforcedStyle: symbolic` (default) -# # bad -# it { is_expected.to have_http_status 200 } -# it { is_expected.to have_http_status 404 } -# it { is_expected.to have_http_status "403" } -# -# # good -# it { is_expected.to have_http_status :ok } -# it { is_expected.to have_http_status :not_found } -# it { is_expected.to have_http_status :forbidden } -# it { is_expected.to have_http_status :success } -# it { is_expected.to have_http_status :error } -# @example `EnforcedStyle: numeric` -# # bad -# it { is_expected.to have_http_status :ok } -# it { is_expected.to have_http_status :not_found } -# it { is_expected.to have_http_status "forbidden" } -# -# # good -# it { is_expected.to have_http_status 200 } -# it { is_expected.to have_http_status 404 } -# it { is_expected.to have_http_status 403 } -# it { is_expected.to have_http_status :success } -# it { is_expected.to have_http_status :error } -# @example `EnforcedStyle: be_status` -# # bad -# it { is_expected.to have_http_status :ok } -# it { is_expected.to have_http_status :not_found } -# it { is_expected.to have_http_status "forbidden" } -# it { is_expected.to have_http_status 200 } -# it { is_expected.to have_http_status 404 } -# it { is_expected.to have_http_status "403" } -# -# # good -# it { is_expected.to be_ok } -# it { is_expected.to be_not_found } -# it { is_expected.to have_http_status :success } -# it { is_expected.to have_http_status :error } -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#60 -class RuboCop::Cop::RSpecRails::HttpStatus < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#66 - def http_status(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#70 - def on_send(node); end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#88 - def checker_class; end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#176 -class RuboCop::Cop::RSpecRails::HttpStatus::BeStatusStyleChecker < ::RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#182 - def offense_range; end - - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#177 - def offensive?; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#186 - def prefer; end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#206 - def normalize_str; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#202 - def number; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#198 - def symbol; end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#155 -class RuboCop::Cop::RSpecRails::HttpStatus::NumericStyleChecker < ::RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#156 - def offensive?; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#160 - def prefer; end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#170 - def number; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#166 - def symbol; end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#63 -RuboCop::Cop::RSpecRails::HttpStatus::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#100 -class RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase - # @return [StyleCheckerBase] a new instance of StyleCheckerBase - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#107 - def initialize(node); end - - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#123 - def allowed_symbol?; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#115 - def current; end - - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#127 - def custom_http_status_code?; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#111 - def message; end - - # Returns the value of attribute node. - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#105 - def node; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#119 - def offense_range; end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#103 -RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase::ALLOWED_STATUSES = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#101 -RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#134 -class RuboCop::Cop::RSpecRails::HttpStatus::SymbolicStyleChecker < ::RuboCop::Cop::RSpecRails::HttpStatus::StyleCheckerBase - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#135 - def offensive?; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#139 - def prefer; end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#149 - def number; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/http_status.rb#145 - def symbol; end -end - -# Identifies redundant spec type. -# -# After setting up rspec-rails, you will have enabled -# `config.infer_spec_type_from_file_location!` by default in -# spec/rails_helper.rb. This cop works in conjunction with this config. -# If you disable this config, disable this cop as well. -# -# @example -# # bad -# # spec/models/user_spec.rb -# RSpec.describe User, type: :model do -# end -# -# # good -# # spec/models/user_spec.rb -# RSpec.describe User do -# end -# -# # good -# # spec/models/user_spec.rb -# RSpec.describe User, type: :common do -# end -# @example `Inferences` configuration -# # .rubocop.yml -# # RSpecRails/InferredSpecType: -# # Inferences: -# # services: service -# -# # bad -# # spec/services/user_spec.rb -# RSpec.describe User, type: :service do -# end -# -# # good -# # spec/services/user_spec.rb -# RSpec.describe User do -# end -# -# # good -# # spec/services/user_spec.rb -# RSpec.describe User, type: :common do -# end -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#53 -class RuboCop::Cop::RSpecRails::InferredSpecType < ::RuboCop::Cop::RSpec::Base - extend ::RuboCop::Cop::AutoCorrector - - # @param node [RuboCop::AST::BlockNode] - # @return [RuboCop::AST::PairNode, nil] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#78 - def describe_with_type(param0 = T.unsafe(nil)); end - - # @param node [RuboCop::AST::BlockNode] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#59 - def on_block(node); end - - # @param node [RuboCop::AST::BlockNode] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#59 - def on_numblock(node); end - - private - - # @param corrector [RuboCop::AST::Corrector] - # @param node [RuboCop::AST::Node] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#90 - def autocorrect(corrector, node); end - - # @param node [RuboCop::AST::PairNode] - # @return [RuboCop::AST::Node] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#110 - def detect_removable_node(node); end - - # @return [String] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#119 - def file_path; end - - # @return [Hash] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#137 - def inferences; end - - # @param node [RuboCop::AST::PairNode] - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#125 - def inferred_type?(node); end - - # @return [Symbol, nil] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#130 - def inferred_type_from_file_path; end - - # @param node [RuboCop::AST::Node] - # @return [Parser::Source::Range] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#96 - def remove_range(node); end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/inferred_spec_type.rb#56 -RuboCop::Cop::RSpecRails::InferredSpecType::MSG = T.let(T.unsafe(nil), String) - -# Check if using Minitest-like matchers. -# -# Check the use of minitest-like matchers -# starting with `assert_` or `refute_`. -# -# @example -# # bad -# assert_equal(a, b) -# assert_equal a, b, "must be equal" -# assert_not_includes a, b -# refute_equal(a, b) -# assert_nil a -# refute_empty(b) -# assert_true(a) -# assert_false(a) -# -# # good -# expect(b).to eq(a) -# expect(b).to(eq(a), "must be equal") -# expect(a).not_to include(b) -# expect(b).not_to eq(a) -# expect(a).to eq(nil) -# expect(a).not_to be_empty -# expect(a).to be(true) -# expect(a).to be(false) -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#32 -class RuboCop::Cop::RSpecRails::MinitestAssertions < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#344 - def message(preferred); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#337 - def on_assertion(node, assertion); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#325 - def on_send(node); end -end - -# TODO: replace with `BasicAssertion.subclasses` in Ruby 3.1+ -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#317 -RuboCop::Cop::RSpecRails::MinitestAssertions::ASSERTION_MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#36 -class RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - extend ::RuboCop::AST::NodePattern::Macros - - # @return [BasicAssertion] a new instance of BasicAssertion - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#45 - def initialize(expected, actual, failure_message); end - - # Returns the value of attribute actual. - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#39 - def actual; end - - # @raise [NotImplementedError] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#64 - def assertion; end - - # Returns the value of attribute expected. - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#39 - def expected; end - - # Returns the value of attribute failure_message. - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#39 - def failure_message; end - - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#60 - def negated?(node); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#51 - def replaced(node); end - - class << self - # @raise [NotImplementedError] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#41 - def minitest_assertion; end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#253 -class RuboCop::Cop::RSpecRails::MinitestAssertions::EmptyAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#269 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#265 - def match(actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#261 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#254 -RuboCop::Cop::RSpecRails::MinitestAssertions::EmptyAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#70 -class RuboCop::Cop::RSpecRails::MinitestAssertions::EqualAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#86 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#82 - def match(expected, actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#78 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#71 -RuboCop::Cop::RSpecRails::MinitestAssertions::EqualAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#295 -class RuboCop::Cop::RSpecRails::MinitestAssertions::FalseAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#309 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#305 - def match(actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#301 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#296 -RuboCop::Cop::RSpecRails::MinitestAssertions::FalseAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#158 -class RuboCop::Cop::RSpecRails::MinitestAssertions::InDeltaAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # @return [InDeltaAssertion] a new instance of InDeltaAssertion - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#174 - def initialize(expected, actual, delta, fail_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#180 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#170 - def match(expected, actual, delta, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#166 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#159 -RuboCop::Cop::RSpecRails::MinitestAssertions::InDeltaAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#136 -class RuboCop::Cop::RSpecRails::MinitestAssertions::IncludesAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#152 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#148 - def match(collection, expected, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#144 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#137 -RuboCop::Cop::RSpecRails::MinitestAssertions::IncludesAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#114 -class RuboCop::Cop::RSpecRails::MinitestAssertions::InstanceOfAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#130 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#126 - def match(expected, actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#122 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#115 -RuboCop::Cop::RSpecRails::MinitestAssertions::InstanceOfAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#92 -class RuboCop::Cop::RSpecRails::MinitestAssertions::KindOfAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#108 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#104 - def match(expected, actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#100 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#93 -RuboCop::Cop::RSpecRails::MinitestAssertions::KindOfAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#314 -RuboCop::Cop::RSpecRails::MinitestAssertions::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#210 -class RuboCop::Cop::RSpecRails::MinitestAssertions::MatchAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#225 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#221 - def match(matcher, actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#217 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#211 -RuboCop::Cop::RSpecRails::MinitestAssertions::MatchAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#231 -class RuboCop::Cop::RSpecRails::MinitestAssertions::NilAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#247 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#243 - def match(actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#239 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#232 -RuboCop::Cop::RSpecRails::MinitestAssertions::NilAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#186 -class RuboCop::Cop::RSpecRails::MinitestAssertions::PredicateAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#204 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#198 - def match(subject, predicate, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#194 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#187 -RuboCop::Cop::RSpecRails::MinitestAssertions::PredicateAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#323 -RuboCop::Cop::RSpecRails::MinitestAssertions::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#275 -class RuboCop::Cop::RSpecRails::MinitestAssertions::TrueAssertion < ::RuboCop::Cop::RSpecRails::MinitestAssertions::BasicAssertion - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#289 - def assertion; end - - class << self - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#285 - def match(actual, failure_message); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#281 - def minitest_assertion(param0 = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/minitest_assertions.rb#276 -RuboCop::Cop::RSpecRails::MinitestAssertions::TrueAssertion::MATCHERS = T.let(T.unsafe(nil), Array) - -# Enforces use of `be_invalid` or `not_to` for negated be_valid. -# -# @example EnforcedStyle: not_to (default) -# # bad -# expect(foo).to be_invalid -# -# # good -# expect(foo).not_to be_valid -# -# # good (with method chain) -# expect(foo).to be_invalid.and be_odd -# @example EnforcedStyle: be_invalid -# # bad -# expect(foo).not_to be_valid -# -# # good -# expect(foo).to be_invalid -# -# # good (with method chain) -# expect(foo).to be_invalid.or be_even -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#32 -class RuboCop::Cop::RSpecRails::NegationBeValid < ::RuboCop::Cop::Base - include ::RuboCop::Cop::ConfigurableEnforcedStyle - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#45 - def be_invalid?(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#40 - def not_to?(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#49 - def on_send(node); end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#74 - def message(_matcher); end - - # @return [Boolean] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#61 - def offense?(node); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#70 - def offense_range(node); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#87 - def replaced_matcher; end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#78 - def replaced_runner; end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#36 -RuboCop::Cop::RSpecRails::NegationBeValid::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/negation_be_valid.rb#37 -RuboCop::Cop::RSpecRails::NegationBeValid::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) - -# Prefer to travel in `before` rather than `around`. -# -# @example -# # bad -# around do |example| -# freeze_time do -# example.run -# end -# end -# -# # good -# before { freeze_time } -# -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#26 -class RuboCop::Cop::RSpecRails::TravelAround < ::RuboCop::Cop::Base - extend ::RuboCop::Cop::AutoCorrector - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#38 - def extract_run_in_travel(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#47 - def match_around_each?(param0 = T.unsafe(nil)); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#54 - def on_block(node); end - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#54 - def on_numblock(node); end - - private - - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#69 - def autocorrect(corrector, node, run_node, around_node); end - - # @param node [RuboCop::AST::BlockNode] - # @return [RuboCop::AST::BlockNode, nil] - # - # source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#82 - def extract_surrounding_around_block(node); end -end - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#29 -RuboCop::Cop::RSpecRails::TravelAround::MSG = T.let(T.unsafe(nil), String) - -# source://rubocop-rspec_rails//lib/rubocop/cop/rspec_rails/travel_around.rb#31 -RuboCop::Cop::RSpecRails::TravelAround::TRAVEL_METHOD_NAMES = T.let(T.unsafe(nil), Set) - -# source://rubocop-rspec_rails//lib/rubocop-rspec_rails.rb#24 -class RuboCop::Cop::Registry - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#51 - def initialize(cops = T.unsafe(nil), options = T.unsafe(nil)); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#232 - def ==(other); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#97 - def contains_cop_matching?(names); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#179 - def cops; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#224 - def cops_for_department(department); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#93 - def department?(name); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#147 - def department_missing?(badge, name); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#72 - def departments; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#193 - def disabled(config); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#67 - def dismiss(cop); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#247 - def each(&block); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#189 - def enabled(config); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#197 - def enabled?(cop, config); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#213 - def enabled_pending_cop?(cop_cfg, config); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#63 - def enlist(cop); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#253 - def find_by_cop_name(cop_name); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#260 - def find_cops_by_directive(directive); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#265 - def freeze; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#184 - def length; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#220 - def names; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#228 - def names_for_department(department); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#49 - def options; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#151 - def print_warning(name, path); end - - # source://rubocop-rspec_rails//lib/rubocop-rspec_rails.rb#26 - def qualified_cop_name(name, path, warn: T.unsafe(nil)); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#166 - def qualify_badge(badge); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#243 - def select(&block); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#236 - def sort!; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#174 - def to_h; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#159 - def unqualified_cop_names; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#78 - def with_department(department); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#84 - def without_department(department); end - - private - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#283 - def clear_enrollment_queue; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#279 - def initialize_copy(reg); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#309 - def registered?(badge); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#299 - def resolve_badge(given_badge, real_badge, source_path); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#295 - def with(cops); end - - class << self - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#22 - def all; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#274 - def global; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#44 - def qualified_cop?(name); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#26 - def qualified_cop_name(name, origin); end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#40 - def reset!; end - - # source://rubocop/1.64.1/lib/rubocop/cop/registry.rb#32 - def with_temporary_global(temp_global = T.unsafe(nil)); end - end -end - -# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#4 -module RuboCop::RSpecRails; end - -# Version information for the RSpec Rails RuboCop plugin. -# -# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#6 -module RuboCop::RSpecRails::Version; end - -# source://rubocop-rspec_rails//lib/rubocop/rspec_rails/version.rb#7 -RuboCop::RSpecRails::Version::STRING = T.let(T.unsafe(nil), String)