forked from tombh/peas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
74 lines (55 loc) · 1.18 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
AllCops:
Excludes:
- cli/peas-cli.gemspec
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
CyclomaticComplexity:
Enabled: false
HandleExceptions:
Enabled: false
MultilineBlockChain:
Enabled: false