Bump Roslynator.Formatting.Analyzers from 1.1.0 to 4.15.0 #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated Roslynator.Formatting.Analyzers from 1.1.0 to 4.15.0.
Release notes
Sourced from Roslynator.Formatting.Analyzers's releases.
4.15.0
Added
roslynator_null_conditional_operator.avoid_negative_boolean_comparison(PR)... != true/falseFixed
loccommand (PR)rename-symbolscope option not being applied correctly (PR by @andrtmschkw)rename-symbolsupport for top-level statement (PR by @andrtmschkw)Changed
4.14.1
Added
slnxfiles (PR by @darthtrevino)Fixed
OnRectTransformDimensionsChangeChanged
omit_when_single_linewill be that the braces/brackets are on the same line, not just the expression in the braces/brackets4.14.0
Added
Fixed
Changed
Removed
4.13.1
Added
4.13.0
Fixed
Added
Changed
Microsoft.Build.Locatorto 1.7.8 (PR)4.12.11
Added
Fixed
Changed
DiagnosticRulesandDiagnosticIdentifierstoRoslynator.Common(PR)4.12.10
Fixed
Changed
4.12.9
Fixed
generate-doc(PR, PR)Changed
list.FirstOrDefault(predicate)tolist.Find(predicate).Performance gain is negligible and actually
FirstOrDefaultcan be even faster on .NET 9 (see related issue for more details).4.12.8
Fixed
generate-doc(PR)4.12.7
Fixed
Changed
4.12.6
Added
Orderinstead ofOrderBy(PR by @BenjaminBrienen)Fixed
4.12.5
Fixed
Changed
Removed
4.12.4
Fixed
4.12.3
Fixed
roslynator analyze --include/--exclude(PR)4.12.2
Fixed
slnffiles (PR)--severity-level(PR)4.12.1
Changed
Last()to[](RCS1246) (PR by @jakubreznak)Fixed
ILanguageService(PR)4.12.0
Added
Fixed
UnityEngine.SerializeFieldattribute (PR)4.11.0
Added
items.Select(selector).Average()=>items.Average(selector)items.Select(selector).Sum()=>items.Sum(selector)Fixed
varare involved (PR by @jroessel)4.10.0
Added
roslynator spellcheck --scope file-nameChanged
Fixed
4.9.0
Added
Fixed
4.8.0
Added
roslynator_blank_line_between_switch_sections = include|omit|omit_after_blockroslynator_use_var = always | never | when_type_is_obviousCS8600,CS8610,CS8765andCS8767roslynator_use_collection_expression = true|false(PR)Changed
MSTest.TestFrameworkto3.1.1(PR)xunit.assertto2.6.2(PR)Fixed
4.7.0
Added
roslynator_blank_line_between_switch_sections = include|omit|omit_after_blockChanged
Fixed
4.6.4
4.6.3
Added
find-symbol(PR)roslynator find-symbol --symbol-kind type --visibility internal private --unused --removeChanged
Fixed
roslynator --version(PR)4.6.2
Added
Fixed
roslynator_unity_code_analysis.enabled = true|falseroslynator_suppress_unity_script_methodsobsolete4.6.1
Fixed
4.6.0
Added
Changed
DiagnosticVerifier,RefactoringVerifierandCompilerDiagnosticFixVerifier.DiagnosticVerifier.Descriptor(BREAKING CHANGE)CompilerDiagnosticFixVerifier.DiagnosticId(BREAKING CHANGE)DiagnosticTestData.Descriptorobsolete.CompilerDiagnosticFixTestData.DiagnosticIdobsolete.Fixed
4.5.0
Added
Roslynator.Rename.SymbolRenamerpublic (PR)--includeor/and--exclude) (PR, PR)roslynator_trailing_comma_style = include|omit|omit_when_single_lineChanged
roslynator help <COMMAND>(PR)Fixed
spellcheckcommand (PR)4.4.0
Added
Changed
Fixed
generate-doc) (#1130)?to nullable reference types.4.3.0
Changed
Fixed
list-symbolscommand) (#1013)Microsoft.AspNetCore.Components.InjectAttributeis used (#1046)System.Windows.DependencyPropertyChangedEventArgsas unused parameter (RCS1163) (#1068)4.2.0
Added
roslynator_blank_line_after_file_scoped_namespace_declaration = true|falseArgumentNullException.ThrowIfNullinstead ofifnull check.null.Roslynator.Testing.CSharp.MSTest(#997)Changed
Fixed
List<T>(#986)ArgumentNullException.ThrowIfNull(RCS1227) (#992)usingdirective that starts withglobal::RCS0015 (#1000)AD0001withSystem.IO.FileNotFoundExceptionon Visual Studio 17.4 and later.4.1.2
Added
roslynator generate-doc --host docusaurusroslynator generate-doc --host sphinx<inheritdoc />when generating documentation (generate-doccommand) (#972)ignored-title-parts(generate-doccommand) (#975)Changed
main.Fixed
--projectsor--ignored-projectsparameter) (#914)@if necessary (RCS1220) (#943)roslynator analyzecommand (#964 by @PeterKaszab)ArgumentNullException.ThrowIfNull(RR0025, RCS1227) (#974)4.1.1
4.1.0
4.0.2
4.0.2 (2022-01-29)
Bug fixes
4.0.0
Bump Roslyn version to 4.0.1
Change category of all analyzers to 'Roslynator'
Migrate all options to EditorConfig
Add analyzer RCS0057 (Normalize whitespace at the beginning of a file)
Add analyzer RCS0058 (Normalize whitespace at the end of a file)
Add analyzer RCS0059 (Place new line after/before null-conditional operator)
Add analyzer RCS1249 (Unnecessary null-forgiving operator)
Add analyzer RCS1250 (Use implicit/explicit object creation)
Add refactoring ExpandPositionalRecord (RR0215)
Add refactoring AddAllPropertiesToInitializer (RR0216)
Add code fix for CS8403, CS8618 and CS8625
3.3.0
3.2.2
3.2.1
3.2.0
Analyzers
!= nulltois not null(RCS1248) (commit)Code Fixes
3.1.0
var foo = Foo.Parse(value)as having obvious typeFoo3.0.1
Add analyzer RCS0055 (Fix formatting of a binary expression chain)
Add analyzer RCS0054 (Fix formatting of a call chain)
Add analyzer RCS0053 (Fix formatting of a list)
Add analyzer RCS0052 (Add newline before equals sign instead of after it (or vice versa))
Add analyzer RCS1248 (Use 'is null' pattern instead of comparison (or vice versa)) (issue)
Add analyzer RCS1247 (Fix documentation comment tag)
Add analyzer option RCS1207i (Convert method group to anonymous function)
Add analyzer option RCS1090i (Remove call to 'ConfigureAwait')
Add analyzer option RCS1018i (Remove accessibility modifiers) (issue)
Add analyzer option RCS1014i (Use implicitly typed array)
Add analyzer option RCS1014a (Use implicitly typed array (when type is obvious))
Add analyzer option RCS1078i (Use string.Empty instead of "")
Add analyzer option RCS1016a (Convert expression-body to block body when expression is multi-line)
Add analyzer option RCS1016b (Convert expression-body to block body when declaration is multi-line)
Disable by default analyzer RCS1207i (Convert method group to anonymous function)
Remove analyzer RCS1219 (Call 'Enumerable.Skip' and 'Enumerable.Any' instead of 'Enumerable.Count')
Rename analyzer "Avoid 'null' on left side of binary expression" to "Constant values should be placed on right side of comparisons" RCS1098
Rename analyzer "Simplify boolean expression" to "Unncessary null check" RCS1199 (issue)
More syntax is considered as having obvious type:
3.0.0
2.9.0
Directory.Build.propsfileBug Fixes
omnisharp.json(PR)thisto its interface cannot be null (RCS1202) (issue)New Analyzers
Analyzers
x == ""should be replaced withstring.IsNullOrEmpty(x)x == double.NaNshould be replaced withdouble.IsNaN(x)x.OrderBy(y => y).Reverse()can be simplified tox.OrderByDescending(y => y)x.SelectMany(y => y).Count()can be simplified tox.Sum(y => y.Count)ifxhasCountorLengthproperty<<operator (commit).x?.M() ?? default(int?)can be simplified tox?.M()ifxis a nullable struct.(x != null) ? x.M() : default(int?)can be simplified tox?.M()ifxis a nullable struct.2.3.1
2.3.0
Description has been truncated