roslyn-sdk
roslyn-sdk copied to clipboard
Fail when call to WithArguments provides more arguments that the resource/message expects
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
I hit this recently as well