forked from SwiftGen/SwiftGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
56 lines (45 loc) · 1.3 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
########################################
# Personal Preferences
# It's ok to add some spaces between stuff to make it more readable!
Layout/TrailingEmptyLines:
Enabled: false
# Personal preference (we don't find `json, = Open3.capture3(…)` with the `x, = ` syntax super readable)
Style/TrailingUnderscoreVariable:
Enabled: false
########################################
# Some specific files exceptions
# podspecs are ruby with a special extension
Naming/FileName:
Exclude:
- '*.podspec'
# Rake uses `task :x => [deps]`, we don't want to convert it to `task x: [deps]`
# Podfile also has specific DSL so it's ok to not be strict about Hash syntax there
Style/HashSyntax:
Exclude:
- 'Podfile'
- 'Rakefile'
- 'rakelib/*.rake'
# Danger uses `fail` as a keyword, we don't want rubocop to replace it with `raise`
Style/SignalException:
Exclude:
- 'Dangerfile'
########################################
# Metrics
Metrics/ClassLength:
Max: 150
Metrics/MethodLength:
Max: 50
Metrics/BlockLength:
Enabled: false
Layout/LineLength:
Max: 180
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/AbcSize:
Enabled: false
########################################
# Enable new cops of recent rucocop updates by default
AllCops:
NewCops: enable