rdoc
rdoc copied to clipboard
Update RuboCop task in Rakefile
If the RuboCop version is 1.31 or later then use rubocop:autocorrect task instead of deprecated rubocop:auto_correct
in the Rakefile. Otherwise use the conventional rubocop:auto_correct task.
See also: RuboCop changelog > 1.31.0 (2022-06-27) - Changes > https://github.com/rubocop/rubocop/pull/10709