no-custom-rule-additional-verification-method-argument
Overview
This rule belongs to the custom-ruleset-validation
ruleset and states that:
The method that needs to be applied on the target entity as part of the custom validation, specified using VerificationMethod
, can support one or more arguments that can be provided alongside the rule definition using the VerificationMethodArgs
property. Only supported arguments must be provided and setting any additional arguments is forbidden.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Provided argument for the verification method is unrecognized. |
Code | CUSTOMRULESET_V107 |
Type | Validation |
Rule System | Semantic |
Broad Category | Custom Rules |
Tags | custom ruleset semantic validation argument method verification rule |
Suggested Fixes
- Argument names are compared in a case-sensitive manner.
- If you think the argument is allowed/supported, ensure that the argument name case matches the case of the argument listed in the documentation and has no typos.
- Remove any additional arguments not explicitly listed in the custom rule method documentation.