lean4-htt/src/Init/Data/Iterators/Combinators/Monadic
Sebastian Ullrich 7f5fac9d9f
feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359)
This PR adds a `linter.redundantExpose` option (default `true`) that
warns when `@[expose]` or `@[no_expose]` attributes have no effect:

- `@[expose]` on `abbrev` (always exposed) or non-Prop `instance`
(always exposed)
- `@[expose]` on a `def` inside an `@[expose] section` (already exposed
by the section)
- `@[expose]`/`@[no_expose]` in a non-`module` file (no module system)
- `@[no_expose]` on a declaration that wouldn't be exposed by default

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 10:33:58 +00:00
..
Append.lean feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
Attach.lean chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
FilterMap.lean feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
FlatMap.lean feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00
Take.lean feat: simplify iterator step unfolding (#12234) 2026-02-06 17:12:01 +00:00
ULift.lean feat: add warn.redundantExpose for redundant @[expose]/@[no_expose] attributes (#13359) 2026-04-27 10:33:58 +00:00