forked from ruby-grape/grape-entity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
65 lines (49 loc) · 1.06 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
AllCops:
Excludes:
- vendor/**
LineLength:
Enabled: false
MethodLength:
Enabled: false
ClassLength:
Enabled: false
Documentation:
# don't require classes to be documented
Enabled: false
CollectionMethods:
# don't prefer map to collect, recuce to inject
Enabled: false
Encoding:
# no need to always specify encoding
Enabled: false
HashMethods:
# key? instead of has_key?
# value? instead of has_value?
Enabled: false
StringLiterals:
# use single or double-quoted strings, as you please
Enabled: false
Void:
# == operator used in void context in specs
Enabled: false
SignalException:
# prefer raise to fail
EnforcedStyle: only_raise
RaiseArgs:
# don't care for what kind of raise
Enabled: false
PerlBackrefs:
# TODO: regular expression matching with $1, $2, etc.
Enabled: false
BlockNesting:
# TODO: fix too much nesting
Max: 4
Lambda:
# TODO: replace all lambda with -> or Proc
Enabled: false
Blocks:
# allow multi-line blocks like expect { }
Enabled: false
WordArray:
# %w vs. [ '', ... ]
Enabled: false