Skip to content

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Sep 11, 2025

Extracting inline config changes from #10907, which also affect forge lint.

  • make inline config generic to support forge fmt
  • refactor to use spans and BytePos, making it clearer what the "usize"s actually mean
  • parse inline config in forge lint only once per file, using AST. this makes HIR implementation redundant, and actually makes it work (see diff in stderr file)
  • support yul statements in disable-next-item
  • remove loose since we don't use weird heuristics anymore

Blocked on #11563.

Not needed anymore, we actually look at the next AST item instead of
weird heuristics that required it.
@DaniPopes DaniPopes marked this pull request as draft September 11, 2025 15:06
@DaniPopes DaniPopes marked this pull request as ready for review September 12, 2025 02:41
@DaniPopes DaniPopes self-assigned this Sep 12, 2025
0xrusowsky
0xrusowsky previously approved these changes Sep 12, 2025
@0xrusowsky
Copy link
Contributor

looks like there are some merge conflicts with the cmnt gatherer

@DaniPopes DaniPopes merged commit 6d7b3d0 into master Sep 13, 2025
25 checks passed
@DaniPopes DaniPopes deleted the dani/inline-config-generic branch September 13, 2025 01:57
@github-project-automation github-project-automation bot moved this to Done in Foundry Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants