-
Notifications
You must be signed in to change notification settings - Fork 23
/
.rubocop.yml
48 lines (36 loc) · 836 Bytes
/
.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
AlignParameters:
Enabled: false
AndOr:
Enabled: false
ClassLength:
Max: 150
CyclomaticComplexity:
Max: 20
Documentation:
Enabled: false
FormatString:
EnforcedStyle: percent
LineLength:
Max: 120
Exclude:
- lib/ecdsa/group/*.rb
- spec/nist_example_spec.rb
MethodLength:
Max: 20
# The unless keyword doesn't exists in most other languages and it makes lines
# longer. Let's not force ourselves to use it.
NegatedIf:
Enabled: false
# Buggy cop: it was auto-correcting files that were excluded when I ran rubcop -a
NumericLiterals:
Enabled: false
Exclude:
- lib/ecdsa/group/nist*.rb
SignalException:
EnforcedStyle: only_raise
# Very picky about what I name block params to 'reduce'.
SingleLineBlockParams:
Enabled: false
TrailingComma:
EnforcedStyleForMultiline: comma
Enabled: false