Skip to content

Commit 35f2ab9

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 aa9f509 commit 35f2ab9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.rubocop.yml

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ AllCops:
22
TargetRubyVersion: 3.0
33
DisabledByDefault: true
44
SuggestExtensions: false
5+
Exclude:
6+
# Exclude files that are auto generated
7+
- "lib/rdoc/rd/block_parser.rb"
8+
- "lib/rdoc/rd/inline_parser.rb"
9+
- "lib/rdoc/markdown.rb"
10+
- "lib/rdoc/markdown/literals.rb"
11+
# Exclude dependency files when installing them under vendor
12+
- "vendor/**/*"
513

614
Layout/TrailingWhitespace:
715
Enabled: true
@@ -20,3 +28,6 @@ Layout/SpaceAfterComma:
2028

2129
Lint/UnreachableCode:
2230
Enabled: true
31+
32+
Style/MethodDefParentheses:
33+
Enabled: true

0 commit comments

Comments
 (0)