forked from puzzle/puzzletime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
135 lines (103 loc) · 2.38 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
AllCops:
DisplayCopNames: true
Exclude:
- Rakefile
- bin/**/*
- db/**/*
- config/**/*
- test/**/*
- tmp/**/*
- vendor/**/*
- app/assets/config.rb
Rails:
Enabled: true
Metrics/AbcSize:
Max: 25
Severity: error
Metrics/ClassLength:
Max: 200
Severity: error
Metrics/CyclomaticComplexity:
Max: 10
Severity: error
Metrics/LineLength:
Max: 120 # try to reduce to 100
Severity: warning
Metrics/MethodLength:
Max: 25 # try to reduce to 10
Severity: error
Metrics/ModuleLength:
Max: 200
Severity: error
Metrics/PerceivedComplexity:
Max: 10
# Keep for now, easier with superclass definitions
ClassAndModuleChildren:
Enabled: false
# The ones we use must exist for the entire class hierarchy.
ClassVars:
Enabled: false
# map instead of collect, reduce instead of inject.
# Probably later
CollectionMethods:
Enabled: false
# This cop is currently buggy (0.21.0)
Delegate:
Enabled: false
# Well, well, well
Documentation:
Enabled: false
# Probably later
DotPosition:
Enabled: false
# That's no huge stopper
EmptyLines:
Enabled: false
# Missing UTF-8 encoding statements should always be created.
Encoding:
Severity: error
# Keep single line bodys for if and unless
IfUnlessModifier:
Enabled: false
# We thinks that's fine
HasAndBelongsToMany:
Enabled: false
# We do. But some other methods are still called 'attr', do not complain about them
Style/Attr:
Enabled: false
# Generated like this
Layout/EmptyLineAfterMagicComment:
Enabled: false
# We think it's fine to have empty lines inside the class body
Layout/EmptyLinesAroundClassBody:
Enabled: false
# We think it's fine to have empty lines inside the module body
Layout/EmptyLinesAroundModuleBody:
Enabled: false
# Will do at some time
Rails/ApplicationRecord:
Enabled: false
# html_safe is required to correctly render html string literals.
Rails/OutputSafety:
Enabled: false
# Developer should know when to use this
Rails/SkipsModelValidations:
Enabled: false
# We think that's fine most of the time
Style/GuardClause:
Enabled: false
# We think that's fine
Layout/MultilineOperationIndentation:
Enabled: false
# We think that's fine
Style/EmptyMethod:
Enabled: false
# We think that's fine
Style/PercentLiteralDelimiters:
Enabled: false
# We think that's fine
Style/SignalException:
Enabled: false
# We think that's fine
Style/SymbolArray:
Enabled: false