-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
93 lines (78 loc) · 1.9 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
83
84
85
86
87
88
89
90
91
92
93
AllCops:
EnabledByDefault: true
DisplayStyleGuide: true
StyleGuideBaseURL: https://github.com/voxable-labs/voxable-style-guide
# Force table-style hash alignment.
Layout/HashAlignment:
EnforcedColonStyle: table
# Don't overwrite routes, as this can change interpretation.
Style/HashSyntax:
Exclude:
- ./config/routes.rb
Style/StringHashKeys:
Exclude:
- ./config/routes.rb
# Force equal sign alignment.
Layout/ExtraSpacing:
ForceEqualSignAlignment: true
# Don't require copyright notices
Style/Copyright:
Enabled: false
# Prefer keyword arguments to options hashes
# https://github.com/voxable-labs/ruby-style-guide#no-optional-hash-params
Style/OptionHash:
Enabled: true
# --||----------------------
# || Rails
# ==||======================
# Don't measure class length for controllers.
Metrics/ClassLength:
Exclude:
- ./app/bots/messenger_bot/controllers/**/*.rb
# Don't require documentation for ActiveRecord migrations.
Style/DocumentationMethod:
Exclude:
- db/migrate/*.rb
# --||----------------------
# || RSpec
# ==||======================
# Ignore block length in RSPec and hg blocks.
Metrics/BlockLength:
Exclude:
- spec/**/*.rb
IgnoredMethods:
- class_methods
- dynamic
- gallery
# Use braces for block delimiters in RSpec.
Style/BlockDelimiters:
EnforcedStyle: semantic
FunctionalMethods:
- before
- let
- let!
- subject
- watch
- expect
# Ignore absence of method call parentheses in RSpec, gemspecs,
# migrations and Dangerfile, and ignore Heliogram methods.
Style/MethodCallWithArgsParentheses:
Exclude:
- spec/**/*.rb
- ./*.gemspec
- Gemfile
- Dangerfile
- db/migrate/*.rb
IgnoredMethods:
- require
- raise
- button
- card
- gallery
- before_handler
# --||----------------------
# || Danger
# ==||======================
Style/ImplicitRuntimeError:
Exclude:
- Dangerfile