File: multiline_offense.rb

package info (click to toggle)
ruby-ruby-lsp 0.26.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,676 kB
  • sloc: ruby: 35,294; javascript: 29; sh: 7; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# typed: true
# frozen_string_literal: true

# rubocop:enable Metrics/MethodLength
#: -> void
def very_complex_method
  if foo
    do_something
  else
    do_something_else
  end

  if bar
    do_the_same
  else
    do_something_different
  end

  baz
end