forked from mongodb/mongo-ruby-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
67 lines (55 loc) · 1.48 KB
/
Copy path.rubocop.yml
File metadata and controls
67 lines (55 loc) · 1.48 KB
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
AllCops:
# include gemspec and Rakefile
Includes:
- '**/*.gemspec'
- '**/Rakefile'
- 'tasks/**/*.rake'
Excludes: []
# limit lines to 80 characters.
LineLength:
Max: 80
Enabled: true
# avoid methods longer than 30 lines of code
MethodLength:
Max: 30
CountComments: false
Enabled: true
# avoid parameter lists longer than 5 parameters.
ParameterLists:
Max: 5
CountKeywordArgs: true
Enabled: true
# don't prefer 'fail' over raise
SignalException:
Description: 'Checks for proper usage of fail and raise.'
Enabled: false
# disabled while we still support ruby 1.8
HashSyntax:
Description: 'Prefer Ruby 1.9 hash syntax over 1.8 syntax'
Enabled: false
# this doesn't work for things like port numbers
# we don't enforce this but please do it where it makes sense
NumericLiterals:
Description: 'Add underscores to large numeric literals'
Enabled: false
# we have some special exception types with error messages built in
RaiseArgs:
Description: 'Checks the arguments passed to raise/fail.'
Enabled: false
# used in the wire-protocol
ClassVars:
Description: 'Avoid the use of class variables.'
Enabled: false
# don't enforce arbitrary max class length
ClassLength:
Description: 'Class length restriction'
Enabled: false
# enforce UTF-8 Encoding for Ruby 1.9
Encoding:
Enabled: false
EmptyLinesAroundBody:
Description: 'Keeps track of blank lines around expression bodies.'
Enabled: false
# because ruby 1.8.x, that's why
DotPosition:
Enabled: false