Skip to content

feat: add tech debt counter for disabled auxLemma lints#17

Open
kim-em wants to merge 1 commit intomasterfrom
add-auxLemma-tech-debt-counter
Open

feat: add tech debt counter for disabled auxLemma lints#17
kim-em wants to merge 1 commit intomasterfrom
add-auxLemma-tech-debt-counter

Conversation

@kim-em
Copy link
Copy Markdown
Contributor

@kim-em kim-em commented Apr 2, 2026

This PR adds a counter for set_option linter.style.auxLemma false occurrences to the weekly tech debt report.

The linter.style.auxLemma linter (added in leanprover-community/mathlib4#37364) warns when declarations reference auto-generated auxiliary declarations (like _sizeOf_1, hcomp._proof_2) that are not stable across refactors. Some existing uses require suppressing this linter, and we want to track that count over time.

🤖 Prepared with Claude Code

Track occurrences of `set_option linter.style.auxLemma false` in the
weekly tech debt report. This linter warns when declarations reference
auto-generated auxiliary declarations that are not stable across
refactors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

printf '%s|disabled deprecation lints\n' "$(( deprecs - doubleDeprecs ))"

printf '%s|%s\n' "$({ git grep -c 'set_option linter.style.auxLemma false' -- Mathlib || true; } | awk -F: 'BEGIN{s=0}{s+=$2} END{print s}')" "disabled auxLemma lints"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add this to titlesPathsAndRegexes? Why not look for the option in other folders?

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.

2 participants