-
Notifications
You must be signed in to change notification settings - Fork 12
/
.rubocop.yml
94 lines (68 loc) · 1.71 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
AllCops:
NewCops: disable
Include:
- 'app/**/*.rb'
- 'lib/**/*.rb'
Exclude:
- 'app/tests.rb'
- 'app/repl.rb'
# Incompatible with x, y, etc
Naming/MethodParameterName:
Enabled: false
# This will complain about :my_image_1 used in SpriteRegistry
# I don't really want to enforce a style here.
Naming/VariableNumber:
Enabled: false
# Doesn't seem to be a clean way to skip enforcing this for abstract classes
Lint/MissingSuper:
Enabled: false
Metrics/ParameterLists:
Enabled: false
# A lot of this shit is blown up by assigning x/y/w/h/path/source_x/source_y etc all the damn time
Metrics/AbcSize:
Max: 100
Metrics/BlockLength:
Max: 100
Metrics/ClassLength:
Max: 1000
Metrics/CyclomaticComplexity:
Max: 30
Metrics/MethodLength:
Max: 100
Metrics/PerceivedComplexity:
Max: 10
Style/AccessorGrouping:
Enabled: false
Style/FormatString:
EnforcedStyle: percent
Style/FormatStringToken:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GlobalVars:
Enabled: false
Style/IfInsideElse:
AllowIfModifier: true
Style/RandomWithOffset:
Enabled: false
Style/RedundantFileExtensionInRequire:
Enabled: false
Style/RedundantReturn:
Enabled: false
# Normally I like using double quotes but I think DR/mRuby can't hang
Style/StringLiterals:
EnforcedStyle: single_quotes
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/HashAlignment:
EnforcedColonStyle: table
# Ignoring comment lines due to YARD
Layout/LineLength:
Max: 120
AllowedPatterns: ['^ *# ']
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false