-
Notifications
You must be signed in to change notification settings - Fork 134
/
.rubocop.yml
110 lines (87 loc) · 1.81 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
require:
- rubocop-rails
AllCops:
TargetRubyVersion: 3.2
TargetRailsVersion: 7.0
DisabledByDefault: true
SuggestExtensions: false
DisplayStyleGuide: true
Exclude:
- 'vendor/**/*'
- 'node_modules/**/*'
- 'tmp/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'lib/omni_auth/**/*'
CacheRootDirectory: tmp
Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
- 'config.ru'
- 'Gemfile'
- 'Rakefile'
- 'config/**/*'
# Some blocks are longer.
Metrics/BlockLength:
Max: 250
AllowedMethods:
- 'namespace'
- 'create_table'
Exclude:
- 'config/**/*.rb'
- 'spec/**/*.rb'
Layout/LineLength:
Max: 120
Exclude:
- 'config/**/*.rb'
- 'spec/**/*.rb'
- lib/zealot/backup/manager.rb
- app/services/create_sample_apps_service.rb
Metrics/MethodLength:
Max: 60
Metrics/ClassLength:
Max: 250
Exclude:
- app/models/release.rb
Metrics/ModuleLength:
Max: 180
# Raise complexity metrics
Metrics/AbcSize:
Max: 40
Exclude:
- 'lib/backup/**/*'
- app/models/apple_key.rb
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/SpecialGlobalVars:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
# We do not need to support Ruby 1.9, so this is good to use.
Style/SymbolArray:
Enabled: true
Lint/EmptyWhen:
Enabled: false
Style/EmptyMethod:
Enabled: false
# Disable %w or %W instead for an array of words
Style/WordArray:
Enabled: false
Naming/AccessorMethodName:
Enabled: true
Style/RescueStandardError:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
Naming/PredicateName:
Enabled: true
Exclude:
- app/serializers/channel_serializer.rb
Layout/HashAlignment:
Enabled: false