Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect usage of argument exceptions for Sonar csharpsquid:S3928, #682 #1033

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

paulirwin
Copy link
Contributor

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Fix incorrect usage of argument exceptions for Sonar csharpsquid:S3928

Fixes #682

Description

This addresses a few incorrect usages of various argument exceptions, such as missing/incorrect parameter names, using ArgumentOutOfRangeException with a parameter name that doesn't exist, missing messages for ArgumentException, and so on.

For the analysis factories, these were reverted to be ArgumentException because various analysis tools (including Sonar and ReSharper/Rider) complain about using a key name for the dictionary when it doesn't exist as a parameter.

@paulirwin paulirwin added the notes:improvement An enhancement to an existing feature label Nov 19, 2024
@paulirwin paulirwin merged commit b88e53e into apache:master Nov 19, 2024
199 checks passed
@paulirwin paulirwin deleted the issue/682 branch November 19, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes:improvement An enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The parameter name 'xxx' is not declared in the argument list.
1 participant