- Tags:
- analysis
- feature property
CA011 - Too many arguments
Description
A feature that has too many arguments should be avoided since it makes the class interface complicated and is not easy to use. The feature arguments may include options, which should be considered to be moved to separate features.
- Scope featureStatus EnabledSeverity WarningApplicability AllScore 50Arguments threashold 4
Example of violation
Recommendation
Detect arguments that are really options and create procedures to set them.
In the example, one could write:
Back to Rules
cached: 11/17/2025 5:46:53.000 PM