forked from oracle/truffleruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.reek.yml
49 lines (49 loc) · 2.56 KB
/
.reek.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
detectors:
UncommunicativeVariableName:
enabled: false # we're happy with short variable names
UncommunicativeParameterName:
enabled: false # we're happy with short parameter names
LongParameterList:
enabled: false # we're often meeting an existing Ruby API with fixed parameters
UncommunicativeModuleName:
enabled: false # we're often meeting an existing Ruby API with fixed module names
UncommunicativeMethodName:
enabled: false # we're often meeting an existing Ruby API with fixed method names
BooleanParameter:
enabled: false # we're often meeting an existing Ruby API with boolean parameters
TooManyStatements:
enabled: false # yes we often write longer methods
FeatureEnvy:
enabled: false # we don't want to add new public methods to Ruby API classes to better encapsulate behaviour
UnusedParameters:
enabled: false # primitives mean that the use of parameters can be hidden
NilCheck:
enabled: false # our code is often too low level to factor this away
ManualDispatch:
enabled: false # manual dispatch is often part of Ruby internal semantics
IrresponsibleModule:
enabled: false # we don't comment all modules because we're implementing an existing interface so they do not need a raison d'être
ControlParameter:
enabled: false # we're often meeting an existing Ruby API with control parameters
DataClump:
enabled: false # we're often meeting an existing Ruby API with 'data clumps'
TooManyMethods:
enabled: false # we're often meeting an existing Ruby API with an existing set of methods
TooManyConstants:
enabled: false # we're often meeting an existing Ruby API with an existing set of constants
UtilityFunction:
enabled: false # we're often meeting an existing Ruby API with utility functions
MissingSafeMethod:
enabled: false # we're often meeting an existing Ruby API without safe equivalents, or the safe equivalent is implemented in Java
Attribute:
enabled: false # we're often meeting an existing Ruby API with writable attributes
InstanceVariableAssumption:
enabled: false # we often set instance variables lazily
NestedIterators:
enabled: false # yes we often write nested iterators
TooManyInstanceVariables:
enabled: false # yes we sometimes use a lot of instance variables
RepeatedConditional:
enabled: false # we don't want to add new public methods to Ruby API classes to better encapsulate behaviour
DuplicateMethodCall:
enabled: false # needs investigation - sometimes legitimate due to Ruby semantics, but lots of failures