Skip to content

SA1026, SA9005: check MarshalIndent functions#1713

Merged
dominikh merged 2 commits intodominikh:masterfrom
arp242:indent
Apr 21, 2026
Merged

SA1026, SA9005: check MarshalIndent functions#1713
dominikh merged 2 commits intodominikh:masterfrom
arp242:indent

Conversation

@arp242
Copy link
Copy Markdown
Contributor

@arp242 arp242 commented Apr 20, 2026

While extracting a small test case from my real code for #1712, I suddenly could not longer reproduce it. Turns out that was because I used json.MarshalIndent() for my test case, and this function wasn't checked.

Fixes #1264

@dominikh
Copy link
Copy Markdown
Owner

Can you drop the commit bumping actions/checkout? The CI failure was transient.

arp242 added 2 commits April 21, 2026 15:30
Because the logic on what can be marshaled doesn't differ, we can re-use
the existing checkJSON and checkXML.
@dominikh dominikh merged commit c5086f2 into dominikh:master Apr 21, 2026
13 checks passed
@arp242 arp242 deleted the indent branch April 22, 2026 15:34
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.

SA1026, SA9005: check MarshalIndent functions

2 participants