forked from spothero/BarcodeHero-iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
42 lines (34 loc) · 1004 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
# Updated for v0.70.0
AllCops:
Exclude:
- 'Pods/**/*'
Include:
- '**/Dangerfile'
- '**/Fastfile'
- '**/Gemfile'
- '**/Podfile'
- '**/*.rb'
- '**/*.podspec'
# Matches SwiftLint line length
Layout/LineLength:
Max: 150
# ABC size = Assignment Branch Condition size, kind of like cyclomatic complexity
# Fastlane as a whole kind of blows up when this is enabled, so we're turning it off (at least for now)
Metrics/AbcSize:
Enabled: false
# We don't care about block length right now
Metrics/BlockLength:
Enabled: false
# We don't care about method length right now
Metrics/MethodLength:
Enabled: false
# This means we prefer the use of !!foo instead of !foo.nil?
Style/DoubleNegation:
Enabled: false
# Matches SwiftLint rules on trailing commas in multiline
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
# Opt out of using %w or %W for arrays of words.
# Example: ['Foo', 'Bar'] instead of %w[Foo Bar]
Style/WordArray:
Enabled: false