-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
69 lines (53 loc) · 1.35 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
require: rubocop-sketchup
AllCops:
DisplayCopNames: true
SketchUp:
TargetSketchUpVersion: 2018
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
# 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
# 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