1+ # kind_of? is a good way to check a type
2+ Style/ClassCheck :
3+ EnforcedStyle : kind_of?
4+
5+ # It's better to be more explicit about the type
6+ Style/BracesAroundHashParameters :
7+ Enabled : false
8+
9+ # specs sometimes have useless assignments, which is fine
10+ Lint/UselessAssignment :
11+ Exclude :
12+ - ' **/spec/**/*'
13+
14+ # We could potentially enable the 2 below:
15+ Style/IndentHash :
16+ Enabled : false
17+
18+ Style/AlignHash :
19+ Enabled : false
20+
21+ # HoundCI doesn't like this rule
22+ Style/DotPosition :
23+ Enabled : false
24+
25+ # We allow !! as it's an easy way to convert ot boolean
26+ Style/DoubleNegation :
27+ Enabled : false
28+
29+ # Sometimes we allow a rescue block that doesn't contain code
30+ Lint/HandleExceptions :
31+ Enabled : false
32+
33+ # Cop supports --auto-correct.
34+ Lint/UnusedBlockArgument :
35+ Enabled : false
36+
37+ # Needed for $verbose
38+ Style/GlobalVars :
39+ Enabled : false
40+
41+ # We want to allow class Fastlane::Class
42+ Style/ClassAndModuleChildren :
43+ Enabled : false
44+
45+ # $? Exit
46+ Style/SpecialGlobalVars :
47+ Enabled : false
48+
49+ Metrics/AbcSize :
50+ Max : 60
51+ Exclude :
52+ - ' **/lib/*/options.rb'
53+
54+ # The %w might be confusing for new users
55+ Style/WordArray :
56+ MinSize : 19
57+
58+ # raise and fail are both okay
59+ Style/SignalException :
60+ Enabled : false
61+
62+ # Better too much 'return' than one missing
63+ Style/RedundantReturn :
64+ Enabled : false
65+
66+ # Having if in the same line might not always be good
67+ Style/IfUnlessModifier :
68+ Enabled : false
69+
70+ # and and or is okay
71+ Style/AndOr :
72+ Enabled : false
73+
74+ # Configuration parameters: CountComments.
75+ Metrics/ClassLength :
76+ Max : 320
77+
78+ Metrics/CyclomaticComplexity :
79+ Max : 17
80+
81+ # Configuration parameters: AllowURI, URISchemes.
82+ Metrics/LineLength :
83+ Max : 370
84+
85+ # Configuration parameters: CountKeywordArgs.
86+ Metrics/ParameterLists :
87+ Max : 17
88+
89+ Metrics/PerceivedComplexity :
90+ Max : 18
91+
92+ # Sometimes it's easier to read without guards
93+ Style/GuardClause :
94+ Enabled : false
95+
96+ # We allow both " and '
97+ Style/StringLiterals :
98+ Enabled : false
99+
100+ # something = if something_else
101+ # that's confusing
102+ Style/ConditionalAssignment :
103+ Enabled : false
104+
105+ # Better to have too much self than missing a self
106+ Style/RedundantSelf :
107+ Enabled : false
108+
109+ # e.g.
110+ # def self.is_supported?(platform)
111+ # we may never use `platform`
112+ Lint/UnusedMethodArgument :
113+ Enabled : false
114+
115+ # the let(:key) { ... }
116+ Lint/ParenthesesAsGroupedExpression :
117+ Exclude :
118+ - ' **/spec/**/*'
119+
120+ # This would reject is_ in front of methods
121+ # We use `is_supported?` everywhere already
122+ Style/PredicateName :
123+ Enabled : false
124+
125+ # We allow the $
126+ Style/PerlBackrefs :
127+ Enabled : false
128+
129+ # Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
130+ Style/SpaceAroundOperators :
131+ Exclude :
132+ - ' **/spec/actions_specs/xcodebuild_spec.rb'
133+
134+ Metrics/MethodLength :
135+ Exclude :
136+ - ' **/lib/fastlane/actions/*.rb'
137+ - ' **/bin/fastlane'
138+ - ' **/lib/*/options.rb'
139+ Max : 60
140+
141+ AllCops :
142+ Include :
143+ - ' **/fastlane/Fastfile'
144+ Exclude :
145+ - ' **/lib/assets/custom_action_template.rb'
146+ - ' ./vendor/**/*'
147+
148+ # We're not there yet
149+ Style/Documentation :
150+ Enabled : false
151+
152+ # Added after upgrade to 0.38.0
153+ Style/MutableConstant :
154+ Enabled : false
155+
156+ # length > 0 is good
157+ Style/ZeroLengthPredicate :
158+ Enabled : false
159+
160+ # Adds complexity
161+ Style/IfInsideElse :
162+ Enabled : false
0 commit comments