-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
74 lines (61 loc) · 1.15 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
AllCops:
NewCops: enable
Exclude:
- db/schema.rb
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Layout/LineLength:
Max: 160
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
Metrics/AbcSize:
Max: 30
Metrics/BlockLength:
Exclude:
- '*.gemspec'
- 'Rakefile'
- '**/*.rake'
- 'test/**/*_test.rb'
- 'spec/**/*_spec.rb'
- 'spec/**/*_context.rb'
IgnoredMethods:
- resource
- params
- requires
- route_param
Metrics/MethodLength:
Exclude:
- 'db/migrate/*.rb'
Naming/FileName:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BlockDelimiters:
Exclude:
- 'spec/factories/**/*.rb'
EnforcedStyle: semantic
FunctionalMethods:
- before
- let
- let!
- subject
- watch
- expect
- uniq
- git_source
- its
- sequence
- default_scope
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/SingleLineMethods:
Exclude:
- 'app/policies/application_policy.rb'
Style/Documentation:
Exclude:
- 'db/migrate/*.rb'
- 'app/policies/*_policy.rb'
Style/FrozenStringLiteralComment:
Enabled: false