Skip to main content

forge_lint/sol/low/
mod.rs

1use crate::sol::SolLint;
2
3mod block_timestamp;
4mod calls_loop;
5mod delegatecall_loop;
6mod deprecated_oz_function;
7mod empty_block;
8mod inconsistent_type_names;
9mod incorrect_modifier;
10mod missing_events_access_control;
11mod missing_events_arithmetic;
12mod missing_zero_check;
13mod msg_value_loop;
14mod payable_loop;
15mod reentrancy_events;
16mod require_revert_in_loop;
17mod return_bomb;
18mod solmate_safe_transfer_lib;
19
20register_lints!(
21    block_timestamp: (BlockTimestamp, late, (BLOCK_TIMESTAMP));
22    calls_loop: (CallsLoop, late, (CALLS_LOOP));
23    delegatecall_loop: (DelegatecallLoop, late, (DELEGATECALL_LOOP));
24    deprecated_oz_function: (DeprecatedOzFunction, late, (DEPRECATED_OZ_FUNCTION));
25    empty_block: (EmptyBlock, early, (EMPTY_BLOCK));
26    incorrect_modifier: (IncorrectModifier, late, (INCORRECT_MODIFIER));
27    inconsistent_type_names: (InconsistentTypeNames, project, (INCONSISTENT_TYPE_NAMES));
28    msg_value_loop: (MsgValueLoop, late, (MSG_VALUE_LOOP));
29    missing_events_access_control:
30        (MissingEventsAccessControl, late, (MISSING_EVENTS_ACCESS_CONTROL));
31    missing_events_arithmetic: (MissingEventsArithmetic, late, (MISSING_EVENTS_ARITHMETIC));
32    missing_zero_check: (MissingZeroCheck, late, (MISSING_ZERO_CHECK));
33    return_bomb: (ReturnBomb, late, (RETURN_BOMB));
34    reentrancy_events: (ReentrancyEvents, late, (REENTRANCY_EVENTS));
35    require_revert_in_loop: (RequireRevertInLoop, late, (REQUIRE_REVERT_IN_LOOP));
36    solmate_safe_transfer_lib: (SolmateSafeTransferLib, late, (SOLMATE_SAFE_TRANSFER_LIB));
37);