forked from mherrmann/fman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode_analysis_rules.json
More file actions
93 lines (93 loc) · 2.36 KB
/
Copy pathcode_analysis_rules.json
File metadata and controls
93 lines (93 loc) · 2.36 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"log_level": "all",
"max_lines_per_file": {
"enabled": true,
"warning": 300,
"error": 500,
"exceptions": [
{
"file": "src/main/python/fman/*",
"warning": 1100,
"error": 1500,
"reason": "Upstream fman application source. Splitting these creates conflicts on every upstream merge for zero functional gain; the fork's own code lives in Plugins/Core. Thresholds still catch runaway growth beyond today's largest file (widgets.py, 1002)."
},
{
"file": "src/main/resources/base/Plugins/Core/core/tests/*",
"warning": 700,
"error": 1200,
"reason": "Test suites - many similar scenarios per file, splitting fragments the suite without improving navigability."
},
{
"file": "src/unittest/*",
"warning": 700,
"error": 1200,
"reason": "Test suites - many similar scenarios per file, splitting fragments the suite without improving navigability."
},
{
"file": "src/integrationtest/*",
"warning": 700,
"error": 1200,
"reason": "Test suites and their fixture resources - many similar scenarios per file."
}
],
"exclude_patterns": {
"python": [
"__pycache__/**",
"*.pyc",
"venv/**",
".venv/**",
"*venv/**",
"env/**",
".git/**",
"target/**",
"tmp/**",
"cache/**"
]
}
},
"pmd_duplicates": {
"enabled": true,
"minimum_tokens": 100,
"exclude_patterns": {
"python": [
"__pycache__/**",
"*.pyc",
"venv/**",
".venv/**",
"*venv/**",
"env/**",
".git/**",
"target/**",
"tmp/**",
"cache/**"
]
}
},
"pmd_similar_code": {
"enabled": false,
"minimum_tokens": 100,
"ignore_identifiers": true,
"ignore_literals": true,
"ignore_annotations": false,
"exclude_patterns": {
"python": [
"__pycache__/**",
"*.pyc",
"venv/**",
".venv/**",
"*venv/**",
"env/**",
".git/**",
"target/**",
"tmp/**",
"cache/**"
]
}
},
"ruff_analyze": {
"enabled": true,
"select": ["E", "F", "W"],
"ignore": ["W191"],
"exclude_patterns": ["venv/**", "__pycache__/**", ".git/**", "target/**", "tmp/**", "cache/**"]
}
}