Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kaigi Effect

ydah
June 13, 2024

Kaigi Effect

RubyKaigi 2024 KaigiEffect発表会「Kaigi Effect」の発表スライド。
#kyobashirb https://kyobashirb.connpass.com/event/320687/

ydah

June 13, 2024
Tweet

More Decks by ydah

Other Decks in Programming

Transcript

  1. ✦ Yudai TAKADA ✦ GitHub: @ydah / X: @ydah_ ✦

    Software Engineer at ANDPAD, Inc. ✦ Co-Founder of Kyobashi.rb ✦ Cheif Organizer of Osaka RubyKaigi 04 ✦ RuboCop RSpec team ✦ Committer of Lrama / committee About me
  2. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan committee v5.3.0 has been released
  3. Autocorrect with “Format on save” Very annoying if the code

    being edited is rewritten RSpec `fit` always autocorrected to `it`… Excessive Autocorrect in LSP
  4. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Support `AutoCorrect: contextual` option for LSP
  5. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan If you do not want "Format on Save" to be autocorrected, add `AutoCorrect: contextual`.
  6. RuboCop RSpec v2.31.0 RuboCop factory_bot v2.26.0 RuboCop RSpecRails v2.29.0 ※

    RuboCop Capybara did not have the corresponding cop, so it is not supported. Support version
  7. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan rubocop-rspec v3 has come!
  8. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Extract departments to gem
  9. Department of RuboCop RSpec We have several departments: RSpec RSpec/Rails

    (for rspec-rails) RSpec/FactoryBot (for factory_bot) RSpec/Capybara (for capybara)
  10. Destination and Status Department Extract to Status RSpec/Capybara rubocop-capybara Extracted

    in v2.18.0 RSpec/FactoryBot rubocop- factory_bot Extracted in v2.22.0 RSpec/Rails rubocop-rspec_rails Extracted in v2.28.0
  11. Migration guide Install the corresponding gem and add to `.rubocop.yml`.

    # Gemf i le group :test do gem 'rubocop - rspec' gem 'rubocop - capybara' end require: - rubocop - rspec - rubocop - capybara
  12. Migration guide Remove the old department in `.rubocop.yml` RSpec/Capybara: Enabled:

    false RSpec/FactoryBot: Enabled: false RSpec/Rails: Enabled: false
  13. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Remove deprecated code
  14. `RuboCop::RSpec::Language::NodePattern` Helper methods to detect RSpec DSL used with send

    and block def send_pattern(string) "(send #rspec? # { string} . . . )" end
  15. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Remove deprecated cops
  16. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan All previously pending cops are now enabled by default
  17. Activities in Lrama Improve parameterizing rules Support for Named Reference

    in callers Add support for adjusting Index to Inline rules Countermeasures against freeze strings in Ruby 3.4 Improvements for Lrama developers Support output of rules not used in reporting functions
  18. Me

  19. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Cheif Organizer / Designer
  20. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Request to Keynote Speakers
  21. May 15th - 17th, 2024 NAHA CULTURAL ARTS THEATER NAHArt,

    Okinawa, Japan Registration and proposals are welcome!