Skip to content

reject AO headers with duplicate parameter names#689

Merged
bakkot merged 3 commits into
mainfrom
duplicate-params
Apr 8, 2026
Merged

reject AO headers with duplicate parameter names#689
bakkot merged 3 commits into
mainfrom
duplicate-params

Conversation

@michaelficarra
Copy link
Copy Markdown
Member

Fixes #687. Disclaimer: I used AI in the process of creating this PR.

@bakkot
Copy link
Copy Markdown
Member

bakkot commented Apr 8, 2026

So I guess #689 should have fixed this, but instead it was erroring out for lack of location information, and it's easiest to do the check elsewhere instead of getting the error location right? Sure I guess. Kinda inelegant. Not sure you would have accepted this PR if I'd sent it. Keeping track of the error location is probably annoying I suppose.

@michaelficarra
Copy link
Copy Markdown
Member Author

I don't care, either one works for me.

Comment thread src/lint/rules/variable-use-def.ts
Copy link
Copy Markdown
Member

@bakkot bakkot left a comment

Choose a reason for hiding this comment

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

Eh, sure,

@bakkot bakkot merged commit 8d48d21 into main Apr 8, 2026
2 checks passed
@bakkot bakkot deleted the duplicate-params branch April 8, 2026 17:17
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.

reject AOs with duplicate parameter names

2 participants