-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
67 lines (50 loc) · 1.16 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
---
inherit_gem:
rubocop-sensible: 'config/rubocop.yml'
require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
AllCops:
Exclude:
- 'bin/**'
- 'Rakefile'
- 'tiny_hooks.gemspec'
NewCops: enable
EnabledByDefault: true
TargetRubyVersion: 2.5
# Oneline comment is not valid so until it gets valid, we disable it
Bundler/GemComment:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Layout/MultilineAssignmentLayout:
EnforcedStyle: same_line
Lint/ConstantResolution:
Enabled: false
# I couldn't come up with code clean enough
# For now I gave up following Metrics cops
Metrics:
Enabled: false
Security/Eval:
Exclude:
- 'test/**/*.rb'
Style/ClassVars:
Enabled: false
Style/ConstantVisibility:
Exclude:
- 'lib/tiny_hooks/version.rb'
Style/Copyright:
Enabled: false
# I know what I do :)
Style/DisableCopsWithinSourceCodeDirective:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/InlineComment:
Enabled: false
Style/MethodCallWithArgsParentheses:
Enabled: false
# There are so many cases we just want `if` expression!
Style/MissingElse:
EnforcedStyle: case