Skip to content

Commit c912ade

Browse files
committed
Add note to Style/EmptyMethod documentation about autocorrection re: Layout/LineLength.
1 parent 83d500f commit c912ade

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rubocop/cop/style/empty_method.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ module Style
1111
# NOTE: A method definition is not considered empty if it contains
1212
# comments.
1313
#
14+
# NOTE: Autocorrection will not be applied for the `compact` style
15+
# if the resulting code is longer than the `Max` configuration for
16+
# `Layout/LineLength`, but an offense will still be registered.
17+
#
1418
# @example EnforcedStyle: compact (default)
1519
# # bad
1620
# def foo(bar)

0 commit comments

Comments
 (0)