-
Notifications
You must be signed in to change notification settings - Fork 15
/
.rubocop.yml
68 lines (54 loc) · 1.7 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
56
57
58
59
60
61
62
63
64
65
66
67
68
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.6
SuggestExtensions: false
Metrics/AbcSize:
Exclude:
- 'lib/cvss_suite/cvss40/cvss40_calc_helper.rb'
Metrics/LineLength:
Max: 120
Exclude:
- 'lib/cvss_suite/cvss3/cvss3_environmental.rb'
- 'lib/cvss_suite/cvss31/cvss31_environmental.rb'
Metrics/ClassLength:
Exclude:
- 'lib/cvss_suite/cvss3/cvss3_environmental.rb'
- 'lib/cvss_suite/cvss31/cvss31_environmental.rb'
- 'lib/cvss_suite/cvss40/cvss40_calc_helper.rb'
Metrics/CyclomaticComplexity:
Exclude:
- 'lib/cvss_suite/cvss40/cvss40_calc_helper.rb'
Metrics/MethodLength:
Exclude:
- 'lib/cvss_suite/cvss3/cvss3_environmental.rb'
- 'lib/cvss_suite/cvss31/cvss31_environmental.rb'
- 'lib/cvss_suite/cvss40/cvss40_environmental.rb'
- 'lib/cvss_suite/cvss40/cvss40_calc_helper.rb'
Metrics/ModuleLength:
Exclude:
- 'lib/cvss_suite/cvss40/cvss40_constants_macro_vector_lookup.rb'
Metrics/PerceivedComplexity:
Exclude:
- 'lib/cvss_suite/cvss40/cvss40_calc_helper.rb'
Metrics/BlockLength:
Exclude:
- 'spec/cvss2/cvss2_spec.rb'
- 'spec/cvss3/cvss3_spec.rb'
- 'spec/cvss31/cvss31_spec.rb'
- 'spec/cvss40/cvss40_spec.rb'
Style/IfUnlessModifier:
Exclude:
- 'lib/cvss_suite/cvss3/cvss3_environmental.rb'
- 'lib/cvss_suite/cvss31/cvss31_environmental.rb'
Style/GuardClause:
Exclude:
- 'lib/cvss_suite/cvss3/cvss3_environmental.rb'
- 'lib/cvss_suite/cvss31/cvss31_environmental.rb'
Style/ConditionalAssignment:
Exclude:
- 'lib/cvss_suite/cvss3/cvss3_environmental.rb'
- 'lib/cvss_suite/cvss31/cvss31_environmental.rb'
Style/FrozenStringLiteralComment:
Enabled: false
Style/AsciiComments:
Enabled: false