Add new cop `Style/EndlessMethod`. by dvandersluis · Pull Request #9281 · rubocop/rubocop

Style/EndlessMethod by default enforces that endless methods definitions must be on a single line (EnforcedStyle: allow). It can also be configured to disallow endless method definitions (EnforcedS...