Skip to content
Closed
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
25 changes: 9 additions & 16 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ which = { version = "6.0", features = ["regex"] }
regex = "1.11.0"
lazy_static = "1.5.0"
inquire = { version = "0.6", features = ["editor"]}
tracing-subscriber = { version = "0.3", features = ["time", "json", "local-time" ] }
tracing-subscriber = { version = "*", features = ["time", "json", "local-time" ] }
tracing-appender = "0.2.3"
chrono = "0.4"
nanoid = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion scope/src/doctor/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use mockall::automock;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use thiserror::Error;
use tracing::{error, info, instrument};
use tracing::{info, instrument};

mod string_vec_reader;
use string_vec_reader::StringVecReader;
Expand Down
9 changes: 0 additions & 9 deletions scope/src/doctor/error.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ConfigError {
#[error("Unable to process file. {error:?}")]
IoError {
#[from]
error: std::io::Error,
},
}

#[allow(clippy::enum_variant_names)]
#[derive(Error, Debug)]
pub enum FileCacheError {
Expand Down
9 changes: 2 additions & 7 deletions scope/src/models/v1alpha/doctor_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,17 @@ impl Default for SkipSpec {
}

/// Configure how a groups will be used when determining the task graph.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema)]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, Default)]
#[serde(rename_all = "kebab-case")]
pub enum DoctorInclude {
/// Default option, the group will be included by default when determining which groups should
/// run.
#[default]
ByDefault,
/// Useful for shared configuration. The group will not run unless another group depends on it.
WhenRequired,
}

impl Default for DoctorInclude {
fn default() -> Self {
Self::ByDefault
}
}

#[derive(Serialize, Deserialize, Debug, strum::Display, Clone, PartialEq, JsonSchema)]
pub enum DoctorGroupKind {
#[strum(serialize = "ScopeDoctorGroup")]
Expand Down
10 changes: 0 additions & 10 deletions scope/src/report/error.rs
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ConfigError {
#[error("Unable to process file. {error:?}")]
IoError {
#[from]
error: std::io::Error,
},
}