Skip to content

feat: add scopelint: ignore directive#49

Merged
thelostone-mc merged 1 commit intobeta-releasefrom
feat/ignore
Oct 21, 2025
Merged

feat: add scopelint: ignore directive#49
thelostone-mc merged 1 commit intobeta-releasefrom
feat/ignore

Conversation

@thelostone-mc
Copy link
Contributor

contract CounterIgnored4 {
  // Test 1: ignore-next-item (ignores entire function declaration, even multiline)
  // scopelint: ignore-next-item
  function multiLineFunction(
    address user,
    uint256 amount
  ) internal {
    // complex function body
  }

  // Test 2: ignore-next-line (ignores only the next line)
  // scopelint: ignore-next-line
  function singleLineFunction() internal {}

  // Test 3: ignore-line (ignores only this comment line, NOT the function)
  function functionOnSameLine() internal {} // scopelint: ignore-line

  // Test 4: ignore-start/ignore-end (ignores multiple items)
  // scopelint: ignore-start
  function batchFunction1() internal {}
  function batchFunction2() private {}
  function batchFunction3() internal {}
  // scopelint: ignore-end

  // Control test: this should be flagged (no ignore directive)
  function missingLeadingUnderscoreAndNotIgnored() internal {}
} 

Base automatically changed from chore/cargo-fmt to beta-release October 21, 2025 09:38
@thelostone-mc thelostone-mc merged commit 662bb71 into beta-release Oct 21, 2025
4 checks passed
@thelostone-mc thelostone-mc deleted the feat/ignore branch October 21, 2025 09:40
@thelostone-mc thelostone-mc mentioned this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant