-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
82 lines (64 loc) · 1.85 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Enable all new cops.
AllCops:
NewCops: enable
# Allow setting of date in gemspec.
Gemspec/DeprecatedAttributeAssignment:
Enabled: false
# Do not require multi-factor authentication for RubyGems.
Gemspec/RequireMFA:
Enabled: false
# Allow extra blank lines.
Layout/EmptyLines:
Enabled: false
# Allow extra empty line at block body beginning.
Layout/EmptyLinesAroundBlockBody:
Enabled: false
# Allow extra empty line at class body beginning.
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: beginning_only
# Allow extra empty lines around module body.
Layout/EmptyLinesAroundModuleBody:
Enabled: false
# Allow extra spacing.
Layout/ExtraSpacing:
Enabled: false
# No space before block parameters.
Layout/SpaceInsideBlockBraces:
SpaceBeforeBlockParameters: false
# Disable metrics.
Metrics:
Enabled: false
# Use %Q() instead of %() for string percent literals.
Style/BarePercentLiterals:
EnforcedStyle: percent_q
# Allow missing top-level documentation comment for backports.rb file.
Style/Documentation:
Exclude:
- lib/lanyon/backports.rb
# Do not enforce a specific string formatting method.
Style/FormatString:
Enabled: false
# Allow unnamed format string tokens.
Style/FormatStringToken:
Enabled: false
# Allow missing frozen string literal comment in some files.
Style/FrozenStringLiteralComment:
Exclude:
- Gemfile
- demo/config.ru
# Use Ruby 1.9 hash syntax.
# Do not enforce the hash value shorthand syntax of Ruby 3.1.
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
EnforcedShorthandSyntax: either
# Allow parallel assignment.
Style/ParallelAssignment:
Enabled: false
# Allow %r{} for regular expressions in test files.
# (To avoid ambiguous regexp literal warnings.)
Style/RegexpLiteral:
Exclude:
- "test/test_*.rb"
# Use double quotes for string literals.
Style/StringLiterals:
EnforcedStyle: double_quotes