Skip to content

Commit e4fec2f

Browse files
authored
Merge pull request #51 from syncable-dev/develop
Develop
2 parents 1f9836a + b65c250 commit e4fec2f

5 files changed

Lines changed: 3 additions & 15 deletions

File tree

examples/check_vulnerabilities.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use syncable_cli::analyzer::dependency_parser::{DependencyParser, Language};
1+
use syncable_cli::analyzer::dependency_parser::{DependencyParser};
22
use syncable_cli::analyzer::vulnerability_checker::VulnerabilityChecker;
33
use std::path::Path;
44

examples/debug_java_vulnerabilities.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use env_logger;
2-
use log::{info, debug, error};
2+
use log::{info, error};
33
use syncable_cli::analyzer::dependency_parser::{DependencyParser, Language};
44
use syncable_cli::analyzer::vulnerability_checker::VulnerabilityChecker;
55
use std::path::Path;

src/.DS_Store

6 KB
Binary file not shown.

src/analyzer/dependency_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl DependencyParser {
480480
.and_then(|d| d.as_table())
481481
{
482482
debug!("Found PDM dev dependencies in pyproject.toml");
483-
for (group_name, group_deps) in pdm_deps {
483+
for (_group_name, group_deps) in pdm_deps {
484484
if let Some(deps_array) = group_deps.as_array() {
485485
for dep in deps_array {
486486
if let Some(dep_str) = dep.as_str() {

src/analyzer/display.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::analyzer::{
99
DockerAnalysis, OrchestrationPattern,
1010
};
1111
use colored::*;
12-
use prettytable::{Table, Cell, Row, format};
1312

1413
/// Content line for measuring and drawing
1514
#[derive(Debug, Clone)]
@@ -28,13 +27,6 @@ impl ContentLine {
2827
}
2928
}
3029

31-
fn empty() -> Self {
32-
Self {
33-
label: String::new(),
34-
value: String::new(),
35-
label_colored: false,
36-
}
37-
}
3830

3931
fn separator() -> Self {
4032
Self {
@@ -77,10 +69,6 @@ impl BoxDrawer {
7769
self.lines.push(ContentLine::separator());
7870
}
7971

80-
fn add_empty(&mut self) {
81-
self.lines.push(ContentLine::empty());
82-
}
83-
8472
/// Calculate optimal box width based on content
8573
fn calculate_optimal_width(&self) -> usize {
8674
let title_width = visual_width(&self.title) + 6; // "┌─ " + title + " " + extra padding

0 commit comments

Comments
 (0)