-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyrefactor.ini
More file actions
51 lines (36 loc) · 1.07 KB
/
pyrefactor.ini
File metadata and controls
51 lines (36 loc) · 1.07 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
50
# PyRefactor Configuration File
[complexity]
# Maximum number of branches in a function (if/elif/else)
max_branches = 10
# Maximum nesting depth allowed
max_nesting_depth = 3
# Maximum number of lines allowed in a function
max_function_lines = 50
# Maximum number of arguments allowed in a function
max_arguments = 5
# Maximum number of local variables allowed in a function
max_local_variables = 15
# Maximum cyclomatic complexity allowed
max_cyclomatic_complexity = 10
[performance]
# Enable performance detector
enabled = true
[duplication]
# Enable duplication detector
enabled = true
# Minimum number of duplicate lines to report
min_duplicate_lines = 5
# Similarity threshold for duplication detection (0.0 to 1.0)
similarity_threshold = 0.85
[boolean_logic]
# Enable boolean logic detector
enabled = true
# Maximum number of boolean operators in an expression
max_boolean_operators = 3
[loops]
# Enable loops detector
enabled = true
[general]
# Comma-separated list of patterns to exclude from analysis
# Example: exclude_patterns = tests/*,*.tmp,build/*
exclude_patterns =