-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.rubocop.yml
69 lines (51 loc) · 1.41 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
inherit_from: .rubocop_todo.yml
AllCops:
AllowSymlinksInCacheRootDirectory: true
Exclude:
- lib/wareki/*_def.rb
- spec/**/*
- tmp/**/*
- build-util/*
Gemspec/RequiredRubyVersion:
Exclude:
- 'wareki.gemspec' # Required to support 2.0
Style/NumericPredicate:
EnforcedStyle: comparison # For ruby < 2.3
Gemspec/RubyVersionGlobalsUsage:
Exclude:
- wareki.gemspec
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Style/AndOr:
EnforcedStyle: conditionals
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/PerlBackrefs:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/RegexpLiteral:
EnforcedStyle: mixed
Naming/MethodParameterName:
AllowedNames: jd, d, v
Layout/HeredocIndentation:
Enabled: false # Disable for ruby 2.0...
Metrics/LineLength:
Max: 130
Style/DoubleNegation:
Exclude:
- 'build-util/gen-jp-cal-def.rb'
- 'lib/wareki/date.rb'
Metrics/ClassLength:
Max: 220
Metrics/MethodLength:
Max: 50
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
EnforcedStyle: assign_inside_condition
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
ExcludedMethods:
- each_char # for Kansuji.kan_to_i...