forked from glebm/i18n-tasks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
80 lines (58 loc) · 1.24 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
70
71
72
73
74
75
76
77
78
79
80
inherit_from: .rubocop_todo.yml
require:
- rubocop-rake
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.6
NewCops: enable
SuggestExtensions: false
Exclude:
- 'tmp/**/*'
- 'vendor/bundle/**/*'
- 'spec/fixtures/**/*'
Layout/LineLength:
Max: 120
Lint/UnusedMethodArgument:
IgnoreEmptyMethods: true
Metrics/AbcSize:
Max: 30
Metrics/ClassLength:
Max: 125
Exclude:
- 'lib/i18n/tasks/cli.rb'
Metrics/CyclomaticComplexity:
Max: 12
Metrics/BlockLength:
Max: 30
Exclude:
- 'spec/**/*.rb'
Metrics/MethodLength:
Max: 25
Metrics/PerceivedComplexity:
Max: 12
Naming/MethodParameterName:
Enabled: false
Security/YAMLLoad:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/FormatStringToken:
# Rubocop confuses i18n interpolations with the `format` ones.
Enabled: false
Style/GuardClause:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/StderrPuts:
# This is intentional, i18n-tasks stderr output is mostly anything but warnings.
Enabled: false
Style/SpecialGlobalVars:
Enabled: false
Style/SignalException:
EnforcedStyle: semantic
Style/SingleLineBlockParams:
Enabled: false