-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
I tried to cut a new release, but it seems some recent change messed up the docs generation:
/Users/bbatsov/projects/rubocop/lib/rubocop/cops_documentation_generator.rb:321: warning: Passing only keyword arguments to Struct#initialize will behave differently from Ruby 3.2. Please use a Hash literal like .new({k: v}) instead of .new(k: v).
rake aborted!
NoMethodError: undefined method `none?' for nil:NilClass
return if example_objects.none?
^^^^^^
/Users/bbatsov/projects/rubocop/lib/rubocop/cops_documentation_generator.rb:76:in `check_examples_to_have_the_default_enforced_style!'
/Users/bbatsov/projects/rubocop/lib/rubocop/cops_documentation_generator.rb:65:in `cops_body'
/Users/bbatsov/projects/rubocop/lib/rubocop/cops_documentation_generator.rb:323:in `print_cop_with_doc'
/Users/bbatsov/projects/rubocop/lib/rubocop/cops_documentation_generator.rb:296:in `block in print_cops_of_department'
I don't have time to debug this right now, but if I no one tackles this until Thursday I'll sort it out then.