Skip to content

Fix lint issue on the html.DataAttr test - #333

Merged
markuswustenberg merged 2 commits into
maragudk:mainfrom
maragubot:fix-dataattr-lint-issue
Jul 29, 2026
Merged

Fix lint issue on the html.DataAttr test#333
markuswustenberg merged 2 commits into
maragudk:mainfrom
maragubot:fix-dataattr-lint-issue

Conversation

@maragubot

Copy link
Copy Markdown
Contributor
  • golangci-lint (govet's inline check, with recent versions) flags the direct DataAttr call in TestData, since DataAttr is marked //go:fix inline. CI lints with version: latest, so this fails there too.
  • Restructure TestData into a table exercising Data and DataAttr through function values, the same way StyleAttr, TitleAttr, CiteEl, FormEl, and LabelEl are already tested. Coverage of DataAttr is unchanged, no nolint needed.

maragubot and others added 2 commits July 29, 2026 10:47
The govet `inline` check flags direct calls of functions marked
`//go:fix inline`, so exercise `html.DataAttr` through a function value
in a test table, like the other deprecated aliases.
@markuswustenberg
markuswustenberg merged commit a910dcb into maragudk:main Jul 29, 2026
13 checks passed
@maragubot
maragubot deleted the fix-dataattr-lint-issue branch July 29, 2026 08:55
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1b0809f) to head (5574880).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #333   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          639       639           
=========================================
  Hits           639       639           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

markuswustenberg added a commit that referenced this pull request Jul 29, 2026
- Add `docs/diary/2026-07-29-issue-330-docs-and-security-policy.md`, an
implementation diary covering the #330 assessment and the three
resulting PRs (#331, #332, #333) — including the subagent worktree
stale-base incident and other failures worth remembering.
- First entry in a new `docs/diary/` directory.
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