Redundancy
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
Recipes
- File contains no code
- Find empty catch clause
- Find empty syntax
- Find internal types that may be unused
- Flag empty for loop body
- Remove argument list from attribute
- Remove braces from record declaration
- Remove duplicate conditions
- Remove empty destructor
- Remove empty finally clause
- Remove empty foreach body
- Remove empty while body
- Remove enum default underlying type
- Remove explicit 'class' from record
- Remove if/else with identical branches
- Remove partial modifier from single-part type
- Remove redundant 'sealed' modifier from override
- Remove redundant Dispose/Close call
- Remove redundant ToCharArray() call
- Remove redundant ToString() call
- Remove redundant as operator
- Remove redundant assignment
- Remove redundant async/await
- Remove redundant auto-property initialization
- Remove redundant base constructor call
- Remove redundant base interface
- Remove redundant cast
- Remove redundant catch block
- Remove redundant comma
- Remove redundant constructor
- Remove redundant default field initialization
- Remove redundant default switch section
- Remove redundant delegate creation
- Remove redundant overriding member
- Remove redundant parentheses
- Remove redundant region
- Remove redundant sealed modifier
- Remove redundant statement
- Remove self-assignment
- Remove unconditional value overwrite
- Remove unnecessary case label
- Remove unnecessary else clause
- Remove unnecessary interpolated string
- Remove unnecessary null check
- Remove unnecessary null-forgiving operator
- Remove unnecessary raw string literal
- Remove unnecessary semicolon at end of declaration
- Remove unnecessary unsafe context
- Remove unnecessary verbatim string literal
- Remove unused member declaration
- Resource can be disposed asynchronously
- Unnecessary enum flag
- Unnecessary interpolation
- Unused 'this' parameter
- Unused element in documentation comment
- Use rethrow instead of throw ex