-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
require: | ||
- rubocop-minitest | ||
- rubocop-packaging | ||
|
||
AllCops: | ||
NewCops: enable | ||
StyleGuideBaseURL: https://rubystyle.guide | ||
|
||
Bundler/OrderedGems: { Include: ['*.gemspec'] } | ||
|
||
# Documentation | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Allow more flexibility with string literals | ||
Style/StringLiterals: | ||
Enabled: true | ||
EnforcedStyle: single_quotes | ||
|
||
# Enforce dots on the next line for multi-line method calls | ||
Layout/DotPosition: | ||
EnforcedStyle: trailing | ||
|
||
Layout/LineLength: | ||
Max: 120 | ||
|
||
# Enforce comma after the last item of a multiline array or hash | ||
Style/TrailingCommaInArrayLiteral: | ||
EnforcedStyleForMultiline: comma | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
EnforcedStyleForMultiline: comma | ||
|
||
# Encourage the use of method call with args parentheses | ||
Style/MethodCallWithArgsParentheses: | ||
Enabled: true | ||
EnforcedStyle: require_parentheses | ||
|
||
# Allow guard clauses | ||
Style/GuardClause: | ||
Enabled: true | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Layout/EmptyLineAfterMagicComment: | ||
Enabled: true | ||
|
||
# Exclude test files from BlockComments check | ||
Style/BlockComments: | ||
Exclude: | ||
- 'test/**/*' | ||
|
||
# Naming conventions | ||
Naming/PredicateName: | ||
Enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters