Version
- 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 feature Status Enabled Severity Warning Applicability All Score 50 Arguments 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/21/2024 3:39:36.000 AM