Docs.rs
  • solidhunter-lib-0.1.0
    • solidhunter-lib 0.1.0
    • Docs.rs crate page
    • GPL-3.0-or-later
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • 0xMemoryGrinder
    • Dependencies
      • anyhow ^1.0 normal
      • clap ^4.0.29 normal
      • colored ^2 normal
      • glob ^0.3.0 normal
      • osmium-libs-solidity-ast-extractor ^0.1.2 normal
      • regex ^1.9.6 normal
      • serde ^1.0.149 normal
      • serde_json ^1.0.89 normal
      • thiserror ^1.0 normal
    • Versions
    • 0% 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

solidhunter_lib0.1.0

RuleType

Required Methods

  • diagnose

Implementors

In solidhunter_lib::rules::types

?
Change settings

Trait solidhunter_lib::rules::types::RuleType

source ·
pub trait RuleType: Send + Sync + 'static {
    // Required method
    fn diagnose(&self, file: &SolidFile, files: &[SolidFile]) -> Vec<LintDiag>;
}

Required Methods§

source

fn diagnose(&self, file: &SolidFile, files: &[SolidFile]) -> Vec<LintDiag>

Implementors§

source§

impl RuleType for CustomErrors

source§

impl RuleType for ExplicitTypes

source§

impl RuleType for FunctionMaxLines

source§

impl RuleType for MaxLineLength

source§

impl RuleType for MaxStatesCount

source§

impl RuleType for NoConsole

source§

impl RuleType for NoEmptyBlock

source§

impl RuleType for NoGlobalImport

source§

impl RuleType for OneContractPerFile

source§

impl RuleType for PayableFallback

source§

impl RuleType for ReasonString