Skip to content

Latest commit

 

History

History
205 lines (202 loc) · 13.2 KB

README.md

File metadata and controls

205 lines (202 loc) · 13.2 KB

Roslynator Refactorings

Id Title Enabled by Default
RR0002 Add braces
RR0003 Add braces to if-else
RR0004 Add braces to switch section
RR0005 Add braces to switch sections
RR0007 Add default value to parameter
RR0009 Add 'exception' element to documentation comment
RR0011 Add argument name
RR0013 Add using directive
RR0014 Add using static directive
RR0016 Call extension method as instance method
RR0018 Use implicit type
RR0021 Change method return type to 'void'
RR0022 Change type according to expression
RR0023 Use explicit type
RR0024 Check expression for null
RR0025 Check parameter for null
RR0026 Use object initializer
RR0027 Comment out member declaration
RR0028 Comment out statement
RR0029 Copy documentation comment from base member
RR0030 Copy argument
RR0031 Copy member declaration
RR0032 Copy parameter
RR0033 Copy statement
RR0034 Expand compound assignment
RR0035 Expand coalesce expression
RR0036 Expand event declaration
RR0037 Convert expression body to block body
RR0038 Expand initializer -
RR0039 Convert lambda expression body to block body
RR0040 Convert auto-property to full property (without backing field)
RR0041 Convert auto-property to full property
RR0043 Extract expression from condition
RR0045 Remove containing statement
RR0046 Extract type declaration to a new file
RR0048 Wrap arguments
RR0049 Wrap binary expression
RR0050 Wrap conditional expression
RR0051 Wrap call chain
RR0052 Wrap initializer expressions
RR0053 Wrap parameters
RR0054 Generate base constructors
RR0055 Generate combined enum member
RR0056 Generate enum member
RR0057 Generate enum values
RR0058 Generate event invoking method
RR0059 Add missing cases to switch statement
RR0060 Initialize local variable with default value
RR0061 Inline alias expression
RR0062 Inline method
RR0063 Insert string interpolation
RR0064 Introduce and initialize field
RR0065 Introduce and initialize property
RR0066 Introduce constructor -
RR0067 Introduce field to lock on
RR0068 Introduce local variable
RR0069 Make member abstract
RR0070 Make member virtual
RR0073 Remove unnecessary assignment
RR0074 Merge attributes
RR0075 Merge 'if' statements
RR0077 Merge local declarations
RR0078 Join string expressions
RR0079 Invert binary expression
RR0080 Invert boolean literal
RR0081 Invert is expression
RR0082 Invert operator
RR0083 Notify when property changes
RR0084 Parenthesize expression
RR0085 Promote local variable to parameter
RR0086 Remove all comments
RR0087 Remove all comments (except documentation comments)
RR0088 Remove all documentation comments -
RR0089 Remove all member declarations
RR0090 Remove all preprocessor directives
RR0091 Remove all region directives
RR0092 Remove all statements
RR0093 Remove all switch sections
RR0094 Remove braces
RR0095 Remove braces from if-else
RR0096 Remove braces from switch section
RR0097 Remove braces from switch sections
RR0098 Remove comment
RR0099 Remove condition from last else clause
RR0100 Remove preprocessor directive
RR0101 Remove empty lines
RR0102 Remove interpolation
RR0103 Remove member declaration
RR0104 Remove member declarations above/below
RR0105 Remove argument name
RR0106 Remove parentheses
RR0107 Remove property initializer
RR0108 Remove region
RR0109 Remove statement
RR0110 Merge switch sections
RR0111 Synchronize property name and backing field name
RR0112 Rename identifier according to type name
RR0113 Rename method according to type name
RR0114 Rename parameter according to its type name
RR0115 Rename property according to type name
RR0116 Invert LINQ method call
RR0117 Replace 'as' expression with explicit cast
RR0118 Replace explicit cast expression 'as' expression
RR0119 Replace conditional expression with true/false branch
RR0120 Convert ?: to if-else
RR0121 Use read-only field instead of constant
RR0123 Convert 'do' to 'while'
RR0124 Replace equality operator with string.Equals
RR0125 Replace equality operator with string.IsNullOrEmpty
RR0126 Replace equality operator with string.IsNullOrWhiteSpace
RR0127 Inline constant value
RR0128 Use constant instead of read-only field
RR0129 Convert 'foreach' to 'for'
RR0130 Convert 'for' to 'foreach'
RR0131 Convert 'for' to 'while'
RR0132 Convert hexadecimal literal to decimal literal
RR0133 Convert 'if' to 'switch'
RR0134 Invert prefix/postfix unary operator
RR0135 Replace interpolated string with interpolation expression
RR0136 Convert interpolated string to string literal
RR0137 Convert method group to lambda
RR0138 Replace method with property -
RR0139 Replace 'null' with 'default(...)'
RR0140 Replace prefix operator to postfix operator
RR0141 Replace property with method
RR0142 Convert regular string literal to verbatim string literal
RR0143 Convert 'return' statement to 'if'
RR0144 Call string.IndexOf instead of string.Contains
RR0145 Convert 'string.Format' to interpolated string
RR0147 Convert 'switch' to 'if'
RR0148 Convert verbatim string literal to regular string literal
RR0149 Convert verbatim string literal to regular string literals
RR0150 Convert 'while' statement to 'do' statement
RR0151 Convert 'while' statement to 'for' statement
RR0152 Reverse 'for' statement
RR0153 Simplify if
RR0154 Convert lambda block body to expression body
RR0155 Sort member declarations
RR0156 Split attributes
RR0157 Split switch labels
RR0158 Split variable declaration
RR0159 Swap binary operands
RR0160 Invert conditional expression
RR0161 Swap member declarations
RR0162 Invert if-else
RR0163 Uncomment single-line comment
RR0164 Convert 'HasFlag' call to bitwise operation
RR0165 Use coalesce expression instead of if
RR0166 Convert 'if' to ?:
RR0167 Use element access instead of LINQ method
RR0169 Convert block body to expression body
RR0170 Use lambda instead of anonymous method
RR0171 Convert "" to string.Empty -
RR0172 Wrap statements in condition
RR0174 Wrap lines in preprocessor directive
RR0175 Wrap lines in #region directive
RR0176 Wrap lines in try-catch
RR0177 Wrap statements in 'using' statement
RR0178 Add generic parameter to a declaration
RR0179 Implement IEquatable<T>
RR0180 Inline using static directive
RR0181 Inline constant declaration
RR0182 Use StringBuilder instead of concatenation
RR0183 Use List<T> instead of yield
RR0184 Split if
RR0185 Remove instantiation of a local variable
RR0186 Change accessibility
RR0187 Wrap constraint clauses
RR0188 Convert 'foreach' to 'for' and reverse loop -
RR0189 Invert if
RR0190 Split if-else
RR0191 Use index initializer
RR0192 Convert comment to documentation comment
RR0193 Convert interpolated string to concatenation
RR0194 Split local declaration and assignment
RR0195 Add member to interface
RR0196 Merge if with parent if
RR0197 Initialize field from constructor
RR0198 Inline property
RR0199 Remove enum member value(s)
RR0200 Uncomment multi-line comment
RR0201 Convert interpolated string to 'string.Format'
RR0202 Move unsafe context to containing declaration
RR0203 Extract event handler method
RR0204 Generate property for DebuggerDisplay attribute
RR0205 Add empty line between declarations
RR0206 Use enumerator explicitly
RR0207 Sort case labels
RR0208 Add tag to documentation comment
RR0209 Remove async/await
RR0210 Implement custom enumerator
RR0211 Convert statements to if-else
RR0212 Copy switch section
RR0213 Add parameter to interface member
RR0214 Convert 'switch' expression to 'switch' statement
RR0215 Expand positional constructor
RR0216 Add all properties to initializer
RR0217 Deconstruct foreach variable

(Generated with DotMarkdown)