Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/check_vulnerabilities.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use syncable_cli::analyzer::dependency_parser::{DependencyParser, Language};
use syncable_cli::analyzer::dependency_parser::{DependencyParser};
use syncable_cli::analyzer::vulnerability_checker::VulnerabilityChecker;
use std::path::Path;

Expand Down
2 changes: 1 addition & 1 deletion examples/debug_java_vulnerabilities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use env_logger;
use log::{info, debug, error};
use log::{info, error};
use syncable_cli::analyzer::dependency_parser::{DependencyParser, Language};
use syncable_cli::analyzer::vulnerability_checker::VulnerabilityChecker;
use std::path::Path;
Expand Down
Binary file added src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/analyzer/dependency_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl DependencyParser {
.and_then(|d| d.as_table())
{
debug!("Found PDM dev dependencies in pyproject.toml");
for (group_name, group_deps) in pdm_deps {
for (_group_name, group_deps) in pdm_deps {
if let Some(deps_array) = group_deps.as_array() {
for dep in deps_array {
if let Some(dep_str) = dep.as_str() {
Expand Down
12 changes: 0 additions & 12 deletions src/analyzer/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::analyzer::{
DockerAnalysis, OrchestrationPattern,
};
use colored::*;
use prettytable::{Table, Cell, Row, format};

/// Content line for measuring and drawing
#[derive(Debug, Clone)]
Expand All @@ -28,13 +27,6 @@ impl ContentLine {
}
}

fn empty() -> Self {
Self {
label: String::new(),
value: String::new(),
label_colored: false,
}
}

fn separator() -> Self {
Self {
Expand Down Expand Up @@ -77,10 +69,6 @@ impl BoxDrawer {
self.lines.push(ContentLine::separator());
}

fn add_empty(&mut self) {
self.lines.push(ContentLine::empty());
}

/// Calculate optimal box width based on content
fn calculate_optimal_width(&self) -> usize {
let title_width = visual_width(&self.title) + 6; // "┌─ " + title + " " + extra padding
Expand Down