pumuki-ast-hooks 5.3.1
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.
- package/LICENSE +21 -0
- package/README.md +1105 -0
- package/bin/__tests__/auto-fix-violations.spec.js +132 -0
- package/bin/__tests__/auto-restart-guards.spec.js +11 -0
- package/bin/__tests__/check-doc-drift.spec.js +11 -0
- package/bin/__tests__/check-version.spec.js +240 -0
- package/bin/__tests__/cli.spec.js +11 -0
- package/bin/__tests__/guard-auto-manager.spec.js +11 -0
- package/bin/__tests__/guard-supervisor.spec.js +11 -0
- package/bin/__tests__/hook-status.spec.js +11 -0
- package/bin/__tests__/install.spec.js +11 -0
- package/bin/__tests__/nightly-metrics-report.spec.js +94 -0
- package/bin/__tests__/plan-review.spec.js +11 -0
- package/bin/__tests__/predictive-hooks.spec.js +11 -0
- package/bin/__tests__/run-ast-adapter.spec.js +11 -0
- package/bin/__tests__/run-orchestrator.spec.js +11 -0
- package/bin/__tests__/run-playbook.spec.js +11 -0
- package/bin/__tests__/setup-eslint.spec.js +11 -0
- package/bin/__tests__/violations-api.spec.js +11 -0
- package/bin/__tests__/watch-hooks.spec.js +11 -0
- package/bin/ai-commit.sh +5 -0
- package/bin/audit +5 -0
- package/bin/audit-library.js +6 -0
- package/bin/auto-fix-violations.js +19 -0
- package/bin/auto-restart-guards.js +6 -0
- package/bin/check-doc-drift.js +6 -0
- package/bin/check-version.js +19 -0
- package/bin/cleanup-branches.sh +5 -0
- package/bin/cli.js +6 -0
- package/bin/demo-recording.sh +5 -0
- package/bin/demo-violations +5 -0
- package/bin/fix-enforcer +5 -0
- package/bin/fix-gitflow-enforcement.sh +5 -0
- package/bin/generate-progress-report.sh +5 -0
- package/bin/git-analyze-pairs.sh +5 -0
- package/bin/git-leave-branch-check.sh +5 -0
- package/bin/gitflow +5 -0
- package/bin/gitflow-shell-integration.sh +5 -0
- package/bin/guard-auto-manager.js +6 -0
- package/bin/guard-autostart.sh +5 -0
- package/bin/guard-env.sh +5 -0
- package/bin/guard-supervisor.js +6 -0
- package/bin/hook-status.js +6 -0
- package/bin/install-git-wrapper.sh +5 -0
- package/bin/install.js +6 -0
- package/bin/kill-mcp-zombies.sh +5 -0
- package/bin/nightly-metrics-report.js +8 -0
- package/bin/plan-review.js +6 -0
- package/bin/predictive-hooks.js +6 -0
- package/bin/pumuki-audit.js +6 -0
- package/bin/pumuki-init.js +19 -0
- package/bin/pumuki-mcp-server.js +13 -0
- package/bin/pumuki-mcp.js +6 -0
- package/bin/pumuki-rules.js +6 -0
- package/bin/request-no-verify-approval.sh +5 -0
- package/bin/run-ast-adapter.js +6 -0
- package/bin/run-intelligent-audit.sh +5 -0
- package/bin/run-orchestrator.js +6 -0
- package/bin/run-playbook.js +6 -0
- package/bin/session-loader.sh +5 -0
- package/bin/setup-eslint.js +6 -0
- package/bin/start-guards.sh +5 -0
- package/bin/sync-autonomous-orchestrator.sh +5 -0
- package/bin/sync-to-library.sh +5 -0
- package/bin/update-evidence.sh +5 -0
- package/bin/update-session-context.sh +5 -0
- package/bin/verify-no-verify.sh +5 -0
- package/bin/violations +5 -0
- package/bin/violations-api.js +6 -0
- package/bin/watch-hooks.js +6 -0
- package/docs/API_REFERENCE.md +161 -0
- package/docs/ARCHITECTURE.md +236 -0
- package/docs/ARCHITECTURE_DETAILED.md +499 -0
- package/docs/BRANCH_PROTECTION_GUIDE.md +236 -0
- package/docs/CODE_STANDARDS.md +440 -0
- package/docs/CONTRIBUTING.md +246 -0
- package/docs/DEPENDENCIES.md +541 -0
- package/docs/HOW_IT_WORKS.md +716 -0
- package/docs/INSTALLATION.md +784 -0
- package/docs/MCP_SERVERS.md +786 -0
- package/docs/TESTING.md +423 -0
- package/docs/USAGE.md +856 -0
- package/docs/images/ast_intelligence_01.png +0 -0
- package/docs/images/ast_intelligence_02.png +0 -0
- package/docs/images/ast_intelligence_03.png +0 -0
- package/docs/images/ast_intelligence_04.png +0 -0
- package/docs/images/ast_intelligence_05.png +0 -0
- package/hooks/getSkillRulesPath.ts +52 -0
- package/hooks/git-status-monitor.ts +160 -0
- package/hooks/index.js +5 -0
- package/hooks/notify-macos.ts +42 -0
- package/hooks/package.json +16 -0
- package/hooks/post-tool-use-tracker.sh +89 -0
- package/hooks/pre-tool-use-evidence-validator.ts +252 -0
- package/hooks/pre-tool-use-guard.ts +151 -0
- package/hooks/skill-activation-prompt.sh +8 -0
- package/hooks/skill-activation-prompt.ts +307 -0
- package/index.js +49 -0
- package/package.json +117 -0
- package/presentation/cli/audit.sh +24 -0
- package/presentation/cli/autonomous-status.sh +92 -0
- package/presentation/cli/categorize-violations.sh +179 -0
- package/presentation/cli/direct-audit-option2.sh +23 -0
- package/presentation/cli/direct-audit.sh +33 -0
- package/scripts/hooks-system/.AI_TOKEN_STATUS.txt +16 -0
- package/scripts/hooks-system/.audit-reports/auto-recovery.log +1 -0
- package/scripts/hooks-system/.audit-reports/install-wizard.log +4 -0
- package/scripts/hooks-system/.audit-reports/notifications.log +425 -0
- package/scripts/hooks-system/.audit-reports/token-monitor.log +1275 -0
- package/scripts/hooks-system/.audit_tmp/intelligent-report.json +44953 -0
- package/scripts/hooks-system/.audit_tmp/intelligent-report.txt +1338 -0
- package/scripts/hooks-system/.audit_tmp/severity-history.jsonl +1 -0
- package/scripts/hooks-system/.audit_tmp/token-usage.jsonl +1 -0
- package/scripts/hooks-system/.hook-system/config.json +8 -0
- package/scripts/hooks-system/application/CompositionRoot.js +325 -0
- package/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js +84 -0
- package/scripts/hooks-system/application/commands/index.js +64 -0
- package/scripts/hooks-system/application/queries/index.js +60 -0
- package/scripts/hooks-system/application/services/AutonomousOrchestrator.js +130 -0
- package/scripts/hooks-system/application/services/ContextDetectionEngine.js +181 -0
- package/scripts/hooks-system/application/services/DynamicRulesLoader.js +182 -0
- package/scripts/hooks-system/application/services/GitFlowService.js +156 -0
- package/scripts/hooks-system/application/services/GitTreeState.js +140 -0
- package/scripts/hooks-system/application/services/HookSystemScheduler.js +77 -0
- package/scripts/hooks-system/application/services/IntelligentCommitAnalyzer.js +151 -0
- package/scripts/hooks-system/application/services/IntelligentGitTreeMonitor.js +118 -0
- package/scripts/hooks-system/application/services/PlatformAnalysisService.js +173 -0
- package/scripts/hooks-system/application/services/PlatformDetectionService.js +168 -0
- package/scripts/hooks-system/application/services/PlaybookRunner.js +39 -0
- package/scripts/hooks-system/application/services/PredictiveHookAdvisor.js +56 -0
- package/scripts/hooks-system/application/services/RealtimeGuardPlugin.js +62 -0
- package/scripts/hooks-system/application/services/RealtimeGuardService.js +374 -0
- package/scripts/hooks-system/application/services/SmartDirtyTreeAnalyzer.js +63 -0
- package/scripts/hooks-system/application/services/__tests__/AutonomousOrchestrator.spec.js +36 -0
- package/scripts/hooks-system/application/services/__tests__/ContextDetectionEngine.spec.js +33 -0
- package/scripts/hooks-system/application/services/__tests__/DynamicRulesLoader.spec.js +43 -0
- package/scripts/hooks-system/application/services/__tests__/GitTreeState.spec.js +163 -0
- package/scripts/hooks-system/application/services/__tests__/HookSystemScheduler.spec.js +207 -0
- package/scripts/hooks-system/application/services/__tests__/IntelligentCommitAnalyzer.spec.js +365 -0
- package/scripts/hooks-system/application/services/__tests__/IntelligentGitTreeMonitor.spec.js +188 -0
- package/scripts/hooks-system/application/services/__tests__/PlatformDetectionService.spec.js +28 -0
- package/scripts/hooks-system/application/services/__tests__/PlaybookRunner.spec.js +143 -0
- package/scripts/hooks-system/application/services/__tests__/PredictiveHookAdvisor.spec.js +181 -0
- package/scripts/hooks-system/application/services/__tests__/RealtimeGuardPlugin.spec.js +45 -0
- package/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js +401 -0
- package/scripts/hooks-system/application/services/commit/CommitMessageGenerator.js +34 -0
- package/scripts/hooks-system/application/services/commit/FeatureDetector.js +101 -0
- package/scripts/hooks-system/application/services/evidence/EvidenceContextManager.js +163 -0
- package/scripts/hooks-system/application/services/evidence/__tests__/EvidenceContextManager.spec.js +98 -0
- package/scripts/hooks-system/application/services/guard/GuardAutoManagerService.js +169 -0
- package/scripts/hooks-system/application/services/guard/GuardConfig.js +15 -0
- package/scripts/hooks-system/application/services/guard/GuardEventLogger.js +70 -0
- package/scripts/hooks-system/application/services/guard/GuardHealthReminder.js +54 -0
- package/scripts/hooks-system/application/services/guard/GuardHeartbeatMonitor.js +94 -0
- package/scripts/hooks-system/application/services/guard/GuardLockManager.js +72 -0
- package/scripts/hooks-system/application/services/guard/GuardMonitorLoop.js +29 -0
- package/scripts/hooks-system/application/services/guard/GuardNotificationHandler.js +36 -0
- package/scripts/hooks-system/application/services/guard/GuardProcessManager.js +113 -0
- package/scripts/hooks-system/application/services/guard/GuardRecoveryService.js +90 -0
- package/scripts/hooks-system/application/services/guard/__tests__/GuardAutoManagerService.spec.js +77 -0
- package/scripts/hooks-system/application/services/installation/ConfigurationGeneratorService.js +123 -0
- package/scripts/hooks-system/application/services/installation/FileSystemInstallerService.js +112 -0
- package/scripts/hooks-system/application/services/installation/GitEnvironmentService.js +166 -0
- package/scripts/hooks-system/application/services/installation/HookInstaller.js +197 -0
- package/scripts/hooks-system/application/services/installation/IdeIntegrationService.js +37 -0
- package/scripts/hooks-system/application/services/installation/InstallService.js +130 -0
- package/scripts/hooks-system/application/services/installation/McpConfigurator.js +172 -0
- package/scripts/hooks-system/application/services/installation/PlatformDetectorService.js +36 -0
- package/scripts/hooks-system/application/services/installation/VSCodeTaskConfigurator.js +97 -0
- package/scripts/hooks-system/application/services/logging/UnifiedLogger.js +142 -0
- package/scripts/hooks-system/application/services/logging/__tests__/UnifiedLogger.spec.js +66 -0
- package/scripts/hooks-system/application/services/monitoring/ActivityMonitor.js +80 -0
- package/scripts/hooks-system/application/services/monitoring/AstMonitor.js +140 -0
- package/scripts/hooks-system/application/services/monitoring/DevDocsMonitor.js +85 -0
- package/scripts/hooks-system/application/services/monitoring/EvidenceMonitor.js +103 -0
- package/scripts/hooks-system/application/services/monitoring/EvidenceMonitorService.js +162 -0
- package/scripts/hooks-system/application/services/monitoring/GitTreeMonitor.js +123 -0
- package/scripts/hooks-system/application/services/monitoring/GitTreeMonitorService.js +114 -0
- package/scripts/hooks-system/application/services/monitoring/HealthCheckProviders.js +153 -0
- package/scripts/hooks-system/application/services/monitoring/HealthCheckService.js +118 -0
- package/scripts/hooks-system/application/services/monitoring/HeartbeatMonitorService.js +61 -0
- package/scripts/hooks-system/application/services/monitoring/TokenMonitor.js +60 -0
- package/scripts/hooks-system/application/services/monitoring/__tests__/EvidenceMonitorService.spec.js +107 -0
- package/scripts/hooks-system/application/services/monitoring/__tests__/GitTreeMonitorService.spec.js +27 -0
- package/scripts/hooks-system/application/services/monitoring/__tests__/HealthCheckProviders.spec.js +68 -0
- package/scripts/hooks-system/application/services/monitoring/__tests__/HealthCheckService.spec.js +69 -0
- package/scripts/hooks-system/application/services/monitoring/__tests__/HeartbeatMonitorService.spec.js +35 -0
- package/scripts/hooks-system/application/services/notification/MacNotificationSender.js +106 -0
- package/scripts/hooks-system/application/services/notification/NotificationCenterService.js +221 -0
- package/scripts/hooks-system/application/services/notification/NotificationDispatcher.js +42 -0
- package/scripts/hooks-system/application/services/notification/__tests__/NotificationCenterService.spec.js +40 -0
- package/scripts/hooks-system/application/services/notification/components/NotificationCooldownManager.js +62 -0
- package/scripts/hooks-system/application/services/notification/components/NotificationDeduplicator.js +67 -0
- package/scripts/hooks-system/application/services/notification/components/NotificationQueue.js +36 -0
- package/scripts/hooks-system/application/services/notification/components/NotificationRetryExecutor.js +58 -0
- package/scripts/hooks-system/application/services/platform/PlatformHeuristics.js +144 -0
- package/scripts/hooks-system/application/services/recovery/AutoRecoveryManager.js +137 -0
- package/scripts/hooks-system/application/services/recovery/__tests__/AutoRecoveryManager.spec.js +62 -0
- package/scripts/hooks-system/application/services/smart-commit/CommitMessageSuggester.js +97 -0
- package/scripts/hooks-system/application/services/smart-commit/FileContextGrouper.js +114 -0
- package/scripts/hooks-system/application/services/smart-commit/SmartCommitSummaryBuilder.js +53 -0
- package/scripts/hooks-system/application/services/token/CursorTokenService.js +44 -0
- package/scripts/hooks-system/application/services/token/TokenMetricsService.js +109 -0
- package/scripts/hooks-system/application/services/token/TokenMonitorService.js +160 -0
- package/scripts/hooks-system/application/services/token/TokenStatusReporter.js +56 -0
- package/scripts/hooks-system/application/services/token/__tests__/CursorTokenService.spec.js +69 -0
- package/scripts/hooks-system/application/services/token/__tests__/TokenMonitorService.spec.js +185 -0
- package/scripts/hooks-system/application/state/HookSystemStateMachine.js +59 -0
- package/scripts/hooks-system/application/state/__tests__/HookSystemStateMachine.spec.js +115 -0
- package/scripts/hooks-system/application/use-cases/AnalyzeCodebaseUseCase.js +54 -0
- package/scripts/hooks-system/application/use-cases/AnalyzeStagedFilesUseCase.js +61 -0
- package/scripts/hooks-system/application/use-cases/AutoExecuteAIStartUseCase.js +123 -0
- package/scripts/hooks-system/application/use-cases/BlockCommitUseCase.js +90 -0
- package/scripts/hooks-system/application/use-cases/GenerateAuditReportUseCase.js +184 -0
- package/scripts/hooks-system/application/use-cases/__tests__/AnalyzeCodebaseUseCase.spec.js +156 -0
- package/scripts/hooks-system/application/use-cases/__tests__/AnalyzeStagedFilesUseCase.spec.js +146 -0
- package/scripts/hooks-system/application/use-cases/__tests__/AutoExecuteAIStartUseCase.spec.js +89 -0
- package/scripts/hooks-system/application/use-cases/__tests__/BlockCommitUseCase.spec.js +171 -0
- package/scripts/hooks-system/application/use-cases/__tests__/GenerateAuditReportUseCase.spec.js +207 -0
- package/scripts/hooks-system/bin/__tests__/auto-fix-violations.spec.js +132 -0
- package/scripts/hooks-system/bin/__tests__/auto-restart-guards.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/check-doc-drift.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/check-version.spec.js +240 -0
- package/scripts/hooks-system/bin/__tests__/cli.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/guard-auto-manager.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/guard-supervisor.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/hook-status.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/install.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/nightly-metrics-report.spec.js +94 -0
- package/scripts/hooks-system/bin/__tests__/plan-review.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/predictive-hooks.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/run-ast-adapter.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/run-orchestrator.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/run-playbook.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/setup-eslint.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/violations-api.spec.js +11 -0
- package/scripts/hooks-system/bin/__tests__/watch-hooks.spec.js +11 -0
- package/scripts/hooks-system/bin/ai-commit.sh +63 -0
- package/scripts/hooks-system/bin/audit +463 -0
- package/scripts/hooks-system/bin/audit-library.js +54 -0
- package/scripts/hooks-system/bin/auto-fix-violations.js +130 -0
- package/scripts/hooks-system/bin/auto-restart-guards.js +93 -0
- package/scripts/hooks-system/bin/check-doc-drift.js +35 -0
- package/scripts/hooks-system/bin/check-version.js +201 -0
- package/scripts/hooks-system/bin/cleanup-branches.sh +106 -0
- package/scripts/hooks-system/bin/cli.js +208 -0
- package/scripts/hooks-system/bin/demo-recording.sh +57 -0
- package/scripts/hooks-system/bin/demo-violations +44 -0
- package/scripts/hooks-system/bin/fix-enforcer +27 -0
- package/scripts/hooks-system/bin/fix-gitflow-enforcement.sh +68 -0
- package/scripts/hooks-system/bin/generate-progress-report.sh +129 -0
- package/scripts/hooks-system/bin/git-analyze-pairs.sh +0 -0
- package/scripts/hooks-system/bin/git-leave-branch-check.sh +73 -0
- package/scripts/hooks-system/bin/gitflow +17 -0
- package/scripts/hooks-system/bin/gitflow-shell-integration.sh +64 -0
- package/scripts/hooks-system/bin/guard-auto-manager.js +44 -0
- package/scripts/hooks-system/bin/guard-autostart.sh +158 -0
- package/scripts/hooks-system/bin/guard-env.sh +40 -0
- package/scripts/hooks-system/bin/guard-supervisor.js +516 -0
- package/scripts/hooks-system/bin/hook-status.js +41 -0
- package/scripts/hooks-system/bin/install-git-wrapper.sh +53 -0
- package/scripts/hooks-system/bin/install.js +10 -0
- package/scripts/hooks-system/bin/kill-mcp-zombies.sh +48 -0
- package/scripts/hooks-system/bin/nightly-metrics-report.js +138 -0
- package/scripts/hooks-system/bin/plan-review.js +31 -0
- package/scripts/hooks-system/bin/predictive-hooks.js +18 -0
- package/scripts/hooks-system/bin/pumuki-audit.js +113 -0
- package/scripts/hooks-system/bin/pumuki-init.js +104 -0
- package/scripts/hooks-system/bin/pumuki-mcp.js +74 -0
- package/scripts/hooks-system/bin/pumuki-rules.js +74 -0
- package/scripts/hooks-system/bin/request-no-verify-approval.sh +116 -0
- package/scripts/hooks-system/bin/run-ast-adapter.js +86 -0
- package/scripts/hooks-system/bin/run-intelligent-audit.sh +67 -0
- package/scripts/hooks-system/bin/run-orchestrator.js +27 -0
- package/scripts/hooks-system/bin/run-playbook.js +23 -0
- package/scripts/hooks-system/bin/session-loader.sh +264 -0
- package/scripts/hooks-system/bin/setup-eslint.js +110 -0
- package/scripts/hooks-system/bin/start-guards.sh +190 -0
- package/scripts/hooks-system/bin/sync-autonomous-orchestrator.sh +32 -0
- package/scripts/hooks-system/bin/sync-to-library.sh +46 -0
- package/scripts/hooks-system/bin/update-evidence.sh +1167 -0
- package/scripts/hooks-system/bin/update-session-context.sh +261 -0
- package/scripts/hooks-system/bin/verify-no-verify.sh +68 -0
- package/scripts/hooks-system/bin/violations +20 -0
- package/scripts/hooks-system/bin/violations-api.js +345 -0
- package/scripts/hooks-system/bin/watch-hooks.js +20 -0
- package/scripts/hooks-system/config/project.config.json +36 -0
- package/scripts/hooks-system/config/state-map.json +12 -0
- package/scripts/hooks-system/domain/entities/AuditResult.js +139 -0
- package/scripts/hooks-system/domain/entities/Finding.js +116 -0
- package/scripts/hooks-system/domain/entities/SeverityConfig.js +73 -0
- package/scripts/hooks-system/domain/entities/SeverityConfig.ts +90 -0
- package/scripts/hooks-system/domain/entities/__tests__/AuditResult.spec.js +450 -0
- package/scripts/hooks-system/domain/entities/__tests__/Finding.spec.js +335 -0
- package/scripts/hooks-system/domain/entities/__tests__/SeverityConfig.spec.js +240 -0
- package/scripts/hooks-system/domain/entities/__tests__/entities.spec.js +29 -0
- package/scripts/hooks-system/domain/errors/__tests__/DomainErrors.spec.js +59 -0
- package/scripts/hooks-system/domain/errors/index.js +169 -0
- package/scripts/hooks-system/domain/events/__tests__/DomainEvents.spec.js +60 -0
- package/scripts/hooks-system/domain/events/index.js +121 -0
- package/scripts/hooks-system/domain/ports/IAstPort.js +67 -0
- package/scripts/hooks-system/domain/ports/IEvidencePort.js +86 -0
- package/scripts/hooks-system/domain/ports/IGitCommandPort.js +110 -0
- package/scripts/hooks-system/domain/ports/IGitPort.js +114 -0
- package/scripts/hooks-system/domain/ports/IGitQueryPort.js +93 -0
- package/scripts/hooks-system/domain/ports/INotificationPort.js +35 -0
- package/scripts/hooks-system/domain/ports/__tests__/ports.spec.js +36 -0
- package/scripts/hooks-system/domain/ports/index.js +14 -0
- package/scripts/hooks-system/domain/repositories/ICursorTokenRepository.js +13 -0
- package/scripts/hooks-system/domain/repositories/IFindingsRepository.js +30 -0
- package/scripts/hooks-system/domain/repositories/__tests__/IFindingsRepository.spec.js +18 -0
- package/scripts/hooks-system/domain/rules/CommitBlockingRules.js +142 -0
- package/scripts/hooks-system/domain/rules/__tests__/CommitBlockingRules.spec.js +18 -0
- package/scripts/hooks-system/domain/services/AuditAnalyzer.js +103 -0
- package/scripts/hooks-system/domain/services/AuditFilter.js +26 -0
- package/scripts/hooks-system/domain/services/AuditResultSerializer.js +35 -0
- package/scripts/hooks-system/domain/services/AuditScorer.js +38 -0
- package/scripts/hooks-system/domain/values/Severity.js +93 -0
- package/scripts/hooks-system/index.js +49 -0
- package/scripts/hooks-system/infrastructure/adapters/AstAnalyzerAdapter.js +150 -0
- package/scripts/hooks-system/infrastructure/adapters/FileEvidenceAdapter.js +140 -0
- package/scripts/hooks-system/infrastructure/adapters/GitCliAdapter.js +16 -0
- package/scripts/hooks-system/infrastructure/adapters/GitCommandAdapter.js +68 -0
- package/scripts/hooks-system/infrastructure/adapters/GitHubCliAdapter.js +85 -0
- package/scripts/hooks-system/infrastructure/adapters/GitQueryAdapter.js +58 -0
- package/scripts/hooks-system/infrastructure/adapters/LegacyAnalyzerAdapter.js +61 -0
- package/scripts/hooks-system/infrastructure/adapters/MacOSNotificationAdapter.js +99 -0
- package/scripts/hooks-system/infrastructure/adapters/__tests__/AstAnalyzerAdapter.spec.js +32 -0
- package/scripts/hooks-system/infrastructure/adapters/__tests__/FileEvidenceAdapter.spec.js +31 -0
- package/scripts/hooks-system/infrastructure/adapters/__tests__/GitCliAdapter.spec.js +39 -0
- package/scripts/hooks-system/infrastructure/adapters/__tests__/MacOSNotificationAdapter.spec.js +33 -0
- package/scripts/hooks-system/infrastructure/adapters/git/GitCommandRunner.js +78 -0
- package/scripts/hooks-system/infrastructure/adapters/git/GitCommandService.js +67 -0
- package/scripts/hooks-system/infrastructure/adapters/git/GitQueryService.js +50 -0
- package/scripts/hooks-system/infrastructure/adapters/index.js +14 -0
- package/scripts/hooks-system/infrastructure/ast/README.md +198 -0
- package/scripts/hooks-system/infrastructure/ast/__tests__/ast-core.spec.js +160 -0
- package/scripts/hooks-system/infrastructure/ast/__tests__/ast-intelligence.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/android/__tests__/ast-android.spec.js +33 -0
- package/scripts/hooks-system/infrastructure/ast/android/__tests__/clean-architecture-analyzer.spec.js +96 -0
- package/scripts/hooks-system/infrastructure/ast/android/__tests__/ddd-analyzer.spec.js +113 -0
- package/scripts/hooks-system/infrastructure/ast/android/__tests__/detekt-runner.spec.js +36 -0
- package/scripts/hooks-system/infrastructure/ast/android/__tests__/feature-first-analyzer.spec.js +80 -0
- package/scripts/hooks-system/infrastructure/ast/android/__tests__/native-bridge.spec.js +31 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidASTIntelligentAnalyzer.js +15 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidASTParser.js +157 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidAnalysisOrchestrator.js +164 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidArchitectureDetector.js +334 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidClassAnalyzer.js +162 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidForbiddenLiteralsAnalyzer.js +261 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/AndroidSOLIDAnalyzer.js +287 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/__tests__/AndroidForbiddenLiteralsAnalyzer.spec.js +58 -0
- package/scripts/hooks-system/infrastructure/ast/android/analyzers/__tests__/AndroidSOLIDAnalyzer.spec.js +84 -0
- package/scripts/hooks-system/infrastructure/ast/android/ast-android.js +1785 -0
- package/scripts/hooks-system/infrastructure/ast/android/clean-architecture-analyzer.js +115 -0
- package/scripts/hooks-system/infrastructure/ast/android/ddd-analyzer.js +70 -0
- package/scripts/hooks-system/infrastructure/ast/android/detekt-runner.js +81 -0
- package/scripts/hooks-system/infrastructure/ast/android/feature-first-analyzer.js +53 -0
- package/scripts/hooks-system/infrastructure/ast/android/native-bridge.js +119 -0
- package/scripts/hooks-system/infrastructure/ast/archive/README.md +18 -0
- package/scripts/hooks-system/infrastructure/ast/archive/ast-intelligence.ts +276 -0
- package/scripts/hooks-system/infrastructure/ast/archive/ios-rules.js +329 -0
- package/scripts/hooks-system/infrastructure/ast/archive/kotlin-analyzer.js +332 -0
- package/scripts/hooks-system/infrastructure/ast/archive/kotlin-parser.js +303 -0
- package/scripts/hooks-system/infrastructure/ast/archive/swift-analyzer.js +390 -0
- package/scripts/hooks-system/infrastructure/ast/ast-core.js +594 -0
- package/scripts/hooks-system/infrastructure/ast/ast-intelligence.js +617 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/ast-backend.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/clean-architecture-analyzer.spec.js +151 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/ddd-analyzer.spec.js +124 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/feature-first-analyzer.spec.js +128 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/forbidden-literals-analyzer.spec.js +95 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/nestjs-patterns-analyzer.spec.js +59 -0
- package/scripts/hooks-system/infrastructure/ast/backend/__tests__/solid-analyzer.spec.js +114 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/BackendArchitectureDetector.js +141 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/BackendPatternDetector.js +23 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js +239 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js +58 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/CQRSDetector.js +41 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/CleanArchitectureDetector.js +52 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/FeatureFirstCleanDetector.js +74 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/LayeredArchitectureDetector.js +25 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/MVCDetector.js +32 -0
- package/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/OnionArchitectureDetector.js +32 -0
- package/scripts/hooks-system/infrastructure/ast/backend/ast-backend-clean.js +44 -0
- package/scripts/hooks-system/infrastructure/ast/backend/ast-backend.js +2048 -0
- package/scripts/hooks-system/infrastructure/ast/backend/clean-architecture-analyzer.js +142 -0
- package/scripts/hooks-system/infrastructure/ast/backend/ddd-analyzer.js +256 -0
- package/scripts/hooks-system/infrastructure/ast/backend/feature-first-analyzer.js +70 -0
- package/scripts/hooks-system/infrastructure/ast/backend/forbidden-literals-analyzer.js +236 -0
- package/scripts/hooks-system/infrastructure/ast/backend/nestjs-patterns-analyzer.js +11 -0
- package/scripts/hooks-system/infrastructure/ast/backend/solid-analyzer.js +392 -0
- package/scripts/hooks-system/infrastructure/ast/common/BDDTDDWorkflowRules.js +52 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/BDDTDDWorkflowRules.spec.js +133 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/ast-common.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/documentation-analyzer.spec.js +120 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/images-backend-analyzer.spec.js +123 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/monorepo-health-analyzer.spec.js +118 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/network-resilience-analyzer.spec.js +180 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/offline-backend-analyzer.spec.js +111 -0
- package/scripts/hooks-system/infrastructure/ast/common/__tests__/push-backend-analyzer.spec.js +124 -0
- package/scripts/hooks-system/infrastructure/ast/common/ast-common.js +345 -0
- package/scripts/hooks-system/infrastructure/ast/common/documentation-analyzer.js +217 -0
- package/scripts/hooks-system/infrastructure/ast/common/images-backend-analyzer.js +36 -0
- package/scripts/hooks-system/infrastructure/ast/common/monorepo-health-analyzer.js +452 -0
- package/scripts/hooks-system/infrastructure/ast/common/network-resilience-analyzer.js +178 -0
- package/scripts/hooks-system/infrastructure/ast/common/offline-backend-analyzer.js +53 -0
- package/scripts/hooks-system/infrastructure/ast/common/push-backend-analyzer.js +42 -0
- package/scripts/hooks-system/infrastructure/ast/common/rules/BDDRules.js +87 -0
- package/scripts/hooks-system/infrastructure/ast/common/rules/ImplementationRules.js +83 -0
- package/scripts/hooks-system/infrastructure/ast/common/rules/TDDRules.js +109 -0
- package/scripts/hooks-system/infrastructure/ast/common/rules/WorkflowRules.js +137 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/__tests__/ast-frontend.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/analyzers/FrontendArchitectureDetector.js +289 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/analyzers/FrontendForbiddenLiteralsAnalyzer.js +257 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/analyzers/FrontendSOLIDAnalyzer.js +274 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/analyzers/__tests__/FrontendArchitectureDetector.spec.js +151 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/analyzers/__tests__/FrontendForbiddenLiteralsAnalyzer.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/analyzers/__tests__/FrontendSOLIDAnalyzer.spec.js +108 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/ast-frontend-clean.js +42 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/ast-frontend.js +2094 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/clean-architecture-analyzer.js +88 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/ddd-analyzer.js +94 -0
- package/scripts/hooks-system/infrastructure/ast/frontend/feature-first-analyzer.js +51 -0
- package/scripts/hooks-system/infrastructure/ast/ios/__tests__/ast-ios.spec.js +40 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSArchitectureDetector.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSArchitectureRules.spec.js +61 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSCICDRules.spec.js +10 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSEnterpriseAnalyzer.spec.js +36 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSForbiddenLiteralsAnalyzer.spec.js +64 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSNetworkingAdvancedRules.spec.js +10 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSPerformanceRules.spec.js +34 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSSPMRules.spec.js +10 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/__tests__/iOSSwiftUIAdvancedRules.spec.js +10 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSASTIntelligentAnalyzer.js +894 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSArchitectureDetector.js +445 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSArchitectureRules.js +700 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSCICDRules.js +431 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSEnterpriseAnalyzer.js +580 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSForbiddenLiteralsAnalyzer.js +261 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSNetworkingAdvancedRules.js +177 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSPerformanceRules.js +11 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSSPMRules.js +496 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSSwiftUIAdvancedRules.js +333 -0
- package/scripts/hooks-system/infrastructure/ast/ios/analyzers/iOSTestingAdvancedRules.js +225 -0
- package/scripts/hooks-system/infrastructure/ast/ios/ast-ios.js +2176 -0
- package/scripts/hooks-system/infrastructure/ast/ios/native-bridge.js +92 -0
- package/scripts/hooks-system/infrastructure/ast/ios/parsers/SourceKittenParser.js +471 -0
- package/scripts/hooks-system/infrastructure/ast/ios/parsers/__tests__/SourceKittenParser.spec.js +41 -0
- package/scripts/hooks-system/infrastructure/ast/text/__tests__/text-scanner.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/ast/text/text-scanner.js +1120 -0
- package/scripts/hooks-system/infrastructure/cache/CacheService.js +160 -0
- package/scripts/hooks-system/infrastructure/cli/__tests__/install-wizard.spec.js +16 -0
- package/scripts/hooks-system/infrastructure/cli/install-wizard.js +74 -0
- package/scripts/hooks-system/infrastructure/core/GitOperations.js +50 -0
- package/scripts/hooks-system/infrastructure/core/GitOperations.ts +112 -0
- package/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js +146 -0
- package/scripts/hooks-system/infrastructure/eslint/eslint-integration.sh +75 -0
- package/scripts/hooks-system/infrastructure/events/EventListeners.js +143 -0
- package/scripts/hooks-system/infrastructure/events/__tests__/events.spec.js +14 -0
- package/scripts/hooks-system/infrastructure/external-tools/GitOperations.js +54 -0
- package/scripts/hooks-system/infrastructure/external-tools/eslint/backend.config.template.mjs +58 -0
- package/scripts/hooks-system/infrastructure/git-hooks/pre-push +35 -0
- package/scripts/hooks-system/infrastructure/git-server/pre-receive-hook +253 -0
- package/scripts/hooks-system/infrastructure/guards/git-wrapper.sh +32 -0
- package/scripts/hooks-system/infrastructure/guards/master-validator.sh +247 -0
- package/scripts/hooks-system/infrastructure/guards/prevent-no-verify.sh +34 -0
- package/scripts/hooks-system/infrastructure/hooks/__tests__/skill-activation-prompt.spec.js +11 -0
- package/scripts/hooks-system/infrastructure/hooks/pre-tool-use-intelligent-enforcer.sh +489 -0
- package/scripts/hooks-system/infrastructure/hooks/skill-activation-prompt.js +244 -0
- package/scripts/hooks-system/infrastructure/logging/UnifiedLoggerFactory.js +40 -0
- package/scripts/hooks-system/infrastructure/logging/__tests__/logging.spec.js +9 -0
- package/scripts/hooks-system/infrastructure/mcp/README.md +116 -0
- package/scripts/hooks-system/infrastructure/mcp/__tests__/ast-intelligence-automation.spec.js +38 -0
- package/scripts/hooks-system/infrastructure/mcp/__tests__/evidence-watcher.spec.js +38 -0
- package/scripts/hooks-system/infrastructure/mcp/ast-intelligence-automation.js +1097 -0
- package/scripts/hooks-system/infrastructure/mcp/evidence-watcher.js +128 -0
- package/scripts/hooks-system/infrastructure/mcp/package.json +17 -0
- package/scripts/hooks-system/infrastructure/mcp/services/EvidenceService.js +87 -0
- package/scripts/hooks-system/infrastructure/mcp/services/McpProtocolHandler.js +166 -0
- package/scripts/hooks-system/infrastructure/orchestration/__tests__/intelligent-audit.spec.js +11 -0
- package/scripts/hooks-system/infrastructure/orchestration/intelligent-audit.js +353 -0
- package/scripts/hooks-system/infrastructure/patterns/pattern-checks.sh +98 -0
- package/scripts/hooks-system/infrastructure/reporting/ReportImpactAnalyzer.js +109 -0
- package/scripts/hooks-system/infrastructure/reporting/ReportMetricsCalculator.js +114 -0
- package/scripts/hooks-system/infrastructure/reporting/ReportPresenter.js +86 -0
- package/scripts/hooks-system/infrastructure/reporting/__tests__/reporting.spec.js +15 -0
- package/scripts/hooks-system/infrastructure/reporting/report-generator.js +130 -0
- package/scripts/hooks-system/infrastructure/reporting/severity-tracker.js +105 -0
- package/scripts/hooks-system/infrastructure/repositories/CursorTokenRepository.js +76 -0
- package/scripts/hooks-system/infrastructure/repositories/FileFindingsRepository.js +88 -0
- package/scripts/hooks-system/infrastructure/repositories/__tests__/repositories.spec.js +20 -0
- package/scripts/hooks-system/infrastructure/repositories/datasources/CursorApiDataSource.js +73 -0
- package/scripts/hooks-system/infrastructure/repositories/datasources/CursorFileDataSource.js +55 -0
- package/scripts/hooks-system/infrastructure/severity/__tests__/severity-evaluator.spec.js +18 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/__tests__/maintainability-analyzer.spec.js +170 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/__tests__/performance-analyzer.spec.js +186 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/__tests__/security-analyzer.spec.js +151 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/__tests__/stability-analyzer.spec.js +143 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/maintainability-analyzer.js +100 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/performance-analyzer.js +109 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/security-analyzer.js +104 -0
- package/scripts/hooks-system/infrastructure/severity/analyzers/stability-analyzer.js +85 -0
- package/scripts/hooks-system/infrastructure/severity/context/analyzers/CodeClassificationAnalyzer.js +71 -0
- package/scripts/hooks-system/infrastructure/severity/context/analyzers/DataAnalyzer.js +64 -0
- package/scripts/hooks-system/infrastructure/severity/context/analyzers/ImpactAnalyzer.js +68 -0
- package/scripts/hooks-system/infrastructure/severity/context/analyzers/SafetyAnalyzer.js +82 -0
- package/scripts/hooks-system/infrastructure/severity/context/context-builder.js +88 -0
- package/scripts/hooks-system/infrastructure/severity/generators/RecommendationGenerator.js +153 -0
- package/scripts/hooks-system/infrastructure/severity/mappers/SeverityMapper.js +10 -0
- package/scripts/hooks-system/infrastructure/severity/policies/gate-policies.js +136 -0
- package/scripts/hooks-system/infrastructure/severity/policies/severity-policies.json +206 -0
- package/scripts/hooks-system/infrastructure/severity/scorers/ContextMultiplier.js +49 -0
- package/scripts/hooks-system/infrastructure/severity/severity-evaluator.js +117 -0
- package/scripts/hooks-system/infrastructure/shell/core/constants.sh +26 -0
- package/scripts/hooks-system/infrastructure/shell/core/utils.sh +45 -0
- package/scripts/hooks-system/infrastructure/shell/gitflow/git-wrapper.sh +646 -0
- package/scripts/hooks-system/infrastructure/shell/gitflow/gitflow-enforcer.sh +620 -0
- package/scripts/hooks-system/infrastructure/shell/gitflow/gitflow-state-manager.sh +235 -0
- package/scripts/hooks-system/infrastructure/shell/gitflow-state-manager.sh +225 -0
- package/scripts/hooks-system/infrastructure/shell/orchestrators/audit-orchestrator.sh +1106 -0
- package/scripts/hooks-system/infrastructure/shell/security/detect-secrets.sh +26 -0
- package/scripts/hooks-system/infrastructure/shell/security/detect_secrets.py +182 -0
- package/scripts/hooks-system/infrastructure/shell/validate-clean-architecture.sh +254 -0
- package/scripts/hooks-system/infrastructure/shell/validators/check-doc-structure.sh +62 -0
- package/scripts/hooks-system/infrastructure/shell/validators/ensure-critical-docs.sh +26 -0
- package/scripts/hooks-system/infrastructure/shell/validators/validate-ai-protocol.sh +474 -0
- package/scripts/hooks-system/infrastructure/shell/validators/validate-clean-architecture.sh +303 -0
- package/scripts/hooks-system/infrastructure/shell/validators/validate-conventional-commit.sh +42 -0
- package/scripts/hooks-system/infrastructure/storage/file-operations.sh +31 -0
- package/scripts/hooks-system/infrastructure/telemetry/TelemetryService.js +165 -0
- package/scripts/hooks-system/infrastructure/telemetry/__tests__/telemetry.spec.js +15 -0
- package/scripts/hooks-system/infrastructure/telemetry/metrics-logger.js +66 -0
- package/scripts/hooks-system/infrastructure/telemetry/metrics-server.js +61 -0
- package/scripts/hooks-system/infrastructure/utils/__tests__/utils.spec.js +8 -0
- package/scripts/hooks-system/infrastructure/utils/error-utils.js +28 -0
- package/scripts/hooks-system/infrastructure/utils/timestamp-helper.sh +106 -0
- package/scripts/hooks-system/infrastructure/utils/token-manager.js +121 -0
- package/scripts/hooks-system/infrastructure/validators/__tests__/detect-commit-language.spec.js +16 -0
- package/scripts/hooks-system/infrastructure/validators/__tests__/enforce-english-literals.spec.js +67 -0
- package/scripts/hooks-system/infrastructure/validators/detect-commit-language.js +145 -0
- package/scripts/hooks-system/infrastructure/validators/enforce-english-literals.js +202 -0
- package/scripts/hooks-system/infrastructure/watchdog/__tests__/.audit-reports/token-monitor.log +18 -0
- package/scripts/hooks-system/infrastructure/watchdog/__tests__/auto-recovery.spec.js +14 -0
- package/scripts/hooks-system/infrastructure/watchdog/__tests__/token-monitor.spec.js +67 -0
- package/scripts/hooks-system/infrastructure/watchdog/__tests__/watchdog.spec.js +22 -0
- package/scripts/hooks-system/infrastructure/watchdog/ai-watchdog.sh +278 -0
- package/scripts/hooks-system/infrastructure/watchdog/auto-recovery.js +32 -0
- package/scripts/hooks-system/infrastructure/watchdog/health-check.js +58 -0
- package/scripts/hooks-system/infrastructure/watchdog/token-monitor-loop.sh +20 -0
- package/scripts/hooks-system/infrastructure/watchdog/token-monitor.js +69 -0
- package/scripts/hooks-system/infrastructure/watchdog/token-tracker.sh +208 -0
- package/scripts/hooks-system/presentation/cli/audit.sh +32 -0
- package/scripts/hooks-system/presentation/cli/autonomous-status.sh +92 -0
- package/scripts/hooks-system/presentation/cli/categorize-violations.sh +179 -0
- package/scripts/hooks-system/presentation/cli/direct-audit-option2.sh +23 -0
- package/scripts/hooks-system/presentation/cli/direct-audit.sh +33 -0
- package/skills/android-guidelines/SKILL.md +475 -0
- package/skills/android-guidelines/resources/advanced-topics.md +44 -0
- package/skills/android-guidelines/resources/architecture-overview.md +44 -0
- package/skills/backend-guidelines/SKILL.md +335 -0
- package/skills/backend-guidelines/resources/architecture-overview.md +48 -0
- package/skills/frontend-guidelines/SKILL.md +367 -0
- package/skills/frontend-guidelines/resources/architecture-overview.md +44 -0
- package/skills/ios-guidelines/SKILL.md +406 -0
- package/skills/ios-guidelines/resources/architecture-overview.md +47 -0
- package/skills/skill-rules.json +334 -0
|
@@ -0,0 +1,1338 @@
|
|
|
1
|
+
|
|
2
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
3
|
+
AST INTELLIGENCE - VIOLATION REPORT
|
|
4
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
5
|
+
Generated: 2025-12-25T22:29:39.631Z
|
|
6
|
+
Status: ❌ FAILED
|
|
7
|
+
Blocked by: CRITICAL violations
|
|
8
|
+
|
|
9
|
+
📊 SUMMARY:
|
|
10
|
+
Total Violations: 556
|
|
11
|
+
- 🚨 CRITICAL: 257
|
|
12
|
+
- ⚠️ HIGH: 0
|
|
13
|
+
- ⚡ MEDIUM: 99
|
|
14
|
+
- ℹ️ LOW: 200
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
📊 IMPACT ANALYSIS:
|
|
18
|
+
Security: 0/100
|
|
19
|
+
Stability: 0/100
|
|
20
|
+
Performance: 0/100
|
|
21
|
+
Maintainability: 0/100
|
|
22
|
+
|
|
23
|
+
Dominant Impact: SECURITY
|
|
24
|
+
Risk Profile: MINIMAL_RISK
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
🚨 CRITICAL ISSUES (MUST FIX):
|
|
28
|
+
|
|
29
|
+
1. backend.antipattern.god_classes
|
|
30
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/CompositionRoot.js:9
|
|
31
|
+
Score: 50/100
|
|
32
|
+
God class detected: 8 methods, 0 properties, 78 lines, complexity 10, concerns 2 - VIOLATES SRP
|
|
33
|
+
|
|
34
|
+
2. backend.antipattern.god_classes
|
|
35
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/install.js:16
|
|
36
|
+
Score: 50/100
|
|
37
|
+
God class detected: 24 methods, 0 properties, 957 lines, complexity 85, concerns 7 - VIOLATES SRP
|
|
38
|
+
|
|
39
|
+
3. backend.antipattern.god_classes
|
|
40
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/setup-eslint.js:14
|
|
41
|
+
Score: 50/100
|
|
42
|
+
God class detected: 5 methods, 0 properties, 92 lines, complexity 5, concerns 3 - VIOLATES SRP
|
|
43
|
+
|
|
44
|
+
4. backend.antipattern.god_classes
|
|
45
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/violations-api.js:6
|
|
46
|
+
Score: 50/100
|
|
47
|
+
God class detected: 10 methods, 0 properties, 141 lines, complexity 18, concerns 4 - VIOLATES SRP
|
|
48
|
+
|
|
49
|
+
5. backend.antipattern.god_classes
|
|
50
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/BackendArchitectureDetector.js:12
|
|
51
|
+
Score: 50/100
|
|
52
|
+
God class detected: 4 methods, 0 properties, 127 lines, complexity 10, concerns 2 - VIOLATES SRP
|
|
53
|
+
|
|
54
|
+
6. backend.antipattern.god_classes
|
|
55
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/BackendPatternDetector.js:4
|
|
56
|
+
Score: 50/100
|
|
57
|
+
God class detected: 1 methods, 0 properties, 16 lines, complexity 3, concerns 2 - VIOLATES SRP
|
|
58
|
+
|
|
59
|
+
7. backend.testing.mocks
|
|
60
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js:1
|
|
61
|
+
Score: 50/100
|
|
62
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
63
|
+
|
|
64
|
+
8. backend.testing.mocks
|
|
65
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js:2
|
|
66
|
+
Score: 50/100
|
|
67
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
68
|
+
|
|
69
|
+
9. backend.testing.mocks
|
|
70
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js:3
|
|
71
|
+
Score: 50/100
|
|
72
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
73
|
+
|
|
74
|
+
10. backend.testing.mocks
|
|
75
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js:4
|
|
76
|
+
Score: 50/100
|
|
77
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
78
|
+
|
|
79
|
+
11. backend.testing.mocks
|
|
80
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js:5
|
|
81
|
+
Score: 50/100
|
|
82
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
83
|
+
|
|
84
|
+
12. backend.testing.mocks
|
|
85
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/__tests__/CompositionRoot.spec.js:6
|
|
86
|
+
Score: 50/100
|
|
87
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
88
|
+
|
|
89
|
+
13. backend.antipattern.god_classes
|
|
90
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:3
|
|
91
|
+
Score: 50/100
|
|
92
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
93
|
+
|
|
94
|
+
14. backend.antipattern.god_classes
|
|
95
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:10
|
|
96
|
+
Score: 50/100
|
|
97
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
98
|
+
|
|
99
|
+
15. backend.antipattern.god_classes
|
|
100
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:17
|
|
101
|
+
Score: 50/100
|
|
102
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
103
|
+
|
|
104
|
+
16. backend.antipattern.god_classes
|
|
105
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:24
|
|
106
|
+
Score: 50/100
|
|
107
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
108
|
+
|
|
109
|
+
17. backend.antipattern.god_classes
|
|
110
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:31
|
|
111
|
+
Score: 50/100
|
|
112
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
113
|
+
|
|
114
|
+
18. backend.antipattern.god_classes
|
|
115
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:38
|
|
116
|
+
Score: 50/100
|
|
117
|
+
God class detected: 2 methods, 0 properties, 16 lines, complexity 1, concerns 0 - VIOLATES SRP
|
|
118
|
+
|
|
119
|
+
19. backend.error.custom_exceptions
|
|
120
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/commands/index.js:50
|
|
121
|
+
Score: 50/100
|
|
122
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
123
|
+
|
|
124
|
+
20. backend.antipattern.god_classes
|
|
125
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:1
|
|
126
|
+
Score: 50/100
|
|
127
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
128
|
+
|
|
129
|
+
21. backend.antipattern.god_classes
|
|
130
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:7
|
|
131
|
+
Score: 50/100
|
|
132
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
133
|
+
|
|
134
|
+
22. backend.antipattern.god_classes
|
|
135
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:14
|
|
136
|
+
Score: 50/100
|
|
137
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
138
|
+
|
|
139
|
+
23. backend.antipattern.god_classes
|
|
140
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:20
|
|
141
|
+
Score: 50/100
|
|
142
|
+
God class detected: 0 methods, 0 properties, 5 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
143
|
+
|
|
144
|
+
24. backend.antipattern.god_classes
|
|
145
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:27
|
|
146
|
+
Score: 50/100
|
|
147
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
148
|
+
|
|
149
|
+
25. backend.antipattern.god_classes
|
|
150
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:33
|
|
151
|
+
Score: 50/100
|
|
152
|
+
God class detected: 2 methods, 0 properties, 16 lines, complexity 1, concerns 0 - VIOLATES SRP
|
|
153
|
+
|
|
154
|
+
26. backend.error.custom_exceptions
|
|
155
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/queries/index.js:45
|
|
156
|
+
Score: 50/100
|
|
157
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
158
|
+
|
|
159
|
+
27. backend.antipattern.god_classes
|
|
160
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/AutonomousOrchestrator.js:5
|
|
161
|
+
Score: 50/100
|
|
162
|
+
God class detected: 14 methods, 0 properties, 355 lines, complexity 48, concerns 3 - VIOLATES SRP
|
|
163
|
+
|
|
164
|
+
28. backend.security.missing_audit_logging
|
|
165
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/AutonomousOrchestrator.js:1
|
|
166
|
+
Score: 50/100
|
|
167
|
+
Audit logging not detected - add structured audit logs
|
|
168
|
+
|
|
169
|
+
29. backend.antipattern.god_classes
|
|
170
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/ContextDetectionEngine.js:6
|
|
171
|
+
Score: 50/100
|
|
172
|
+
God class detected: 11 methods, 0 properties, 183 lines, complexity 24, concerns 3 - VIOLATES SRP
|
|
173
|
+
|
|
174
|
+
30. backend.security.missing_audit_logging
|
|
175
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/ContextDetectionEngine.js:1
|
|
176
|
+
Score: 50/100
|
|
177
|
+
Audit logging not detected - add structured audit logs
|
|
178
|
+
|
|
179
|
+
31. backend.antipattern.god_classes
|
|
180
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/DynamicRulesLoader.js:4
|
|
181
|
+
Score: 50/100
|
|
182
|
+
God class detected: 7 methods, 0 properties, 174 lines, complexity 17, concerns 2 - VIOLATES SRP
|
|
183
|
+
|
|
184
|
+
32. backend.security.missing_audit_logging
|
|
185
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/DynamicRulesLoader.js:1
|
|
186
|
+
Score: 50/100
|
|
187
|
+
Audit logging not detected - add structured audit logs
|
|
188
|
+
|
|
189
|
+
33. backend.security.missing_audit_logging
|
|
190
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/GitTreeState.js:1
|
|
191
|
+
Score: 50/100
|
|
192
|
+
Audit logging not detected - add structured audit logs
|
|
193
|
+
|
|
194
|
+
34. backend.antipattern.god_classes
|
|
195
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/HookSystemScheduler.js:4
|
|
196
|
+
Score: 50/100
|
|
197
|
+
God class detected: 4 methods, 0 properties, 71 lines, complexity 9, concerns 1 - VIOLATES SRP
|
|
198
|
+
|
|
199
|
+
35. backend.security.missing_audit_logging
|
|
200
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/HookSystemScheduler.js:1
|
|
201
|
+
Score: 50/100
|
|
202
|
+
Audit logging not detected - add structured audit logs
|
|
203
|
+
|
|
204
|
+
36. backend.antipattern.god_classes
|
|
205
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/IntelligentCommitAnalyzer.js:5
|
|
206
|
+
Score: 50/100
|
|
207
|
+
God class detected: 11 methods, 0 properties, 219 lines, complexity 33, concerns 0 - VIOLATES SRP
|
|
208
|
+
|
|
209
|
+
37. backend.security.missing_audit_logging
|
|
210
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/IntelligentCommitAnalyzer.js:1
|
|
211
|
+
Score: 50/100
|
|
212
|
+
Audit logging not detected - add structured audit logs
|
|
213
|
+
|
|
214
|
+
38. backend.antipattern.god_classes
|
|
215
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/IntelligentGitTreeMonitor.js:4
|
|
216
|
+
Score: 50/100
|
|
217
|
+
God class detected: 2 methods, 0 properties, 112 lines, complexity 6, concerns 3 - VIOLATES SRP
|
|
218
|
+
|
|
219
|
+
39. backend.security.missing_audit_logging
|
|
220
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/IntelligentGitTreeMonitor.js:1
|
|
221
|
+
Score: 50/100
|
|
222
|
+
Audit logging not detected - add structured audit logs
|
|
223
|
+
|
|
224
|
+
40. backend.antipattern.god_classes
|
|
225
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PlatformDetectionService.js:5
|
|
226
|
+
Score: 50/100
|
|
227
|
+
God class detected: 7 methods, 0 properties, 161 lines, complexity 28, concerns 2 - VIOLATES SRP
|
|
228
|
+
|
|
229
|
+
41. backend.security.missing_audit_logging
|
|
230
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PlatformDetectionService.js:2
|
|
231
|
+
Score: 50/100
|
|
232
|
+
Audit logging not detected - add structured audit logs
|
|
233
|
+
|
|
234
|
+
42. backend.antipattern.god_classes
|
|
235
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PlaybookRunner.js:7
|
|
236
|
+
Score: 50/100
|
|
237
|
+
God class detected: 2 methods, 0 properties, 29 lines, complexity 4, concerns 2 - VIOLATES SRP
|
|
238
|
+
|
|
239
|
+
43. backend.error.custom_exceptions
|
|
240
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PlaybookRunner.js:20
|
|
241
|
+
Score: 50/100
|
|
242
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
243
|
+
|
|
244
|
+
44. backend.error.custom_exceptions
|
|
245
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PlaybookRunner.js:31
|
|
246
|
+
Score: 50/100
|
|
247
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
248
|
+
|
|
249
|
+
45. backend.security.missing_audit_logging
|
|
250
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PlaybookRunner.js:1
|
|
251
|
+
Score: 50/100
|
|
252
|
+
Audit logging not detected - add structured audit logs
|
|
253
|
+
|
|
254
|
+
46. backend.antipattern.god_classes
|
|
255
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/PredictiveHookAdvisor.js:6
|
|
256
|
+
Score: 50/100
|
|
257
|
+
God class detected: 3 methods, 0 properties, 48 lines, complexity 7, concerns 1 - VIOLATES SRP
|
|
258
|
+
|
|
259
|
+
47. backend.antipattern.god_classes
|
|
260
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/RealtimeGuardPlugin.js:3
|
|
261
|
+
Score: 50/100
|
|
262
|
+
God class detected: 3 methods, 0 properties, 57 lines, complexity 6, concerns 1 - VIOLATES SRP
|
|
263
|
+
|
|
264
|
+
48. backend.security.missing_audit_logging
|
|
265
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/RealtimeGuardPlugin.js:1
|
|
266
|
+
Score: 50/100
|
|
267
|
+
Audit logging not detected - add structured audit logs
|
|
268
|
+
|
|
269
|
+
49. backend.antipattern.god_classes
|
|
270
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/RealtimeGuardService.js:28
|
|
271
|
+
Score: 50/100
|
|
272
|
+
God class detected: 47 methods, 0 properties, 1621 lines, complexity 231, concerns 7 - VIOLATES SRP
|
|
273
|
+
|
|
274
|
+
50. backend.antipattern.god_classes
|
|
275
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/SmartDirtyTreeAnalyzer.js:3
|
|
276
|
+
Score: 50/100
|
|
277
|
+
God class detected: 11 methods, 0 properties, 291 lines, complexity 35, concerns 2 - VIOLATES SRP
|
|
278
|
+
|
|
279
|
+
51. backend.security.missing_audit_logging
|
|
280
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/SmartDirtyTreeAnalyzer.js:1
|
|
281
|
+
Score: 50/100
|
|
282
|
+
Audit logging not detected - add structured audit logs
|
|
283
|
+
|
|
284
|
+
52. backend.antipattern.god_classes
|
|
285
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/state/HookSystemStateMachine.js:8
|
|
286
|
+
Score: 50/100
|
|
287
|
+
God class detected: 5 methods, 0 properties, 48 lines, complexity 6, concerns 2 - VIOLATES SRP
|
|
288
|
+
|
|
289
|
+
53. backend.error.custom_exceptions
|
|
290
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/state/HookSystemStateMachine.js:49
|
|
291
|
+
Score: 50/100
|
|
292
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
293
|
+
|
|
294
|
+
54. backend.antipattern.god_classes
|
|
295
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/AnalyzeCodebaseUseCase.js:3
|
|
296
|
+
Score: 50/100
|
|
297
|
+
God class detected: 2 methods, 0 properties, 49 lines, complexity 6, concerns 1 - VIOLATES SRP
|
|
298
|
+
|
|
299
|
+
55. backend.antipattern.god_classes
|
|
300
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/AnalyzeStagedFilesUseCase.js:4
|
|
301
|
+
Score: 50/100
|
|
302
|
+
God class detected: 2 methods, 0 properties, 86 lines, complexity 15, concerns 0 - VIOLATES SRP
|
|
303
|
+
|
|
304
|
+
56. backend.antipattern.god_classes
|
|
305
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/AutoExecuteAIStartUseCase.js:21
|
|
306
|
+
Score: 50/100
|
|
307
|
+
God class detected: 2 methods, 0 properties, 92 lines, complexity 9, concerns 2 - VIOLATES SRP
|
|
308
|
+
|
|
309
|
+
57. backend.error.custom_exceptions
|
|
310
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/AutoExecuteAIStartUseCase.js:67
|
|
311
|
+
Score: 50/100
|
|
312
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
313
|
+
|
|
314
|
+
58. backend.error.custom_exceptions
|
|
315
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/AutoExecuteAIStartUseCase.js:71
|
|
316
|
+
Score: 50/100
|
|
317
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
318
|
+
|
|
319
|
+
59. backend.security.missing_audit_logging
|
|
320
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/AutoExecuteAIStartUseCase.js:1
|
|
321
|
+
Score: 50/100
|
|
322
|
+
Audit logging not detected - add structured audit logs
|
|
323
|
+
|
|
324
|
+
60. backend.antipattern.god_classes
|
|
325
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/BlockCommitUseCase.js:4
|
|
326
|
+
Score: 50/100
|
|
327
|
+
God class detected: 2 methods, 0 properties, 84 lines, complexity 9, concerns 1 - VIOLATES SRP
|
|
328
|
+
|
|
329
|
+
61. backend.antipattern.god_classes
|
|
330
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/GenerateAuditReportUseCase.js:2
|
|
331
|
+
Score: 50/100
|
|
332
|
+
God class detected: 6 methods, 0 properties, 160 lines, complexity 11, concerns 1 - VIOLATES SRP
|
|
333
|
+
|
|
334
|
+
62. backend.testing.mocks
|
|
335
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/auto-fix-violations.spec.js:5
|
|
336
|
+
Score: 50/100
|
|
337
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
338
|
+
|
|
339
|
+
63. backend.testing.mocks
|
|
340
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/auto-fix-violations.spec.js:6
|
|
341
|
+
Score: 50/100
|
|
342
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
343
|
+
|
|
344
|
+
64. backend.error.custom_exceptions
|
|
345
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:72
|
|
346
|
+
Score: 50/100
|
|
347
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
348
|
+
|
|
349
|
+
65. backend.error.custom_exceptions
|
|
350
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:108
|
|
351
|
+
Score: 50/100
|
|
352
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
353
|
+
|
|
354
|
+
66. backend.error.custom_exceptions
|
|
355
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:117
|
|
356
|
+
Score: 50/100
|
|
357
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
358
|
+
|
|
359
|
+
67. backend.error.custom_exceptions
|
|
360
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:182
|
|
361
|
+
Score: 50/100
|
|
362
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
363
|
+
|
|
364
|
+
68. backend.error.custom_exceptions
|
|
365
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:198
|
|
366
|
+
Score: 50/100
|
|
367
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
368
|
+
|
|
369
|
+
69. backend.error.custom_exceptions
|
|
370
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:210
|
|
371
|
+
Score: 50/100
|
|
372
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
373
|
+
|
|
374
|
+
70. backend.error.custom_exceptions
|
|
375
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:231
|
|
376
|
+
Score: 50/100
|
|
377
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
378
|
+
|
|
379
|
+
71. backend.testing.mocks
|
|
380
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:5
|
|
381
|
+
Score: 50/100
|
|
382
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
383
|
+
|
|
384
|
+
72. backend.testing.mocks
|
|
385
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/bin/__tests__/check-version.spec.js:6
|
|
386
|
+
Score: 50/100
|
|
387
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
388
|
+
|
|
389
|
+
73. backend.antipattern.god_classes
|
|
390
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/AuditResult.js:4
|
|
391
|
+
Score: 50/100
|
|
392
|
+
God class detected: 18 methods, 0 properties, 199 lines, complexity 6, concerns 0 - VIOLATES SRP
|
|
393
|
+
|
|
394
|
+
74. backend.error.custom_exceptions
|
|
395
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/AuditResult.js:17
|
|
396
|
+
Score: 50/100
|
|
397
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
398
|
+
|
|
399
|
+
75. backend.antipattern.god_classes
|
|
400
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/Finding.js:2
|
|
401
|
+
Score: 50/100
|
|
402
|
+
God class detected: 15 methods, 0 properties, 140 lines, complexity 8, concerns 1 - VIOLATES SRP
|
|
403
|
+
|
|
404
|
+
76. backend.error.custom_exceptions
|
|
405
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/Finding.js:18
|
|
406
|
+
Score: 50/100
|
|
407
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
408
|
+
|
|
409
|
+
77. backend.error.custom_exceptions
|
|
410
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/Finding.js:23
|
|
411
|
+
Score: 50/100
|
|
412
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
413
|
+
|
|
414
|
+
78. backend.error.custom_exceptions
|
|
415
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/Finding.js:27
|
|
416
|
+
Score: 50/100
|
|
417
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
418
|
+
|
|
419
|
+
79. backend.error.custom_exceptions
|
|
420
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/Finding.js:30
|
|
421
|
+
Score: 50/100
|
|
422
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
423
|
+
|
|
424
|
+
80. backend.antipattern.god_classes
|
|
425
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/SeverityConfig.js:36
|
|
426
|
+
Score: 50/100
|
|
427
|
+
God class detected: 6 methods, 0 properties, 29 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
428
|
+
|
|
429
|
+
81. backend.antipattern.god_classes
|
|
430
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/entities/SeverityConfig.ts:51
|
|
431
|
+
Score: 50/100
|
|
432
|
+
God class detected: 8 methods, 0 properties, 37 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
433
|
+
|
|
434
|
+
82. backend.antipattern.god_classes
|
|
435
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:1
|
|
436
|
+
Score: 50/100
|
|
437
|
+
God class detected: 0 methods, 0 properties, 7 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
438
|
+
|
|
439
|
+
83. backend.antipattern.god_classes
|
|
440
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:10
|
|
441
|
+
Score: 50/100
|
|
442
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
443
|
+
|
|
444
|
+
84. backend.antipattern.god_classes
|
|
445
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:16
|
|
446
|
+
Score: 50/100
|
|
447
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
448
|
+
|
|
449
|
+
85. backend.antipattern.god_classes
|
|
450
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:22
|
|
451
|
+
Score: 50/100
|
|
452
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
453
|
+
|
|
454
|
+
86. backend.antipattern.god_classes
|
|
455
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:28
|
|
456
|
+
Score: 50/100
|
|
457
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
458
|
+
|
|
459
|
+
87. backend.antipattern.god_classes
|
|
460
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:34
|
|
461
|
+
Score: 50/100
|
|
462
|
+
God class detected: 0 methods, 0 properties, 4 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
463
|
+
|
|
464
|
+
88. backend.antipattern.god_classes
|
|
465
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/events/index.js:40
|
|
466
|
+
Score: 50/100
|
|
467
|
+
God class detected: 4 methods, 0 properties, 33 lines, complexity 3, concerns 0 - VIOLATES SRP
|
|
468
|
+
|
|
469
|
+
89. backend.antipattern.god_classes
|
|
470
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:7
|
|
471
|
+
Score: 50/100
|
|
472
|
+
God class detected: 6 methods, 0 properties, 56 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
473
|
+
|
|
474
|
+
90. backend.error.custom_exceptions
|
|
475
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:15
|
|
476
|
+
Score: 50/100
|
|
477
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
478
|
+
|
|
479
|
+
91. backend.error.custom_exceptions
|
|
480
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:25
|
|
481
|
+
Score: 50/100
|
|
482
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
483
|
+
|
|
484
|
+
92. backend.error.custom_exceptions
|
|
485
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:34
|
|
486
|
+
Score: 50/100
|
|
487
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
488
|
+
|
|
489
|
+
93. backend.error.custom_exceptions
|
|
490
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:43
|
|
491
|
+
Score: 50/100
|
|
492
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
493
|
+
|
|
494
|
+
94. backend.error.custom_exceptions
|
|
495
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:52
|
|
496
|
+
Score: 50/100
|
|
497
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
498
|
+
|
|
499
|
+
95. backend.error.custom_exceptions
|
|
500
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IAstPort.js:61
|
|
501
|
+
Score: 50/100
|
|
502
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
503
|
+
|
|
504
|
+
96. backend.antipattern.god_classes
|
|
505
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:7
|
|
506
|
+
Score: 50/100
|
|
507
|
+
God class detected: 9 methods, 0 properties, 75 lines, complexity 0, concerns 0 - VIOLATES SRP
|
|
508
|
+
|
|
509
|
+
97. backend.error.custom_exceptions
|
|
510
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:13
|
|
511
|
+
Score: 50/100
|
|
512
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
513
|
+
|
|
514
|
+
98. backend.error.custom_exceptions
|
|
515
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:22
|
|
516
|
+
Score: 50/100
|
|
517
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
518
|
+
|
|
519
|
+
99. backend.error.custom_exceptions
|
|
520
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:30
|
|
521
|
+
Score: 50/100
|
|
522
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
523
|
+
|
|
524
|
+
100. backend.error.custom_exceptions
|
|
525
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:38
|
|
526
|
+
Score: 50/100
|
|
527
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
528
|
+
|
|
529
|
+
101. backend.error.custom_exceptions
|
|
530
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:47
|
|
531
|
+
Score: 50/100
|
|
532
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
533
|
+
|
|
534
|
+
102. backend.error.custom_exceptions
|
|
535
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:56
|
|
536
|
+
Score: 50/100
|
|
537
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
538
|
+
|
|
539
|
+
103. backend.error.custom_exceptions
|
|
540
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:64
|
|
541
|
+
Score: 50/100
|
|
542
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
543
|
+
|
|
544
|
+
104. backend.error.custom_exceptions
|
|
545
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:72
|
|
546
|
+
Score: 50/100
|
|
547
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
548
|
+
|
|
549
|
+
105. backend.error.custom_exceptions
|
|
550
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IEvidencePort.js:80
|
|
551
|
+
Score: 50/100
|
|
552
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
553
|
+
|
|
554
|
+
106. backend.antipattern.god_classes
|
|
555
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:7
|
|
556
|
+
Score: 50/100
|
|
557
|
+
God class detected: 9 methods, 0 properties, 78 lines, complexity 0, concerns 1 - VIOLATES SRP
|
|
558
|
+
|
|
559
|
+
107. backend.error.custom_exceptions
|
|
560
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:13
|
|
561
|
+
Score: 50/100
|
|
562
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
563
|
+
|
|
564
|
+
108. backend.error.custom_exceptions
|
|
565
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:21
|
|
566
|
+
Score: 50/100
|
|
567
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
568
|
+
|
|
569
|
+
109. backend.error.custom_exceptions
|
|
570
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:29
|
|
571
|
+
Score: 50/100
|
|
572
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
573
|
+
|
|
574
|
+
110. backend.error.custom_exceptions
|
|
575
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:37
|
|
576
|
+
Score: 50/100
|
|
577
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
578
|
+
|
|
579
|
+
111. backend.error.custom_exceptions
|
|
580
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:46
|
|
581
|
+
Score: 50/100
|
|
582
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
583
|
+
|
|
584
|
+
112. backend.error.custom_exceptions
|
|
585
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:55
|
|
586
|
+
Score: 50/100
|
|
587
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
588
|
+
|
|
589
|
+
113. backend.error.custom_exceptions
|
|
590
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:64
|
|
591
|
+
Score: 50/100
|
|
592
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
593
|
+
|
|
594
|
+
114. backend.error.custom_exceptions
|
|
595
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:73
|
|
596
|
+
Score: 50/100
|
|
597
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
598
|
+
|
|
599
|
+
115. backend.error.custom_exceptions
|
|
600
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/IGitPort.js:83
|
|
601
|
+
Score: 50/100
|
|
602
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
603
|
+
|
|
604
|
+
116. backend.antipattern.god_classes
|
|
605
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/INotificationPort.js:9
|
|
606
|
+
Score: 50/100
|
|
607
|
+
God class detected: 2 methods, 0 properties, 22 lines, complexity 0, concerns 1 - VIOLATES SRP
|
|
608
|
+
|
|
609
|
+
117. backend.error.custom_exceptions
|
|
610
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/INotificationPort.js:21
|
|
611
|
+
Score: 50/100
|
|
612
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
613
|
+
|
|
614
|
+
118. backend.error.custom_exceptions
|
|
615
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/ports/INotificationPort.js:29
|
|
616
|
+
Score: 50/100
|
|
617
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
618
|
+
|
|
619
|
+
119. backend.antipattern.god_classes
|
|
620
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:2
|
|
621
|
+
Score: 50/100
|
|
622
|
+
God class detected: 6 methods, 0 properties, 24 lines, complexity 0, concerns 1 - VIOLATES SRP
|
|
623
|
+
|
|
624
|
+
120. backend.error.custom_exceptions
|
|
625
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:4
|
|
626
|
+
Score: 50/100
|
|
627
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
628
|
+
|
|
629
|
+
121. backend.error.custom_exceptions
|
|
630
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:8
|
|
631
|
+
Score: 50/100
|
|
632
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
633
|
+
|
|
634
|
+
122. backend.error.custom_exceptions
|
|
635
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:12
|
|
636
|
+
Score: 50/100
|
|
637
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
638
|
+
|
|
639
|
+
123. backend.error.custom_exceptions
|
|
640
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:16
|
|
641
|
+
Score: 50/100
|
|
642
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
643
|
+
|
|
644
|
+
124. backend.error.custom_exceptions
|
|
645
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:20
|
|
646
|
+
Score: 50/100
|
|
647
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
648
|
+
|
|
649
|
+
125. backend.error.custom_exceptions
|
|
650
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/repositories/IFindingsRepository.js:24
|
|
651
|
+
Score: 50/100
|
|
652
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
653
|
+
|
|
654
|
+
126. backend.antipattern.god_classes
|
|
655
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/domain/rules/CommitBlockingRules.js:2
|
|
656
|
+
Score: 50/100
|
|
657
|
+
God class detected: 7 methods, 0 properties, 138 lines, complexity 8, concerns 0 - VIOLATES SRP
|
|
658
|
+
|
|
659
|
+
127. backend.antipattern.god_classes
|
|
660
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/adapters/AstAnalyzerAdapter.js:10
|
|
661
|
+
Score: 50/100
|
|
662
|
+
God class detected: 7 methods, 0 properties, 138 lines, complexity 12, concerns 2 - VIOLATES SRP
|
|
663
|
+
|
|
664
|
+
128. backend.antipattern.god_classes
|
|
665
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/adapters/FileEvidenceAdapter.js:26
|
|
666
|
+
Score: 50/100
|
|
667
|
+
God class detected: 12 methods, 0 properties, 111 lines, complexity 12, concerns 3 - VIOLATES SRP
|
|
668
|
+
|
|
669
|
+
129. backend.error.custom_exceptions
|
|
670
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/adapters/FileEvidenceAdapter.js:87
|
|
671
|
+
Score: 50/100
|
|
672
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
673
|
+
|
|
674
|
+
130. backend.antipattern.god_classes
|
|
675
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/adapters/GitCliAdapter.js:8
|
|
676
|
+
Score: 50/100
|
|
677
|
+
God class detected: 17 methods, 0 properties, 103 lines, complexity 5, concerns 3 - VIOLATES SRP
|
|
678
|
+
|
|
679
|
+
131. backend.antipattern.god_classes
|
|
680
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/adapters/LegacyAnalyzerAdapter.js:5
|
|
681
|
+
Score: 50/100
|
|
682
|
+
God class detected: 3 methods, 0 properties, 54 lines, complexity 6, concerns 0 - VIOLATES SRP
|
|
683
|
+
|
|
684
|
+
132. backend.antipattern.god_classes
|
|
685
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/adapters/MacOSNotificationAdapter.js:4
|
|
686
|
+
Score: 50/100
|
|
687
|
+
God class detected: 5 methods, 0 properties, 93 lines, complexity 7, concerns 3 - VIOLATES SRP
|
|
688
|
+
|
|
689
|
+
133. backend.antipattern.god_classes
|
|
690
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/cache/CacheService.ts:31
|
|
691
|
+
Score: 50/100
|
|
692
|
+
God class detected: 11 methods, 3 properties, 115 lines, complexity 11, concerns 0 - VIOLATES SRP
|
|
693
|
+
|
|
694
|
+
134. backend.security.missing_audit_logging
|
|
695
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/cache/CacheService.ts:6
|
|
696
|
+
Score: 50/100
|
|
697
|
+
Audit logging not detected - add structured audit logs
|
|
698
|
+
|
|
699
|
+
135. backend.antipattern.god_classes
|
|
700
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/GitOperations.js:3
|
|
701
|
+
Score: 50/100
|
|
702
|
+
God class detected: 5 methods, 0 properties, 45 lines, complexity 10, concerns 3 - VIOLATES SRP
|
|
703
|
+
|
|
704
|
+
136. backend.antipattern.god_classes
|
|
705
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/GitOperations.ts:7
|
|
706
|
+
Score: 50/100
|
|
707
|
+
God class detected: 7 methods, 0 properties, 103 lines, complexity 14, concerns 4 - VIOLATES SRP
|
|
708
|
+
|
|
709
|
+
137. backend.antipattern.god_classes
|
|
710
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/events/EventListeners.js:5
|
|
711
|
+
Score: 50/100
|
|
712
|
+
God class detected: 10 methods, 0 properties, 139 lines, complexity 14, concerns 4 - VIOLATES SRP
|
|
713
|
+
|
|
714
|
+
138. backend.antipattern.god_classes
|
|
715
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/external-tools/GitOperations.js:6
|
|
716
|
+
Score: 50/100
|
|
717
|
+
God class detected: 4 methods, 0 properties, 46 lines, complexity 9, concerns 1 - VIOLATES SRP
|
|
718
|
+
|
|
719
|
+
139. backend.antipattern.god_classes
|
|
720
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/mcp/evidence-watcher.js:96
|
|
721
|
+
Score: 50/100
|
|
722
|
+
God class detected: 2 methods, 0 properties, 182 lines, complexity 14, concerns 1 - VIOLATES SRP
|
|
723
|
+
|
|
724
|
+
140. backend.antipattern.god_classes
|
|
725
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/reporting/report-generator.js:5
|
|
726
|
+
Score: 50/100
|
|
727
|
+
God class detected: 20 methods, 0 properties, 401 lines, complexity 29, concerns 2 - VIOLATES SRP
|
|
728
|
+
|
|
729
|
+
141. backend.antipattern.god_classes
|
|
730
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/reporting/severity-tracker.js:5
|
|
731
|
+
Score: 50/100
|
|
732
|
+
God class detected: 6 methods, 0 properties, 98 lines, complexity 10, concerns 4 - VIOLATES SRP
|
|
733
|
+
|
|
734
|
+
142. backend.antipattern.god_classes
|
|
735
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/repositories/FileFindingsRepository.js:8
|
|
736
|
+
Score: 50/100
|
|
737
|
+
God class detected: 7 methods, 0 properties, 78 lines, complexity 14, concerns 3 - VIOLATES SRP
|
|
738
|
+
|
|
739
|
+
143. backend.antipattern.god_classes
|
|
740
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/severity-evaluator.js:13
|
|
741
|
+
Score: 50/100
|
|
742
|
+
God class detected: 9 methods, 0 properties, 268 lines, complexity 30, concerns 2 - VIOLATES SRP
|
|
743
|
+
|
|
744
|
+
144. backend.antipattern.god_classes
|
|
745
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/telemetry/TelemetryService.js:4
|
|
746
|
+
Score: 50/100
|
|
747
|
+
God class detected: 7 methods, 0 properties, 159 lines, complexity 13, concerns 3 - VIOLATES SRP
|
|
748
|
+
|
|
749
|
+
145. backend.antipattern.god_classes
|
|
750
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/utils/token-manager.js:5
|
|
751
|
+
Score: 50/100
|
|
752
|
+
God class detected: 6 methods, 0 properties, 114 lines, complexity 6, concerns 3 - VIOLATES SRP
|
|
753
|
+
|
|
754
|
+
146. backend.testing.mocks
|
|
755
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:5
|
|
756
|
+
Score: 50/100
|
|
757
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
758
|
+
|
|
759
|
+
147. backend.testing.mocks
|
|
760
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:6
|
|
761
|
+
Score: 50/100
|
|
762
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
763
|
+
|
|
764
|
+
148. backend.testing.mocks
|
|
765
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:8
|
|
766
|
+
Score: 50/100
|
|
767
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
768
|
+
|
|
769
|
+
149. backend.testing.mocks
|
|
770
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:11
|
|
771
|
+
Score: 50/100
|
|
772
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
773
|
+
|
|
774
|
+
150. backend.testing.mocks
|
|
775
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:14
|
|
776
|
+
Score: 50/100
|
|
777
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
778
|
+
|
|
779
|
+
151. backend.testing.mocks
|
|
780
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:17
|
|
781
|
+
Score: 50/100
|
|
782
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
783
|
+
|
|
784
|
+
152. backend.testing.mocks
|
|
785
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:20
|
|
786
|
+
Score: 50/100
|
|
787
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
788
|
+
|
|
789
|
+
153. backend.testing.mocks
|
|
790
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:23
|
|
791
|
+
Score: 50/100
|
|
792
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
793
|
+
|
|
794
|
+
154. backend.error.custom_exceptions
|
|
795
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js:40
|
|
796
|
+
Score: 50/100
|
|
797
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
798
|
+
|
|
799
|
+
155. backend.error.custom_exceptions
|
|
800
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js:50
|
|
801
|
+
Score: 50/100
|
|
802
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
803
|
+
|
|
804
|
+
156. backend.testing.mocks
|
|
805
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js:5
|
|
806
|
+
Score: 50/100
|
|
807
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
808
|
+
|
|
809
|
+
157. backend.antipattern.god_classes
|
|
810
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/detectors/CleanArchitectureDetector.js:3
|
|
811
|
+
Score: 50/100
|
|
812
|
+
God class detected: 1 methods, 0 properties, 46 lines, complexity 6, concerns 1 - VIOLATES SRP
|
|
813
|
+
|
|
814
|
+
158. backend.antipattern.god_classes
|
|
815
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/detectors/CQRSDetector.js:3
|
|
816
|
+
Score: 50/100
|
|
817
|
+
God class detected: 1 methods, 0 properties, 35 lines, complexity 2, concerns 0 - VIOLATES SRP
|
|
818
|
+
|
|
819
|
+
159. backend.antipattern.god_classes
|
|
820
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/detectors/FeatureFirstCleanDetector.js:3
|
|
821
|
+
Score: 50/100
|
|
822
|
+
God class detected: 1 methods, 0 properties, 68 lines, complexity 9, concerns 1 - VIOLATES SRP
|
|
823
|
+
|
|
824
|
+
160. backend.antipattern.god_classes
|
|
825
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/detectors/LayeredArchitectureDetector.js:3
|
|
826
|
+
Score: 50/100
|
|
827
|
+
God class detected: 1 methods, 0 properties, 19 lines, complexity 2, concerns 1 - VIOLATES SRP
|
|
828
|
+
|
|
829
|
+
161. backend.antipattern.god_classes
|
|
830
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/detectors/MVCDetector.js:3
|
|
831
|
+
Score: 50/100
|
|
832
|
+
God class detected: 1 methods, 0 properties, 26 lines, complexity 4, concerns 1 - VIOLATES SRP
|
|
833
|
+
|
|
834
|
+
162. backend.antipattern.god_classes
|
|
835
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/analyzers/detectors/OnionArchitectureDetector.js:3
|
|
836
|
+
Score: 50/100
|
|
837
|
+
God class detected: 1 methods, 0 properties, 26 lines, complexity 3, concerns 0 - VIOLATES SRP
|
|
838
|
+
|
|
839
|
+
163. backend.security.missing_audit_logging
|
|
840
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/AutonomousOrchestrator.spec.js:1
|
|
841
|
+
Score: 50/100
|
|
842
|
+
Audit logging not detected - add structured audit logs
|
|
843
|
+
|
|
844
|
+
164. backend.security.missing_audit_logging
|
|
845
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/ContextDetectionEngine.spec.js:1
|
|
846
|
+
Score: 50/100
|
|
847
|
+
Audit logging not detected - add structured audit logs
|
|
848
|
+
|
|
849
|
+
165. backend.security.missing_audit_logging
|
|
850
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/DynamicRulesLoader.spec.js:1
|
|
851
|
+
Score: 50/100
|
|
852
|
+
Audit logging not detected - add structured audit logs
|
|
853
|
+
|
|
854
|
+
166. backend.error.custom_exceptions
|
|
855
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/GitTreeState.spec.js:85
|
|
856
|
+
Score: 50/100
|
|
857
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
858
|
+
|
|
859
|
+
167. backend.security.missing_audit_logging
|
|
860
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/GitTreeState.spec.js:1
|
|
861
|
+
Score: 50/100
|
|
862
|
+
Audit logging not detected - add structured audit logs
|
|
863
|
+
|
|
864
|
+
168. backend.testing.mocks
|
|
865
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/GitTreeState.spec.js:4
|
|
866
|
+
Score: 50/100
|
|
867
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
868
|
+
|
|
869
|
+
169. backend.security.missing_audit_logging
|
|
870
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/HookSystemScheduler.spec.js:1
|
|
871
|
+
Score: 50/100
|
|
872
|
+
Audit logging not detected - add structured audit logs
|
|
873
|
+
|
|
874
|
+
170. backend.testing.mocks
|
|
875
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/HookSystemScheduler.spec.js:5
|
|
876
|
+
Score: 50/100
|
|
877
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
878
|
+
|
|
879
|
+
171. backend.testing.mocks
|
|
880
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/HookSystemScheduler.spec.js:6
|
|
881
|
+
Score: 50/100
|
|
882
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
883
|
+
|
|
884
|
+
172. backend.security.missing_audit_logging
|
|
885
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/IntelligentGitTreeMonitor.spec.js:1
|
|
886
|
+
Score: 50/100
|
|
887
|
+
Audit logging not detected - add structured audit logs
|
|
888
|
+
|
|
889
|
+
173. backend.testing.mocks
|
|
890
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/IntelligentGitTreeMonitor.spec.js:5
|
|
891
|
+
Score: 50/100
|
|
892
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
893
|
+
|
|
894
|
+
174. backend.testing.mocks
|
|
895
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/IntelligentGitTreeMonitor.spec.js:6
|
|
896
|
+
Score: 50/100
|
|
897
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
898
|
+
|
|
899
|
+
175. backend.security.missing_audit_logging
|
|
900
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/PlatformDetectionService.spec.js:1
|
|
901
|
+
Score: 50/100
|
|
902
|
+
Audit logging not detected - add structured audit logs
|
|
903
|
+
|
|
904
|
+
176. backend.security.missing_audit_logging
|
|
905
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/PlaybookRunner.spec.js:1
|
|
906
|
+
Score: 50/100
|
|
907
|
+
Audit logging not detected - add structured audit logs
|
|
908
|
+
|
|
909
|
+
177. backend.testing.mocks
|
|
910
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/PlaybookRunner.spec.js:6
|
|
911
|
+
Score: 50/100
|
|
912
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
913
|
+
|
|
914
|
+
178. backend.security.missing_audit_logging
|
|
915
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardPlugin.spec.js:1
|
|
916
|
+
Score: 50/100
|
|
917
|
+
Audit logging not detected - add structured audit logs
|
|
918
|
+
|
|
919
|
+
179. backend.error.custom_exceptions
|
|
920
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:227
|
|
921
|
+
Score: 50/100
|
|
922
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
923
|
+
|
|
924
|
+
180. backend.security.missing_audit_logging
|
|
925
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:1
|
|
926
|
+
Score: 50/100
|
|
927
|
+
Audit logging not detected - add structured audit logs
|
|
928
|
+
|
|
929
|
+
181. backend.testing.mocks
|
|
930
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:5
|
|
931
|
+
Score: 50/100
|
|
932
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
933
|
+
|
|
934
|
+
182. backend.testing.mocks
|
|
935
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:6
|
|
936
|
+
Score: 50/100
|
|
937
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
938
|
+
|
|
939
|
+
183. backend.testing.mocks
|
|
940
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:7
|
|
941
|
+
Score: 50/100
|
|
942
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
943
|
+
|
|
944
|
+
184. backend.testing.mocks
|
|
945
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:8
|
|
946
|
+
Score: 50/100
|
|
947
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
948
|
+
|
|
949
|
+
185. backend.testing.mocks
|
|
950
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:9
|
|
951
|
+
Score: 50/100
|
|
952
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
953
|
+
|
|
954
|
+
186. backend.testing.mocks
|
|
955
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/__tests__/RealtimeGuardService.critical.spec.js:10
|
|
956
|
+
Score: 50/100
|
|
957
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
958
|
+
|
|
959
|
+
187. backend.antipattern.god_classes
|
|
960
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/evidence/EvidenceContextManager.js:23
|
|
961
|
+
Score: 50/100
|
|
962
|
+
God class detected: 9 methods, 0 properties, 137 lines, complexity 17, concerns 5 - VIOLATES SRP
|
|
963
|
+
|
|
964
|
+
188. backend.error.custom_exceptions
|
|
965
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/evidence/EvidenceContextManager.js:55
|
|
966
|
+
Score: 50/100
|
|
967
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
968
|
+
|
|
969
|
+
189. backend.security.missing_audit_logging
|
|
970
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/evidence/EvidenceContextManager.js:1
|
|
971
|
+
Score: 50/100
|
|
972
|
+
Audit logging not detected - add structured audit logs
|
|
973
|
+
|
|
974
|
+
190. backend.antipattern.god_classes
|
|
975
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/guard/GuardAutoManagerService.js:6
|
|
976
|
+
Score: 50/100
|
|
977
|
+
God class detected: 20 methods, 0 properties, 425 lines, complexity 66, concerns 6 - VIOLATES SRP
|
|
978
|
+
|
|
979
|
+
191. backend.antipattern.god_classes
|
|
980
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/logging/UnifiedLogger.js:4
|
|
981
|
+
Score: 50/100
|
|
982
|
+
God class detected: 9 methods, 0 properties, 136 lines, complexity 16, concerns 2 - VIOLATES SRP
|
|
983
|
+
|
|
984
|
+
192. backend.error.custom_exceptions
|
|
985
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/logging/UnifiedLogger.js:34
|
|
986
|
+
Score: 50/100
|
|
987
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
988
|
+
|
|
989
|
+
193. backend.error.custom_exceptions
|
|
990
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/logging/UnifiedLogger.js:59
|
|
991
|
+
Score: 50/100
|
|
992
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
993
|
+
|
|
994
|
+
194. backend.antipattern.god_classes
|
|
995
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/EvidenceMonitorService.js:21
|
|
996
|
+
Score: 50/100
|
|
997
|
+
God class detected: 7 methods, 0 properties, 139 lines, complexity 17, concerns 3 - VIOLATES SRP
|
|
998
|
+
|
|
999
|
+
195. backend.security.missing_audit_logging
|
|
1000
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/EvidenceMonitorService.js:1
|
|
1001
|
+
Score: 50/100
|
|
1002
|
+
Audit logging not detected - add structured audit logs
|
|
1003
|
+
|
|
1004
|
+
196. backend.antipattern.god_classes
|
|
1005
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/GitTreeMonitorService.js:1
|
|
1006
|
+
Score: 50/100
|
|
1007
|
+
God class detected: 6 methods, 0 properties, 111 lines, complexity 16, concerns 3 - VIOLATES SRP
|
|
1008
|
+
|
|
1009
|
+
197. backend.antipattern.god_classes
|
|
1010
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/HealthCheckService.js:4
|
|
1011
|
+
Score: 50/100
|
|
1012
|
+
God class detected: 4 methods, 0 properties, 112 lines, complexity 18, concerns 4 - VIOLATES SRP
|
|
1013
|
+
|
|
1014
|
+
198. backend.antipattern.god_classes
|
|
1015
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/HeartbeatMonitorService.js:4
|
|
1016
|
+
Score: 50/100
|
|
1017
|
+
God class detected: 3 methods, 0 properties, 55 lines, complexity 7, concerns 3 - VIOLATES SRP
|
|
1018
|
+
|
|
1019
|
+
199. backend.antipattern.god_classes
|
|
1020
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/notification/NotificationCenterService.js:23
|
|
1021
|
+
Score: 50/100
|
|
1022
|
+
God class detected: 19 methods, 0 properties, 451 lines, complexity 44, concerns 6 - VIOLATES SRP
|
|
1023
|
+
|
|
1024
|
+
200. backend.antipattern.god_classes
|
|
1025
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/recovery/AutoRecoveryManager.js:3
|
|
1026
|
+
Score: 50/100
|
|
1027
|
+
God class detected: 8 methods, 0 properties, 132 lines, complexity 11, concerns 4 - VIOLATES SRP
|
|
1028
|
+
|
|
1029
|
+
201. backend.security.missing_audit_logging
|
|
1030
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/recovery/AutoRecoveryManager.js:1
|
|
1031
|
+
Score: 50/100
|
|
1032
|
+
Audit logging not detected - add structured audit logs
|
|
1033
|
+
|
|
1034
|
+
202. backend.antipattern.god_classes
|
|
1035
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/token/CursorTokenService.js:6
|
|
1036
|
+
Score: 50/100
|
|
1037
|
+
God class detected: 5 methods, 0 properties, 165 lines, complexity 33, concerns 5 - VIOLATES SRP
|
|
1038
|
+
|
|
1039
|
+
203. backend.error.custom_exceptions
|
|
1040
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/token/CursorTokenService.js:68
|
|
1041
|
+
Score: 50/100
|
|
1042
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1043
|
+
|
|
1044
|
+
204. backend.error.custom_exceptions
|
|
1045
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/token/CursorTokenService.js:89
|
|
1046
|
+
Score: 50/100
|
|
1047
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1048
|
+
|
|
1049
|
+
205. backend.antipattern.god_classes
|
|
1050
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/token/TokenMonitorService.js:8
|
|
1051
|
+
Score: 50/100
|
|
1052
|
+
God class detected: 8 methods, 0 properties, 266 lines, complexity 30, concerns 5 - VIOLATES SRP
|
|
1053
|
+
|
|
1054
|
+
206. backend.security.missing_audit_logging
|
|
1055
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/__tests__/AnalyzeStagedFilesUseCase.spec.js:1
|
|
1056
|
+
Score: 50/100
|
|
1057
|
+
Audit logging not detected - add structured audit logs
|
|
1058
|
+
|
|
1059
|
+
207. backend.security.missing_audit_logging
|
|
1060
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/__tests__/AutoExecuteAIStartUseCase.spec.js:1
|
|
1061
|
+
Score: 50/100
|
|
1062
|
+
Audit logging not detected - add structured audit logs
|
|
1063
|
+
|
|
1064
|
+
208. backend.error.custom_exceptions
|
|
1065
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/use-cases/__tests__/BlockCommitUseCase.spec.js:117
|
|
1066
|
+
Score: 50/100
|
|
1067
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1068
|
+
|
|
1069
|
+
209. backend.antipattern.god_classes
|
|
1070
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/BDDTDDWorkflowRules.js:17
|
|
1071
|
+
Score: 50/100
|
|
1072
|
+
God class detected: 10 methods, 0 properties, 434 lines, complexity 22, concerns 4 - VIOLATES SRP
|
|
1073
|
+
|
|
1074
|
+
210. backend.error.custom_exceptions
|
|
1075
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js:41
|
|
1076
|
+
Score: 50/100
|
|
1077
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1078
|
+
|
|
1079
|
+
211. backend.error.custom_exceptions
|
|
1080
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js:68
|
|
1081
|
+
Score: 50/100
|
|
1082
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1083
|
+
|
|
1084
|
+
212. backend.error.custom_exceptions
|
|
1085
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js:92
|
|
1086
|
+
Score: 50/100
|
|
1087
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1088
|
+
|
|
1089
|
+
213. backend.error.custom_exceptions
|
|
1090
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js:112
|
|
1091
|
+
Score: 50/100
|
|
1092
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1093
|
+
|
|
1094
|
+
214. backend.error.custom_exceptions
|
|
1095
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js:133
|
|
1096
|
+
Score: 50/100
|
|
1097
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1098
|
+
|
|
1099
|
+
215. backend.testing.mocks
|
|
1100
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/core/__tests__/GitOperations.spec.js:4
|
|
1101
|
+
Score: 50/100
|
|
1102
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1103
|
+
|
|
1104
|
+
216. backend.antipattern.god_classes
|
|
1105
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/analyzers/maintainability-analyzer.js:2
|
|
1106
|
+
Score: 50/100
|
|
1107
|
+
God class detected: 5 methods, 0 properties, 96 lines, complexity 20, concerns 0 - VIOLATES SRP
|
|
1108
|
+
|
|
1109
|
+
217. backend.antipattern.god_classes
|
|
1110
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/analyzers/performance-analyzer.js:2
|
|
1111
|
+
Score: 50/100
|
|
1112
|
+
God class detected: 6 methods, 0 properties, 105 lines, complexity 23, concerns 1 - VIOLATES SRP
|
|
1113
|
+
|
|
1114
|
+
218. backend.antipattern.god_classes
|
|
1115
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/analyzers/security-analyzer.js:2
|
|
1116
|
+
Score: 50/100
|
|
1117
|
+
God class detected: 5 methods, 0 properties, 100 lines, complexity 19, concerns 1 - VIOLATES SRP
|
|
1118
|
+
|
|
1119
|
+
219. backend.antipattern.god_classes
|
|
1120
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/analyzers/stability-analyzer.js:2
|
|
1121
|
+
Score: 50/100
|
|
1122
|
+
God class detected: 4 methods, 0 properties, 81 lines, complexity 15, concerns 0 - VIOLATES SRP
|
|
1123
|
+
|
|
1124
|
+
220. backend.antipattern.god_classes
|
|
1125
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/context/context-builder.js:6
|
|
1126
|
+
Score: 50/100
|
|
1127
|
+
God class detected: 28 methods, 0 properties, 313 lines, complexity 34, concerns 5 - VIOLATES SRP
|
|
1128
|
+
|
|
1129
|
+
221. backend.antipattern.god_classes
|
|
1130
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/severity/policies/gate-policies.js:5
|
|
1131
|
+
Score: 50/100
|
|
1132
|
+
God class detected: 6 methods, 0 properties, 129 lines, complexity 13, concerns 2 - VIOLATES SRP
|
|
1133
|
+
|
|
1134
|
+
222. backend.security.missing_audit_logging
|
|
1135
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/evidence/__tests__/EvidenceContextManager.spec.js:1
|
|
1136
|
+
Score: 50/100
|
|
1137
|
+
Audit logging not detected - add structured audit logs
|
|
1138
|
+
|
|
1139
|
+
223. backend.security.missing_audit_logging
|
|
1140
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/guard/__tests__/GuardAutoManagerService.spec.js:1
|
|
1141
|
+
Score: 50/100
|
|
1142
|
+
Audit logging not detected - add structured audit logs
|
|
1143
|
+
|
|
1144
|
+
224. backend.security.missing_audit_logging
|
|
1145
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/__tests__/EvidenceMonitorService.spec.js:1
|
|
1146
|
+
Score: 50/100
|
|
1147
|
+
Audit logging not detected - add structured audit logs
|
|
1148
|
+
|
|
1149
|
+
225. backend.security.missing_audit_logging
|
|
1150
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/__tests__/GitTreeMonitorService.spec.js:1
|
|
1151
|
+
Score: 50/100
|
|
1152
|
+
Audit logging not detected - add structured audit logs
|
|
1153
|
+
|
|
1154
|
+
226. backend.error.custom_exceptions
|
|
1155
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/__tests__/HealthCheckService.spec.js:51
|
|
1156
|
+
Score: 50/100
|
|
1157
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1158
|
+
|
|
1159
|
+
227. backend.security.missing_audit_logging
|
|
1160
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/__tests__/HealthCheckService.spec.js:1
|
|
1161
|
+
Score: 50/100
|
|
1162
|
+
Audit logging not detected - add structured audit logs
|
|
1163
|
+
|
|
1164
|
+
228. backend.security.missing_audit_logging
|
|
1165
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/monitoring/__tests__/HeartbeatMonitorService.spec.js:1
|
|
1166
|
+
Score: 50/100
|
|
1167
|
+
Audit logging not detected - add structured audit logs
|
|
1168
|
+
|
|
1169
|
+
229. backend.security.missing_audit_logging
|
|
1170
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/notification/__tests__/NotificationCenterService.spec.js:1
|
|
1171
|
+
Score: 50/100
|
|
1172
|
+
Audit logging not detected - add structured audit logs
|
|
1173
|
+
|
|
1174
|
+
230. backend.security.missing_audit_logging
|
|
1175
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/recovery/__tests__/AutoRecoveryManager.spec.js:1
|
|
1176
|
+
Score: 50/100
|
|
1177
|
+
Audit logging not detected - add structured audit logs
|
|
1178
|
+
|
|
1179
|
+
231. backend.security.missing_audit_logging
|
|
1180
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/token/__tests__/CursorTokenService.spec.js:1
|
|
1181
|
+
Score: 50/100
|
|
1182
|
+
Audit logging not detected - add structured audit logs
|
|
1183
|
+
|
|
1184
|
+
232. backend.security.missing_audit_logging
|
|
1185
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/application/services/token/__tests__/TokenMonitorService.spec.js:1
|
|
1186
|
+
Score: 50/100
|
|
1187
|
+
Audit logging not detected - add structured audit logs
|
|
1188
|
+
|
|
1189
|
+
233. backend.antipattern.god_classes
|
|
1190
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/BackendArchitectureDetector.js:12
|
|
1191
|
+
Score: 50/100
|
|
1192
|
+
God class detected: 4 methods, 0 properties, 127 lines, complexity 10, concerns 2 - VIOLATES SRP
|
|
1193
|
+
|
|
1194
|
+
234. backend.antipattern.god_classes
|
|
1195
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/BackendPatternDetector.js:4
|
|
1196
|
+
Score: 50/100
|
|
1197
|
+
God class detected: 1 methods, 0 properties, 16 lines, complexity 3, concerns 2 - VIOLATES SRP
|
|
1198
|
+
|
|
1199
|
+
235. backend.testing.mocks
|
|
1200
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/__tests__/BDDTDDWorkflowRules.spec.js:5
|
|
1201
|
+
Score: 50/100
|
|
1202
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1203
|
+
|
|
1204
|
+
236. backend.testing.mocks
|
|
1205
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/__tests__/BDDTDDWorkflowRules.spec.js:6
|
|
1206
|
+
Score: 50/100
|
|
1207
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1208
|
+
|
|
1209
|
+
237. backend.testing.mocks
|
|
1210
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/__tests__/BDDTDDWorkflowRules.spec.js:7
|
|
1211
|
+
Score: 50/100
|
|
1212
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1213
|
+
|
|
1214
|
+
238. backend.testing.mocks
|
|
1215
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/__tests__/documentation-analyzer.spec.js:5
|
|
1216
|
+
Score: 50/100
|
|
1217
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1218
|
+
|
|
1219
|
+
239. backend.testing.mocks
|
|
1220
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/__tests__/monorepo-health-analyzer.spec.js:9
|
|
1221
|
+
Score: 50/100
|
|
1222
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1223
|
+
|
|
1224
|
+
240. backend.testing.mocks
|
|
1225
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/common/__tests__/monorepo-health-analyzer.spec.js:10
|
|
1226
|
+
Score: 50/100
|
|
1227
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1228
|
+
|
|
1229
|
+
241. backend.testing.mocks
|
|
1230
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:5
|
|
1231
|
+
Score: 50/100
|
|
1232
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1233
|
+
|
|
1234
|
+
242. backend.testing.mocks
|
|
1235
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:6
|
|
1236
|
+
Score: 50/100
|
|
1237
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1238
|
+
|
|
1239
|
+
243. backend.testing.mocks
|
|
1240
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:8
|
|
1241
|
+
Score: 50/100
|
|
1242
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1243
|
+
|
|
1244
|
+
244. backend.testing.mocks
|
|
1245
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:11
|
|
1246
|
+
Score: 50/100
|
|
1247
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1248
|
+
|
|
1249
|
+
245. backend.testing.mocks
|
|
1250
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:14
|
|
1251
|
+
Score: 50/100
|
|
1252
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1253
|
+
|
|
1254
|
+
246. backend.testing.mocks
|
|
1255
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:17
|
|
1256
|
+
Score: 50/100
|
|
1257
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1258
|
+
|
|
1259
|
+
247. backend.testing.mocks
|
|
1260
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:20
|
|
1261
|
+
Score: 50/100
|
|
1262
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1263
|
+
|
|
1264
|
+
248. backend.testing.mocks
|
|
1265
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendArchitectureDetector.spec.js:23
|
|
1266
|
+
Score: 50/100
|
|
1267
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1268
|
+
|
|
1269
|
+
249. backend.error.custom_exceptions
|
|
1270
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js:40
|
|
1271
|
+
Score: 50/100
|
|
1272
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1273
|
+
|
|
1274
|
+
250. backend.error.custom_exceptions
|
|
1275
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js:50
|
|
1276
|
+
Score: 50/100
|
|
1277
|
+
Generic Error/Exception thrown - create custom exception classes for better error handling
|
|
1278
|
+
|
|
1279
|
+
251. backend.testing.mocks
|
|
1280
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/__tests__/BackendPatternDetector.spec.js:5
|
|
1281
|
+
Score: 50/100
|
|
1282
|
+
Mock usage in tests - prefer spies over mocks when possible
|
|
1283
|
+
|
|
1284
|
+
252. backend.antipattern.god_classes
|
|
1285
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/CleanArchitectureDetector.js:3
|
|
1286
|
+
Score: 50/100
|
|
1287
|
+
God class detected: 1 methods, 0 properties, 46 lines, complexity 6, concerns 1 - VIOLATES SRP
|
|
1288
|
+
|
|
1289
|
+
253. backend.antipattern.god_classes
|
|
1290
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/CQRSDetector.js:3
|
|
1291
|
+
Score: 50/100
|
|
1292
|
+
God class detected: 1 methods, 0 properties, 35 lines, complexity 2, concerns 0 - VIOLATES SRP
|
|
1293
|
+
|
|
1294
|
+
254. backend.antipattern.god_classes
|
|
1295
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/FeatureFirstCleanDetector.js:3
|
|
1296
|
+
Score: 50/100
|
|
1297
|
+
God class detected: 1 methods, 0 properties, 68 lines, complexity 9, concerns 1 - VIOLATES SRP
|
|
1298
|
+
|
|
1299
|
+
255. backend.antipattern.god_classes
|
|
1300
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/LayeredArchitectureDetector.js:3
|
|
1301
|
+
Score: 50/100
|
|
1302
|
+
God class detected: 1 methods, 0 properties, 19 lines, complexity 2, concerns 1 - VIOLATES SRP
|
|
1303
|
+
|
|
1304
|
+
256. backend.antipattern.god_classes
|
|
1305
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/MVCDetector.js:3
|
|
1306
|
+
Score: 50/100
|
|
1307
|
+
God class detected: 1 methods, 0 properties, 26 lines, complexity 4, concerns 1 - VIOLATES SRP
|
|
1308
|
+
|
|
1309
|
+
257. backend.antipattern.god_classes
|
|
1310
|
+
File: /Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/scripts/hooks-system/infrastructure/ast/backend/analyzers/detectors/OnionArchitectureDetector.js:3
|
|
1311
|
+
Score: 50/100
|
|
1312
|
+
God class detected: 1 methods, 0 properties, 26 lines, complexity 3, concerns 0 - VIOLATES SRP
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
💡 TOP RECOMMENDATIONS:
|
|
1316
|
+
|
|
1317
|
+
1. [Priority 1] backend.config.missing_env_separation
|
|
1318
|
+
/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/clean-architecture-analyzer.js:1
|
|
1319
|
+
Score: 50/100
|
|
1320
|
+
|
|
1321
|
+
2. [Priority 2] backend.auth.missing_cors
|
|
1322
|
+
/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/clean-architecture-analyzer.js:1
|
|
1323
|
+
Score: 50/100
|
|
1324
|
+
|
|
1325
|
+
3. [Priority 3] backend.config.missing_env_separation
|
|
1326
|
+
/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/ddd-analyzer.js:1
|
|
1327
|
+
Score: 50/100
|
|
1328
|
+
|
|
1329
|
+
4. [Priority 4] backend.auth.missing_cors
|
|
1330
|
+
/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/ddd-analyzer.js:1
|
|
1331
|
+
Score: 50/100
|
|
1332
|
+
|
|
1333
|
+
5. [Priority 5] backend.config.missing_env_separation
|
|
1334
|
+
/Users/juancarlosmerlosalbarracin/Developer/Projects/ast-intelligence-hooks/infrastructure/ast/backend/feature-first-analyzer.js:1
|
|
1335
|
+
Score: 50/100
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|