android-gradle-analyzer 1.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- analyzer_config.example.json +80 -0
- analyzer_utils.py +687 -0
- android_gradle_analyzer-1.3.1.dist-info/METADATA +668 -0
- android_gradle_analyzer-1.3.1.dist-info/RECORD +19 -0
- android_gradle_analyzer-1.3.1.dist-info/WHEEL +4 -0
- android_gradle_analyzer-1.3.1.dist-info/entry_points.txt +8 -0
- android_gradle_analyzer-1.3.1.dist-info/licenses/LICENSE +21 -0
- external_callers.py +317 -0
- gradle_analyzer.py +585 -0
- gradle_impact.py +281 -0
- gradle_sanity.py +622 -0
- menu/__init__.py +447 -0
- menu/actions.py +208 -0
- menu/branding.py +15 -0
- menu/exporter.py +233 -0
- menu/prompts.py +307 -0
- menu/state.py +82 -0
- menu/ui.py +198 -0
- menu.py +9 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comentario": "Archivo de EJEMPLO. Para activarlo: cp analyzer_config.example.json analyzer_config.json",
|
|
3
|
+
"_comentario2": "La herramienta busca 'analyzer_config.json' en el directorio donde la ejecutas (CWD).",
|
|
4
|
+
"_comentario3": "Todos los campos son opcionales. Los ausentes usan defaults genéricos internos.",
|
|
5
|
+
|
|
6
|
+
"icons": {
|
|
7
|
+
"common": "🔧",
|
|
8
|
+
"shared": "🔧",
|
|
9
|
+
"core": "🔧",
|
|
10
|
+
"gateway": "🌐",
|
|
11
|
+
"api": "🌐",
|
|
12
|
+
"network": "📡",
|
|
13
|
+
"remote": "🌐",
|
|
14
|
+
"home": "🏠",
|
|
15
|
+
"main": "🏠",
|
|
16
|
+
"ui": "🎨",
|
|
17
|
+
"presentation": "🎨",
|
|
18
|
+
"screen": "🎨",
|
|
19
|
+
"domain": "🧩",
|
|
20
|
+
"usecase": "🧩",
|
|
21
|
+
"data": "💾",
|
|
22
|
+
"repository": "💾",
|
|
23
|
+
"database": "🗄️",
|
|
24
|
+
"local": "🗄️",
|
|
25
|
+
"test": "🧪"
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"styles": {},
|
|
29
|
+
|
|
30
|
+
"colors": {
|
|
31
|
+
"common": "#FFF9C4",
|
|
32
|
+
"gateway": "#E1F5FE",
|
|
33
|
+
"hub": "#E8F5E9",
|
|
34
|
+
"cycle": "#FFCDD2"
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
"scope_weights": {
|
|
38
|
+
"api": "high",
|
|
39
|
+
"implementation": "normal",
|
|
40
|
+
"compileOnly": "build",
|
|
41
|
+
"kapt": "build",
|
|
42
|
+
"annotationProcessor": "build",
|
|
43
|
+
"testImplementation": "test",
|
|
44
|
+
"androidTestImplementation":"test",
|
|
45
|
+
"testRuntimeOnly": "test",
|
|
46
|
+
"debugImplementation": "debug",
|
|
47
|
+
"releaseImplementation": "release",
|
|
48
|
+
"runtimeOnly": "runtime"
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
"sanity_weights": {
|
|
52
|
+
"_comentario": "Penalizaciones para el score de sanidad (base 100). Ajusta según tu contexto.",
|
|
53
|
+
"_comentario2": "Estos valores NO son un estándar externo — son defaults razonables que puedes cambiar.",
|
|
54
|
+
|
|
55
|
+
"cycle": 20,
|
|
56
|
+
"sdp_violation": 10,
|
|
57
|
+
"unnecessary_api": 5,
|
|
58
|
+
"high_fan_out_threshold": 5,
|
|
59
|
+
"high_fan_out_penalty": 3,
|
|
60
|
+
"hardcoded_version": 2,
|
|
61
|
+
"sdp_threshold": 0.3
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
"coupling_limits": {
|
|
65
|
+
"_comentario": "Detecta 'lógica compartida mal ubicada': un módulo de alto nivel (feature o app, I alto) del que OTROS dependen.",
|
|
66
|
+
"_comentario2": "Advisory por default: con penalty=0 solo aparece en el reporte, no afecta el score. Súbelo para activar el gate en CI.",
|
|
67
|
+
"_comentario3": "Funciona sin este bloque (usa estos mismos defaults). core/common quedan excluidos solos por tener I bajo.",
|
|
68
|
+
|
|
69
|
+
"leaf_instability": 0.70,
|
|
70
|
+
"leaf_max_ca": 1,
|
|
71
|
+
"leaf_penalty": 0,
|
|
72
|
+
"app_max_ca": 0,
|
|
73
|
+
"app_penalty": 0
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
"coupling_overrides": {
|
|
77
|
+
"_comentario": "Fuerza el rol de módulos puntuales cuando la métrica se equivoca. Valores: 'app' | 'leaf' | 'ignore'.",
|
|
78
|
+
"_comentario2": "Match por nombre completo o por último segmento. 'ignore' excluye al módulo de esta validación."
|
|
79
|
+
}
|
|
80
|
+
}
|