-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
56 lines (44 loc) · 1.13 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
# Add these 2 lines to .rubocop_todo.yml
#inherit_from:
# - .rubocop.yml
# then uncomment them
# ext/rb/** contains files meant for Ruby language support
# Ignored because not part of Viper core
# Can rubocop them separately
AllCops:
Include:
- '**/Rakefile'
- 'bin/viper'
Exclude:
- 'test/**/*'
- 'lib/vish/**'
- 'ext/rb/**'
Style/Documentation:
Enabled: false
# Since Little Linter cannot really parse Ruby code
# Multi-line method calls cannot be aligned the way Rubocop likes them
Style/AlignParameters:
Enabled: false
# where the above config gives an offense
# Exclude:
# 'lib/bin/exec.rb'
# method line length for BaseCommand must be longer than 10 lines for initialize
# for the same reason, ABC complexity
#
Metrics/MethodLength:
Exclude:
- 'lib/bin/find.rb'
Metrics/AbcSize:
Exclude:
- 'lib/bin/find.rb'
# Ignore unused env: or frames: keywords
Lint/UnusedMethodArgument:
Enabled: false
Style/CaseEquality:
Enabled: false
# This is approximately the approved maximum for Viper code
# Here in case new/changed files exceed this
Metrics/MethodLength:
Max: 30
Metrics/AbcSize:
Max: 20