summaryrefslogtreecommitdiff
path: root/src/info_file.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-07-04 21:12:57 +0200
committermo8it <mo8it@proton.me>2024-07-04 21:12:57 +0200
commit4bf0ddc0e1b6213b9ddd7b804c19326774cdbf61 (patch)
tree36966503b6e9310a1487008fb1082411db5b1426 /src/info_file.rs
parenta3657188b63d20b33f6770552169a473f021228f (diff)
Check exercises unsolved
Diffstat (limited to 'src/info_file.rs')
-rw-r--r--src/info_file.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/info_file.rs b/src/info_file.rs
index f226f73..f27d018 100644
--- a/src/info_file.rs
+++ b/src/info_file.rs
@@ -11,14 +11,17 @@ pub struct ExerciseInfo {
pub name: String,
/// Exercise's directory name inside the `exercises/` directory.
pub dir: Option<String>,
- #[serde(default = "default_true")]
/// Run `cargo test` on the exercise.
+ #[serde(default = "default_true")]
pub test: bool,
/// Deny all Clippy warnings.
#[serde(default)]
pub strict_clippy: bool,
/// The exercise's hint to be shown to the user on request.
pub hint: String,
+ /// The exercise is already solved. Ignore it when checking that all exercises are unsolved.
+ #[serde(default)]
+ pub skip_check_unsolved: bool,
}
#[inline(always)]
const fn default_true() -> bool {