Skip to content

Commit 65f5d1e

Browse files
committed
Enable Style/MethodDefParentheses rule
Enable parenthesis for method definitions so that we have more consistency in the codebase. In addition to that, I disabled running RuboCop on generated parser files.
1 parent d3195e1 commit 65f5d1e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.rubocop.yml

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ AllCops:
22
TargetRubyVersion: 3.0
33
DisabledByDefault: true
44
SuggestExtensions: false
5+
Exclude:
6+
- "lib/rdoc/rd/block_parser.rb"
7+
- "lib/rdoc/rd/inline_parser.rb"
8+
- "lib/rdoc/markdown.rb"
9+
- "lib/rdoc/markdown/literals.rb"
10+
511

612
Layout/TrailingWhitespace:
713
Enabled: true
@@ -20,3 +26,6 @@ Layout/SpaceAfterComma:
2026

2127
Lint/UnreachableCode:
2228
Enabled: true
29+
30+
Style/MethodDefParentheses:
31+
Enabled: true

0 commit comments

Comments
 (0)