This PR adds a `linter.redundantVisibility` option (default `true`) that warns when a visibility modifier has no effect because it matches the default for the current context: - `private` outside a `public section` in a `module` file, where declarations are already module-scoped by default - `public` in a non-`module` file or inside a `public section`, where declarations are already public by default The check is integrated directly into `elabModifiers` so it covers all declaration types uniformly. --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| BRecOn.lean | ||
| CasesOn.lean | ||
| CasesOnSameCtor.lean | ||
| CtorElim.lean | ||
| CtorIdx.lean | ||
| NoConfusion.lean | ||
| RecOn.lean | ||
| SparseCasesOn.lean | ||
| SparseCasesOnEq.lean | ||