Skip to main content

Module mixed_case

Module mixed_case 

Source

Re-exportsยง

use crate::linter::EarlyLintPass; ๐Ÿ”’
use crate::linter::LintContext; ๐Ÿ”’
use crate::sol::Severity; ๐Ÿ”’
use crate::sol::SolLint; ๐Ÿ”’
use crate::sol::naming::check_mixed_case as check_mixed_case_pure; ๐Ÿ”’
use crate::sol::naming::check_screaming_snake_case; ๐Ÿ”’
use crate::sol::naming::emit_rename; ๐Ÿ”’
use crate::sol::naming::has_acronym_exception; ๐Ÿ”’
use foundry_config::lint::LintSpecificConfig; ๐Ÿ”’
use solar::ast::FunctionHeader; ๐Ÿ”’
use solar::ast::ItemFunction; ๐Ÿ”’
use solar::ast::VariableDefinition; ๐Ÿ”’
use solar::ast::Visibility; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’

Structsยง

MixedCasePass ๐Ÿ”’
Checks function names when FUNCTIONS is set, mutable variable names otherwise.

Staticsยง

MIXED_CASE_FUNCTION
MIXED_CASE_VARIABLE

Functionsยง

check_mixed_case ๐Ÿ”’
Wraps check_mixed_case_pure with two domain exceptions: foundry test-function prefixes and user-defined infix patterns, which split the name into a lowerCamelCase prefix and an UpperCamelCase suffix (allowing leading digits).
is_constant_getter ๐Ÿ”’
Heuristic for a getter of a constant: SCREAMING_SNAKE_CASE name, public view or external view, no parameters and exactly one elementary or custom-typed return value.

Type Aliasesยง

MixedCaseFunctionPass ๐Ÿ”’
MixedCaseVariablePass ๐Ÿ”’