Skip to main content

forge_lint/sol/med/
mod.rs

1use crate::sol::SolLint;
2
3mod assert_state_change;
4mod cheatcode_environment;
5mod dangerous_unary_operator;
6mod div_mul;
7mod ecrecover;
8mod incorrect_erc20_interface;
9mod incorrect_erc721_interface;
10mod incorrect_strict_equality;
11mod locked_ether;
12mod mapping_deletion;
13mod non_reentrant_not_first;
14mod tautological_compare;
15mod tautology;
16mod tx_origin;
17mod uninitialized_local;
18mod uninitialized_state_variables;
19mod unsafe_oz_erc721_mint;
20mod unsafe_typecast;
21mod unused_return;
22mod weak_prng;
23
24register_lints!(
25    assert_state_change: (AssertStateChange, late, (ASSERT_STATE_CHANGE));
26    cheatcode_environment: (CheatcodeEnvironment, project, (ENVIRONMENT_READ_ACROSS_MUTATION));
27    dangerous_unary_operator: (DangerousUnaryOperator, early, (DANGEROUS_UNARY_OPERATOR));
28    div_mul: (DivideBeforeMultiply, late, (DIVIDE_BEFORE_MULTIPLY));
29    ecrecover: (Ecrecover, late, (ECRECOVER));
30    incorrect_erc20_interface: (IncorrectERC20Interface, late, (INCORRECT_ERC20_INTERFACE));
31    incorrect_erc721_interface: (IncorrectERC721Interface, late, (INCORRECT_ERC721_INTERFACE));
32    incorrect_strict_equality: (IncorrectStrictEquality, late, (INCORRECT_STRICT_EQUALITY));
33    tautology: (TypeBasedTautology, late, (TYPE_BASED_TAUTOLOGY));
34    tx_origin: (TxOrigin, early, (TX_ORIGIN));
35    uninitialized_local: (UninitializedLocal, late, (UNINITIALIZED_LOCAL));
36    uninitialized_state_variables:
37        (UninitializedStateVariables, late, (UNINITIALIZED_STATE_VARIABLES));
38    unsafe_oz_erc721_mint: (UnsafeOzErc721Mint, late, (UNSAFE_OZ_ERC721_MINT));
39    unsafe_typecast: (UnsafeTypecast, late, (UNSAFE_TYPECAST));
40    unused_return: (UnusedReturn, late, (UNUSED_RETURN));
41    locked_ether: (LockedEther, late, (LOCKED_ETHER));
42    mapping_deletion: (MappingDeletion, late, (MAPPING_DELETION));
43    non_reentrant_not_first: (NonReentrantNotFirst, late, (NON_REENTRANT_NOT_FIRST));
44    weak_prng: (WeakPrng, late, (WEAK_PRNG));
45    tautological_compare: (TautologicalCompare, late, (TAUTOLOGICAL_COMPARE));
46);