roslyn-sdk icon indicating copy to clipboard operation
roslyn-sdk copied to clipboard

Fail when call to WithArguments provides more arguments that the resource/message expects

Open Evangelink opened this issue 5 years ago • 1 comments
trafficstars

Currently when your message has X format items and you call WithArguments with more than X arguments no issue is raised if the first X arguments match the expected. It would be nice if it was failing for extra parameters this way we could avoid regressions when the message suddenly uses less arguments.

From https://github.com/dotnet/roslyn-analyzers/pull/3483#discussion_r415911206

Evangelink avatar Apr 27 '20 16:04 Evangelink

I hit this recently as well

sharwell avatar May 03 '20 20:05 sharwell