-
Notifications
You must be signed in to change notification settings - Fork 33
/
.rubocop.yml
46 lines (36 loc) · 934 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
inherit_gem:
prawn-dev: rubocop.yml
Metrics/BlockLength:
Exclude:
- pdf-inspector.gemspec
# These cops need to remain disabled for valid reasons on this code base
# set_ methods are the part of PDF::Reader API
Style/AccessorMethodName:
Enabled: false
# We need to reference non-ascii characters when testing and explaining
# behavior related to win-1252, UTF-8 and UTF-16 encodings for example.
Style/AsciiComments:
Enabled: false
Style/BlockDelimiters:
EnforcedStyle: semantic
Style/Documentation:
Enabled: false
# We don't always prefer modified if statements even if they do fit on
# a line.
Style/IfUnlessModifier:
Enabled: false
Style/MultilineOperationIndentation:
Exclude:
- prawn.gemspec
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '()'
'%i': '[]'
'%I': '[]'
'%q': '()'
'%Q': '()'
'%r': '{}'
'%s': '()'
'%w': '[]'
'%W': '[]'
'%x': '()'