-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
45 lines (38 loc) · 920 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
38
39
40
41
42
43
44
45
inherit_mode:
merge:
- Include
AllCops:
Exclude:
- 'build/**/*'
- 'vendor/**/*'
Include:
- 'fastlane/Pluginfile'
NewCops: enable
# this would cause errors with long lanes
Metrics/BlockLength:
Enabled: true
Max: 35
AllowedMethods: ['platform', 'for_platform', 'abstract_target']
# Default is too restrictive, when optional properties have to be checked
Metrics/MethodLength:
Enabled: true
Max: 15
# Lane description and gem lines can be long
Layout/LineLength:
Enabled: true
Max: 100
AllowedPatterns: ['^gem', '^(\s+|)desc', '^(\s+|)UI.']
# They have not to be snake_case
Naming/FileName:
Exclude:
- '**/Appfile'
- '**/Gemfile'
- '**/Pluginfile'
- '**/Fastfile'
# Variables have to be as described in fastlane documentation
Style/RedundantInterpolation:
Exclude:
- '**/Appfile'
# CocoaPods usual word array
Style/WordArray:
EnforcedStyle: brackets