Skip to content

Commit

Permalink
feat: Creates a single analysis crate that handles most of the Hipche…
Browse files Browse the repository at this point in the history
…ck analysis pipeline (#45)

* feat: Makes hc_analysis and hc_metric modules inside of hc_analysis

* feat: Move hc_score into hc_analysis

* feat: Moved hc_report_builder and hc_session (with hc_spdx) into hc_analysis

* fix: Adds missing tempfile dependency to hc_analysis
  • Loading branch information
mchernicoff authored May 3, 2024
1 parent c3ad84f commit 5b7e6eb
Show file tree
Hide file tree
Showing 37 changed files with 1,056 additions and 1,164 deletions.
99 changes: 21 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion hipcheck/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ path = "src/main.rs"
[dependencies]

# Internal dependencies.
hc_analysis = { path = "../libs/hc_analysis" }
hc_common = { path = "../libs/hc_common" }
hc_core = { path = "../libs/hc_core" }
hc_session = { path = "../libs/hc_session" }

# External dependencies.
clap = { version = "4.5.4", default-features = false, features = ["string", "std"]}
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

use clap::{Arg, ArgAction, Command};
use env_logger::{Builder, Env};
use hc_analysis::session::{Check, CheckType};
use hc_common::{
context::Context, error::Result, hc_error, schemars::schema_for, serde_json, CheckKind,
};
use hc_core::{
print_error, resolve_config, resolve_data, resolve_home, run, version, AnyReport, ColorChoice,
Format, Outcome, Output, PrReport, Report, Verbosity,
};
use hc_session::{Check, CheckType};
use std::ffi::OsString;
use std::path::PathBuf;
use std::process::exit;
Expand Down
26 changes: 23 additions & 3 deletions libs/hc_analysis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,28 @@ license = "Apache-2.0"
publish = false

[dependencies]
content_inspector = "0.2.4"
dirs = "5.0.1"
dotenv = "0.15.0"
curl = "0.4.38"
glob = "0.3.0"
hc_common = { path = "../hc_common" }
hc_data = { path = "../hc_data" }
hc_metric = { path = "../hc_metric" }
hc_config = { path = "../hc_config" }
hc_report = { path = "../hc_report" }
hc_data = { path = "../hc_data" }
hc_report = { path = "../hc_report" }
hc_serde = { path = "../hc_serde" }
hc_shell = { path = "../hc_shell" }
hc_version = { path = "../hc_version" }
maplit = "1.0.2"
petgraph = { version = "0.6.0" }
serde_derive = "1.0.137"
spdx-rs = "0.5.0"
toml = "0.8.12"
unicode-normalization = "0.1.19"
unicode-segmentation = "1.9.0"
ureq = { version = "2.9.7", features = ["json"] }
walkdir = "2"
xml-rs = "0.8"

[dev_dependencies]
tempfile = "3.10.1"
Loading

0 comments on commit 5b7e6eb

Please sign in to comment.