pub enum LintPreCommit {
Off,
Check,
Fix,
}Expand description
[lint] pre_commit value. Wire form is a string ("off" / "check" /
"fix"); deserialization additionally accepts a bool for back-compat
per J6 — true → Check, false → Off.
Custom Serialize always emits the canonical string form so a
round-trip normalizes the bool form.
Variants§
Off
Skip lint in the pre-commit hook entirely. CI still runs
aristo lint --check per the starter workflow.
Check
Run aristo lint --check in the hook — fail-fast, never
silently modifies staged content. Standard devtool default.
Fix
Run aristo lint --fix and re-stage modified files.
Opt-in for teams that want auto-fix-and-restage.
Trait Implementations§
Source§impl Clone for LintPreCommit
impl Clone for LintPreCommit
Source§fn clone(&self) -> LintPreCommit
fn clone(&self) -> LintPreCommit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LintPreCommit
Source§impl Debug for LintPreCommit
impl Debug for LintPreCommit
Source§impl Default for LintPreCommit
impl Default for LintPreCommit
Source§fn default() -> LintPreCommit
fn default() -> LintPreCommit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LintPreCommit
impl<'de> Deserialize<'de> for LintPreCommit
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LintPreCommit
Source§impl JsonSchema for LintPreCommit
impl JsonSchema for LintPreCommit
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LintPreCommit
impl PartialEq for LintPreCommit
Source§impl Serialize for LintPreCommit
impl Serialize for LintPreCommit
impl StructuralPartialEq for LintPreCommit
Auto Trait Implementations§
impl Freeze for LintPreCommit
impl RefUnwindSafe for LintPreCommit
impl Send for LintPreCommit
impl Sync for LintPreCommit
impl Unpin for LintPreCommit
impl UnsafeUnpin for LintPreCommit
impl UnwindSafe for LintPreCommit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.