-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.antipasta.yaml
More file actions
51 lines (42 loc) · 1.13 KB
/
.antipasta.yaml
File metadata and controls
51 lines (42 loc) · 1.13 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
51
# antipasta configuration file
# Generated by: antipasta config generate
# Default thresholds for all languages
defaults:
max_cyclomatic_complexity: 10.0
max_cognitive_complexity: 15.0
min_maintainability_index: 50.0
# Halstead metrics (advanced)
max_halstead_volume: 1000.0
max_halstead_difficulty: 10.0
max_halstead_effort: 10000.0
# Language-specific configurations
languages:
- name: python
extensions:
- .py
metrics:
- type: cyclomatic_complexity
threshold: 10.0
comparison: "<="
- type: maintainability_index
threshold: 50.0
comparison: ">="
- type: halstead_volume
threshold: 1000.0
comparison: "<="
- type: halstead_difficulty
threshold: 10.0
comparison: "<="
- type: halstead_effort
threshold: 10000.0
comparison: "<="
- type: cognitive_complexity
threshold: 15.0
comparison: "<="
# Files and patterns to ignore during analysis
ignore_patterns:
- "**/test_*.py"
- "**/*_test.py"
- "**/tests/**"
# Whether to use .gitignore file for excluding files
use_gitignore: true