forked from SwiftGen/SwiftGenPlugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
54 lines (43 loc) · 1.2 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
########################################
# 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]`
Style/HashSyntax:
Exclude:
- '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