-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudit_all.py
More file actions
executable file
·33 lines (27 loc) · 1.15 KB
/
Copy pathaudit_all.py
File metadata and controls
executable file
·33 lines (27 loc) · 1.15 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
#!/usr/bin/env python3
"""Auditoría V9 de todos los plugins, addons y código muerto del Mainframe."""
import sys, os, subprocess
sys.path.insert(0, os.path.dirname(__file__))
from core.i18n_engine import I18NEngine
from core.security_broker import ADNScanner
def main():
I18NEngine.load_locales()
print("🚀 Iniciando Auditoría V9 - TGT Mainframe\n")
roots = ["plugins", "addons"]
total = approved = 0
for root in roots:
for dirpath, _, files in os.walk(root):
for f in sorted(files):
if f.endswith('.py') and f != '__init__.py':
filepath = os.path.join(dirpath, f)
report, health = ADNScanner.scan_file(filepath)
status = "✅" if health >= 70 else "❌"
print(f"{status} {f:<25} | Salud: {health}% ({root})")
total += 1
if health >= 70:
approved += 1
print(f"\n📊 Total: {approved}/{total} aprobados")
print("\n🔍 Buscando código muerto...")
subprocess.run([sys.executable, "deadcode_scan.py"], check=False)
if __name__ == "__main__":
main()