rspec/rules/S3257/description.adoc

12 lines
436 B
Plaintext
Raw Normal View History

2020-06-30 12:48:39 +02:00
Unnecessarily verbose declarations and initializations make it harder to read the code, and should be simplified.
Specifically the following should be omitted when they can be inferred:
2020-06-30 12:48:39 +02:00
* array element type
* array size
2020-12-23 14:59:06 +01:00
* ``new DelegateType``
* ``new Nullable<Type>``
* object or collection initializers (``{}``)
2020-06-30 12:48:39 +02:00
* type of lambda expression parameters
* parameter declarations of anonymous methods when the parameters are not used.