-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.rubocop.yml
49 lines (37 loc) · 1.36 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
BlockLength:
Max: 30
MethodLength:
Max: 200
LineLength:
Max: 160
AbcSize:
Max: 100
FileName:
Enabled: false
PerceivedComplexity:
Enabled: false
CyclomaticComplexity:
Enabled: false
ClassLength:
Enabled: false
IfUnlessModifier:
Enabled: false
RegexpLiteral:
Enabled: false
Style/Documentation:
Enabled: false
# TODO: come back and decide if we can/should use CGI.escape or some other library
# or method, while URI.escape was marked as "obsolete" in ruby trunk it is
# still present and they have not provided a 1 to 1 replacement depending on
# the use case there are different libraries and methods that are options but
# there are some differecnces between them and I am hesistent to introduce a
# bug just waiting to happen. Ideally someone with an opsgenie account and
# setup can come back at some point and do some testing to see if using the
# different encoding breaks anything on the api side. The differences I have
# seen so far replace spaces with '+' rather than '%20' and '/' as '%20'.
# There might be other libraries, the best I have found so far is Addressable
# http://www.rubydoc.info/gems/addressable/2.2.4/Addressable/URI#encode-class_method
# but I did not want to introduce dangerous changes and new dependencies here.
# https://github.com/sporkmonger/addressable/tree/addressable-2.5.2#install
Lint/UriEscapeUnescape:
Enabled: false