-
Notifications
You must be signed in to change notification settings - Fork 4
/
.reek.yml
54 lines (53 loc) · 1.51 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
50
51
52
53
54
# default config: https://github.com/troessner/reek/blob/master/docs/defaults.reek.yml
# detectors' docs: https://github.com/troessner/reek/tree/master/docs
---
exclude_paths:
- 'bin/'
- 'spec/'
detectors:
LongParameterList:
enabled: true
exclude: []
max_params: 4 # +1 to default value
overrides:
initialize:
max_params: 6 # +1 to default value
ModuleInitialize:
enabled: false
TooManyInstanceVariables:
enabled: true
exclude: []
max_instance_variables: 5 # +1 to default value
DataClump:
exclude:
- Flows::Result::Helpers
- Flows::SharedContextPipeline::DSL::Tracks
IrresponsibleModule:
exclude:
- Flows::SharedContextPipeline
FeatureEnvy:
exclude:
- Flows::SharedContextPipeline#call
- Flows::Contract # too many false positives here
- Flows::Plugin::Profiler::Report#events
TooManyStatements:
exclude:
- Flows::SharedContextPipeline#call
- Flows::Plugin::Profiler::Wrapper#make_instance_wrapper
- Flows::Plugin::Profiler::Wrapper#make_singleton_wrapper
- initialize
DuplicateMethodCall:
exclude:
- Flows::SharedContextPipeline#call
- Flows::Plugin::Profiler::Wrapper#make_instance_wrapper
- Flows::Plugin::Profiler::Wrapper#make_singleton_wrapper
- 'length'
MissingSafeMethod:
exclude:
- Flows::Contract
BooleanParameter:
exclude:
- Flows::Plugin::OutputContract::DSL
TooManyMethods:
exclude:
- Flows::Plugin::Profiler::Report::Tree::Node