Docs.rs
  • garbage-code-hunter-0.1.0
    • garbage-code-hunter 0.1.0
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Timwood0x10
    • Dependencies
      • clap ^4.0 normal
      • colored ^3.0.0 normal
      • quote ^1.0 normal
      • regex ^1.0 normal
      • syn ^2.0 normal
      • walkdir ^2.0 normal
      • criterion ^0.7 dev
      • tempfile ^3.0 dev
    • Versions
    • 2.17% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

garbage_code_hunter0.1.0

Rule

Required Methods

  • check
  • name

Implementors

In garbage_code_hunter::rules

garbage_code_hunter::rules

Trait Rule

Source
pub trait Rule {
    // Required methods
    fn name(&self) -> &'static str;
    fn check(
        &self,
        file_path: &Path,
        syntax_tree: &File,
        content: &str,
    ) -> Vec<CodeIssue>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn check( &self, file_path: &Path, syntax_tree: &File, content: &str, ) -> Vec<CodeIssue>

Implementors§

Source§

impl Rule for ComplexClosureRule

Source§

impl Rule for GenericAbuseRule

Source§

impl Rule for LifetimeAbuseRule

Source§

impl Rule for TraitComplexityRule

Source§

impl Rule for DeepNestingRule

Source§

impl Rule for LongFunctionRule

Source§

impl Rule for AsyncAbuseRule

Source§

impl Rule for BoxAbuseRule

Source§

impl Rule for ChannelAbuseRule

Source§

impl Rule for DynTraitAbuseRule

Source§

impl Rule for FFIAbuseRule

Source§

impl Rule for MacroAbuseRule

Source§

impl Rule for ModuleComplexityRule

Source§

impl Rule for PatternMatchingAbuseRule

Source§

impl Rule for ReferenceAbuseRule

Source§

impl Rule for SliceAbuseRule

Source§

impl Rule for UnsafeAbuseRule

Source§

impl Rule for SingleLetterVariableRule

Source§

impl Rule for TerribleNamingRule

Source§

impl Rule for UnnecessaryCloneRule

Source§

impl Rule for UnwrapAbuseRule