
2/3/2021 · Thong Kuah
What this post added
This post details the technical approach taken to automatically fix thousands of Ruby 2.7 deprecation warnings related to keyword arguments. It describes the use of the Deprecation Toolkit gem with RSpec tests to capture runtime warnings and the development of a custom RuboCop check (`Lint/LastKeywordArgument`) to statically analyze and autocorrect these warnings. The integration of this check into GitLab CI pipelines using artifacts is also explained, enabling centralized reporting of remaining warnings.