-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
80 lines (63 loc) · 1.72 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
77
78
79
80
require: rubocop-sketchup
AllCops:
DisplayCopNames: true
SketchUp:
TargetSketchUpVersion: 2017
Exclude:
- 'tests/**/*'
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
# Aim for 5 lines and less in each methods but accept slightly longer ones.
Metrics/MethodLength:
Max: 10
# x, y and z used by SketchUp API.
Naming/UncommunicativeMethodParamName:
AllowedNames:
- 'x'
- 'y'
- 'z'
- '_x'
- '_y'
- '_z'
# Let Git client handle file endings.
Layout/EndOfLine:
Enabled: false
# False positive when there is an empty line between require, using etc and
# first method.
Layout/EmptyLinesAroundModuleBody:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Layout/IndentArray:
EnforcedStyle: consistent
Layout/IndentHash:
EnforcedStyle: consistent
Style/Documentation:
Enabled: true
# 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
# When only using a single token the annotation just adds noise.
Style/FormatStringToken:
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
# Library, not extension.
SketchupRequirements:
Enabled: false
SketchupSuggestions:
Enabled: true