Re-enable disabled tests and reduce warnings to 8

This commit is contained in:
pandaadir05
2025-11-20 14:42:06 +02:00
parent a19c56fe86
commit 934b367f49
13 changed files with 126 additions and 119 deletions

View File

@@ -3,6 +3,8 @@
//! This module manages the core application state, including process scanning,
//! detection events, and user interaction state.
#![allow(dead_code)]
use anyhow::Result;
use chrono::{DateTime, Utc};
use ghost_core::{

View File

@@ -1,6 +1,8 @@
// Event handling module for future expansion
// Currently events are handled in main.rs but this provides structure for complex event handling
#![allow(dead_code)]
use crossterm::event::{Event, KeyEvent, MouseEvent};
#[derive(Debug, Clone)]

View File

@@ -4,24 +4,13 @@ use crossterm::{
execute,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
};
use ghost_core::{DetectionEngine, ThreatLevel};
use ratatui::{
backend::{Backend, CrosstermBackend},
layout::{Constraint, Direction, Layout, Rect},
style::{Color, Modifier, Style},
symbols,
text::{Line, Span, Text},
widgets::{
Block, Borders, Cell, Clear, Gauge, List, ListItem, ListState, Paragraph, Row, Table,
TableState, Tabs, Wrap,
},
Frame, Terminal,
backend::{Backend, CrosstermBackend}, Terminal,
};
use std::{
collections::VecDeque,
io,
sync::Arc,
time::{Duration, Instant},
time::Duration,
};
use tokio::{sync::Mutex, time};
@@ -29,7 +18,7 @@ mod app;
mod events;
mod ui;
use app::{App, TabIndex};
use app::App;
#[tokio::main]
async fn main() -> Result<()> {

View File

@@ -3,6 +3,8 @@
//! This module provides all the drawing functions for the TUI components,
//! including the main dashboard, process list, detection history, and system logs.
#![allow(dead_code, unused_imports)]
use crate::app::{App, TabIndex};
use ghost_core::ThreatLevel;
use ratatui::{