-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
.rubocop.yml
38 lines (32 loc) · 951 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AllCops:
TargetRubyVersion: 3.3
NewCops: enable
Style/GlobalVars:
Enabled: false
Layout/LineLength:
Enabled: false
Naming/FileName:
Enabled: false
# Copied from https://github.com/instructure/rubocop-inst/blob/main/rubocop.yml
Metrics:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method # https://github.com/rubocop/ruby-style-guide/issues/821
Style/EmptyElse:
EnforcedStyle: empty # explicit nil indicates programmer intent
Style/FormatStringToken:
EnforcedStyle: template
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
Style/PercentQLiterals:
EnforcedStyle: upper_case_q
Style/PerlBackrefs:
Enabled: false # Regexp.last_match(1) is far worse than $1
Style/RescueStandardError:
EnforcedStyle: implicit
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex