forked from Eneroth3/inference-lock-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
76 lines (59 loc) · 1.67 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
69
70
71
72
73
74
75
76
require: rubocop-sketchup
AllCops:
DisplayCopNames: true
SketchUp:
TargetSketchUpVersion: 2017
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
# Aim for 10 lines and less in each methods but accept slightly longer ones.
Metrics/MethodLength:
Max: 20
# Need to use camelCase for SketchUp API, otherwise use snake_case.
Naming/MethodName:
Enabled: false
# x, y and z used by SketchUp API.
Naming/UncommunicativeMethodParamName:
AllowedNames:
- 'x'
- 'y'
- 'z'
- '_x'
- '_y'
- '_z'
Layout/AlignHash:
EnforcedColonStyle: table
# Let Git client handle file endings.
Layout/EndOfLine:
Enabled: false
Layout/IndentArray:
EnforcedStyle: consistent
Layout/IndentHash:
EnforcedStyle: consistent
# False positives for modules documented in one file but not another, e.g.
# extension wrapper.
Style/Documentation:
Enabled: false
# Double negation is a handy Ruby idiom to assure a value is a boolean, as there
# is no to_bool/to_boolean/to_b method. What the cop suggest, !var.nil?, doesn't
# even cater for boolean false as input.
Style/DoubleNegation:
Enabled: false
# Single quotes being faster is hardly measurable and only affects parse time.
# Enforcing double quotes reduces the times where you need to change them
# when introducing an interpolation. Use single quotes only if their semantics
# are needed.
Style/StringLiterals:
EnforcedStyle: double_quotes
SketchupDeprecations:
Enabled: true
SketchupPerformance:
Enabled: true
# Mostly focused on extensions and this is a library.
SketchupRequirements:
Enabled: false
SketchupSuggestions:
Enabled: true