This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
.rubocop.yml
123 lines (101 loc) · 2.28 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
111
112
113
114
115
116
117
118
119
120
121
122
123
Style/PercentLiteralDelimiters:
Enabled: false
Style/NumericPredicate:
Enabled: false
# this would cause errors with long lanes
Metrics/BlockLength:
Enabled: false
# Catch all errors
Lint/RescueWithoutErrorClass:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
# Better too much 'return' than one missing
Style/RedundantReturn:
Enabled: false
# Having if in the same line might not always be good
Style/IfUnlessModifier:
Enabled: false
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 320
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 370
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 17
Metrics/PerceivedComplexity:
Max: 18
# Sometimes it's easier to read without guards
Style/GuardClause:
Enabled: false
# We allow both " and '
Style/StringLiterals:
Enabled: false
# e.g.
# def self.is_supported?(platform)
# we may never use `platform`
Lint/UnusedMethodArgument:
Enabled: false
# This would reject is_ in front of methods
# We use `is_supported?` everywhere already
Style/PredicateName:
Enabled: false
AllCops:
TargetRubyVersion: 2.0
Include:
- '*/lib/assets/*Template'
- '*/lib/assets/*TemplateAndroid'
Exclude:
- '**/lib/assets/custom_action_template.rb'
- './vendor/**/*'
- '**/lib/assets/DefaultFastfileTemplate'
- '**/spec/fixtures/broken_files/broken_file.rb'
# They have not to be snake_case
Style/FileName:
Exclude:
- '**/Dangerfile'
- '**/Brewfile'
- '**/Gemfile'
- '**/Podfile'
- '**/Rakefile'
- '**/Fastfile'
- '**/Deliverfile'
- '**/Snapfile'
- '**/*.gemspec'
# We're not there yet
Style/Documentation:
Enabled: false
# Added after upgrade to 0.38.0
Style/MutableConstant:
Enabled: false
# ( ) for method calls
Style/MethodCallWithArgsParentheses:
Enabled: true
IgnoredMethods:
- 'require'
- 'require_relative'
- 'fastlane_require'
- 'gem'
- 'program'
- 'command'
- 'raise'
- 'attr_accessor'
- 'attr_reader'
- 'desc'
- 'lane'
- 'private_lane'
- 'platform'
# rspec tests code below
- 'to'
- 'describe'
- 'it'
- 'be'
- 'context'
- 'before'
- 'after'