From 6aeea398e1ccf6711d1755850b611b6899ec4308 Mon Sep 17 00:00:00 2001 From: garykocsis Date: Wed, 10 Jun 2026 01:37:11 -0400 Subject: [PATCH] fix: suppress forge lint style notes in foundry.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a [lint] exclude_lints block for the note-level style lints (mixed-case-variable, mixed-case-function, screaming-snake-case-immutable, asm-keccak256) that fire in test harnesses and scripts. The erc20-unchecked-transfer warnings (DemoLPRouter.sol, RangeGuardHook.sol) are intentionally NOT suppressed — they are real mainnet-hardening reminders. Co-Authored-By: Claude Opus 4.8 (1M context) --- foundry.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/foundry.toml b/foundry.toml index 23e2b3f7..9f7ac044 100644 --- a/foundry.toml +++ b/foundry.toml @@ -37,3 +37,11 @@ depth = 500 seed = "0x1" # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options + +[lint] +exclude_lints = [ + "mixed-case-variable", + "mixed-case-function", + "screaming-snake-case-immutable", + "asm-keccak256", +]