Skip to content

Commit

Permalink
Fix driver
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Aug 14, 2024
1 parent ee84c05 commit fe4577a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions aderyn_driver/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::{
config_helpers::{append_from_foundry_toml, derive_from_aderyn_toml},
ensure_valid_root_path, process_auto,
};
use aderyn_core::context::callgraph::traits::Transpose;
use aderyn_core::{
context::{callgraph::WorkspaceCallGraph, workspace_context::WorkspaceContext},
detect::detector::{get_all_issue_detectors, IssueDetector, IssueSeverity},
Expand Down Expand Up @@ -154,12 +153,8 @@ fn make_context(args: &Args) -> WorkspaceContextWrapper {
context.set_sloc_stats(sloc_stats);
context.set_ignore_lines_stats(ignore_line_stats);

let forward_callgraph = WorkspaceCallGraph::from_context(context).unwrap();
let reverse_callgraph = WorkspaceCallGraph {
graph: forward_callgraph.graph.reverse(),
};
context.forward_callgraph = Some(forward_callgraph);
context.reverse_callgraph = Some(reverse_callgraph);
let callgraph = WorkspaceCallGraph::from_context(context).unwrap();
context.callgraph = Some(callgraph);
}
// Using the source path, calculate the sloc

Expand Down

0 comments on commit fe4577a

Please sign in to comment.