#[non_exhaustive]pub struct LintConfig {
pub max_line_length: u16,
pub max_file_lines: u32,
pub max_public_methods: u32,
pub max_returns: u32,
pub max_function_arguments: u32,
pub code_order: CodeOrderFix,
pub file_name: FileNameCase,
pub declaration_order: Option<Vec<DeclarationGroup>>,
pub disabled: Vec<String>,
}Expand description
Lint options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_line_length: u16§max_file_lines: u32§max_public_methods: u32§max_returns: u32§max_function_arguments: u32§code_order: CodeOrderFix§file_name: FileNameCase§declaration_order: Option<Vec<DeclarationGroup>>A declaration order of the project’s own, if it stated one.
None means the style guide’s, which is what gdck sorts by and what
its own buckets are named after. A project that pinned
class-definitions-order in a gdlintrc gets that order instead.
disabled: Vec<String>Rule names switched off for this project.
Trait Implementations§
Source§impl Clone for LintConfig
impl Clone for LintConfig
Source§fn clone(&self) -> LintConfig
fn clone(&self) -> LintConfig
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 moreSource§impl Debug for LintConfig
impl Debug for LintConfig
Source§impl Default for LintConfig
impl Default for LintConfig
impl Eq for LintConfig
Source§impl PartialEq for LintConfig
impl PartialEq for LintConfig
impl StructuralPartialEq for LintConfig
Auto Trait Implementations§
impl Freeze for LintConfig
impl RefUnwindSafe for LintConfig
impl Send for LintConfig
impl Sync for LintConfig
impl Unpin for LintConfig
impl UnsafeUnpin for LintConfig
impl UnwindSafe for LintConfig
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,
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.