forked from tuffk/Logstash-output-to-Azure-Blob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
77 lines (59 loc) · 1.43 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
AllCops:
DisplayCopNames: true
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- '**/Guardfile'
- '**/Capfile'
- '**/Gemfile'
- 'bin/**/*'
- 'config/**/*'
- 'db/**/*'
- 'script/**/*'
- !ruby/regexp /old_and_unused\.rb$/
Rails:
Enabled: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 150
Metrics/ModuleLength:
Enabled: false
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
Max: 40
Metrics/BlockLength:
Enabled: false
# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC
Metrics/ClassLength:
Max: 1500
# Refactor to remove this issues
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
# TODO: Remove in the future has false positives
Style/MixinGrouping:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/NumericLiterals:
Enabled: false
Style/RaiseArgs:
EnforcedStyle: compact
Lint/AmbiguousBlockAssociation:
Enabled: false
# Removes string freeze requirement
Style/FrozenStringLiteralComment:
Enabled: false
# nested class
Style/ClassAndModuleChildren:
Enabled: false
# generic error habdling
Lint/RescueWithoutErrorClass:
Enabled: false
Rails/TimeZone:
Enabled: false