-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.reek.yml
More file actions
50 lines (38 loc) · 1.38 KB
/
.reek.yml
File metadata and controls
50 lines (38 loc) · 1.38 KB
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
---
# Smells that produce false positives for performance-oriented parsing code.
# See: https://github.com/troessner/reek/blob/master/docs/defaults.md
detectors:
# Constructor config flags are valid boolean params
BooleanParameter:
enabled: false
# Parser/scanner methods naturally pass the same core data (input, pos, context, token)
DataClump:
enabled: false
# Pure helper methods on private methods are fine
UtilityFunction:
enabled: false
# Methods operating on string params aren't feature envy
FeatureEnvy:
enabled: false
# Byte constants and regex patterns belong together
TooManyConstants:
enabled: false
# Each method handles one escape case — class is single-purpose
TooManyMethods:
enabled: false
# Dispatch/case methods in parsers are inherently statement-heavy
TooManyStatements:
enabled: false
# Data params (byte_val) aren't control flow flags
ControlParameter:
enabled: false
# Expressions like `pos + 1` in separate case branches aren't real duplication
DuplicateMethodCall:
enabled: false
# Interface contract parameters (on_open, on_close, process, detect, render)
# must exist for polymorphism but aren't used by every implementation
UnusedParameters:
enabled: false
# Parsers naturally have more state (input, pos, result, document, etc.)
TooManyInstanceVariables:
max_instance_variables: 10