Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update roslynator to v4.1.2 #733

Merged
merged 1 commit into from
Oct 31, 2022
Merged

Update roslynator to v4.1.2 #733

merged 1 commit into from
Oct 31, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 31, 2022

Mend Renovate

This PR contains the following updates:

Package Type Update Change
Roslynator.Analyzers nuget patch 4.1.1 -> 4.1.2
Roslynator.CodeAnalysis.Analyzers nuget patch 4.1.1 -> 4.1.2
Roslynator.Formatting.Analyzers nuget patch 4.1.1 -> 4.1.2

Release Notes

josefpihrt/roslynator

v4.1.2

Added
  • Convert more syntax to implicit object creation (RCS1250) (#​910).
  • Add code fix for CS0037 (#​929).
  • [CLI] Generate reference documentation that can be published with Docusaurus (#​918).
    • roslynator generate-doc --host docusaurus
  • [CLI] Generate reference documentation that can be published with Sphinx (#​961).
    • roslynator generate-doc --host sphinx
  • [CLI] Basic support for <inheritdoc /> when generating documentation (generate-doc command) (#​972).
  • [CLI] Add option ignored-title-parts (generate-doc command) (#​975).
Changed
  • Rename default branch to main.
  • Format changelog according to 'Keep a Changelog' (#​915).
  • [CLI] Improve release build of command-line tool (#​912).
  • Do not sort properties in an initializer (RR0216).
  • [CLI] Bump Roslyn to 4.3.1 (#​969).
  • [CLI] Bump Microsoft.Build.Locator to 1.5.5 (#​969).
Fixed
  • [CLI] Fix filtering of projects (relates to --projects or --ignored-projects parameter) (#​914).
  • Refactoring "Add using directive" (RR0014) now works when file-scoped namespace is used (#​932).
  • Add parentheses if necessary in a code fix for RCS1197 (#​928 by @​karl-sjogren).
  • Do not simplify default expression if it would change semantics (RCS1244) (#​939.
  • Fix NullReferenceException in RCS1198 (#​940.
  • Order named arguments even if optional arguments are not specified RCS1205 (#​941, (#​965.
  • Prefix identifier with @ if necessary (RCS1220) (#​943.
  • Do not suggest to make local variable a const when it is used in ref extension method (RCS1118) (#​948.
  • Fix formatting of argument list (#​952.
  • Do not remove async/await when 'using declaration' is used (#​953.
  • Convert if-else to return statement when pattern matching is used (RCS1073) (#​956.
  • [CLI] Include compiler diagnostics in the xml output file of the roslynator analyze command (#​964 by @​PeterKaszab).
  • Do not simplify 'default' expression if the type is inferred (RCS1244) (#​966.
  • Use explicit type from lambda expression (RCS1008) (#​967.
  • Do not remove constructor if it is decorated with 'UsedImplicitlyAttribute' (RCS1074) (#​968.
  • Detect argument null check in the form of ArgumentNullException.ThrowIfNull (RR0025, RCS1227) (#​974.
  • Do not make generic class static if it's inherited (RCS1102) (#​978.

4.1.1 (2022-05-29)
  • Bug fixes
4.1.0 (2022-03-29)
  • Add analyzer RCS1254 (Normalize format of enum flag value)
  • Add analyzer RCS1253 (Format documentation comment summary)
  • Add analyzer RCS1252 (Normalize usage of infinite loop)
  • Add analyzer RCS1251 (Remove unnecessary braces from record declaration)
  • Add refactoring Deconstruct foreach variable (RR0217)
  • Add code fix for CS8602, CS8604
  • Add suggestion to call AddRange instead of Add (RCS1235)
  • Put back refactoring "Split local declaration and assignment" (RR0194) (issue)
  • Adopt activation events in VS Code extension (issue) (thanks to ProphetLamb)
  • Fix: Get config value from global AnalyzerConfig if available (issue)
  • Fix: Do not suggest using null-forgiving operator for parameter default value (CS8625)
  • Fix: Check if equality operator is overloaded (RCS1171)
  • Fix: Do not remove field initialization in struct with constructor(s) (RCS1129)
4.0.3 (2022-01-29)
  • Fixed release for VS Code
4.0.2 (2022-01-29)
  • Disable analyzer ROS003 by default (commit)
  • Analyzers that require option to be set should disabled by default (RCS1018, RCS1096, RCS1250) (commit)
Bug fixes
  • Fix analyzer RCS1014 (Use explicitly/implicitly typed array) (commit)
  • Fix analyzer RCS1016 (Use block body or expression body) (commit)
  • Fix refactoring AddUsingDirective (RR0013) (commit)
  • Propagate some options from .roslynatorconfig (commit)
  • Enable ROS analyzers to be set from .roslynatorconfig (commit)
  • Files generated with source generators have relative paths (commit)
4.0.1 (2022-01-21)
  • Bug fixes
4.0.0 (2022-01-16)
  • Bump Roslyn version to 4.0.1

  • Change category of all analyzers to 'Roslynator'

  • Migrate all options to EditorConfig

    • Enable/disable all analyzers
    • Enable/disable all refactorings
    • Enable/disable specific refactoring
    • Enable/disable all compiler diagnostics fixes
    • Enable/disable specific compiler diagnostic fix
  • 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 (2021-11-14)
  • Bunch of bug fixes and small improvements
  • Disable analyzers RCS1079 and RCS1090 by default
3.2.2 (2021-08-15)
  • Ensure that shared assemblies with be loaded properly on .NET Core (issue)
3.2.1 (2021-06-30)
  • Publish Roslynator for Visual Studio 2022 Preview
  • Bug fixes and various improvements
3.2.0 (2021-04-26)
Analyzers
Code Fixes
  • Add code fix for CS7036 (commit)
  • Add code fix for CS8632 (commit)
  • Improve code fix for CS0029, CS0246 (commit)
  • Add option for code fix for CS1591 (commit)
3.1.0 (2021-01-04)
  • Add analyzer RCS0056 (Line is too long)
  • Add option to suppress diagnostic from Unity script methods (RCS1213)
  • Consider syntax var foo = Foo.Parse(value) as having obvious type Foo
  • Update references to Roslyn API to 3.7.0
3.0.1 (2020-10-19)
  • 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 "Unnecessary null check" RCS1199 (issue)

  • More syntax is considered as having obvious type:

    • string literal
    • character literal
    • boolean literal
    • implicit array creation that contains only expressions whose type is obvious
3.0.0 (2020-06-16)
New Analyzers
  • RCS0048 (Remove newlines from initializer with single-line expression).
  • RCS0049 (Add empty line after top comment).
  • RCS0050 (Add empty line before top declaration).
  • RCS0051 (Add newline between closing brace and 'while' keyword (or vice versa)).
  • RCS1246 (Use element access).
New Refactorings
  • RR0214 (Convert 'switch' expression to 'switch' statement).
2.9.0 (2020-03-13)
  • Switch to Roslyn 3.x libraries
  • Add Directory.Build.props file
  • Add open configuration commands to Command Palette (VS Code) (PR)
Bug Fixes
  • Fix key duplication/handle camel case names in omnisharp.json (PR)
  • Use prefix unary operator instead of postfix unary operator (RCS1089) (issue)
  • Cast of this to its interface cannot be null (RCS1202) (issue)
  • Do not remove braces in switch section if it contains 'using variable' (RCS1031) (issue)
New Analyzers
  • RCS1242 (DoNotPassNonReadOnlyStructByReadOnlyReference).
  • RCS1243 (DuplicateWordInComment).
  • RCS1244 (SimplifyDefaultExpression).
  • RCS1245 (SimplifyConditionalExpression2) (issue).
Analyzers
  • Disable analyzer RCS1057 by default (issue).
  • Merge analyzer RCS1156 with RCS1113 (issue).
    • x == "" should be replaced with string.IsNullOrEmpty(x)
  • Improve analyzer RCS1215 (commit).
    • x == double.NaN should be replaced with double.IsNaN(x)
  • Enable RCS1169 and RCS1170 if the type is read-only struct (commit).
  • Improve analyzer RCS1077 (commit).
    • x.OrderBy(y => y).Reverse() can be simplified to x.OrderByDescending(y => y)
    • x.SelectMany(y => y).Count() can be simplified to x.Sum(y => y.Count) if x has Count or Length property
  • Improve analyzer RCS1161 - Declare explicit enum value using << operator (commit).
  • Improve analyzer RCS1036 - remove empty line between documentation comment and declaration (commit).
  • Improve analyzer RCS1037 - remove trailing white-space from documentation comment (commit).
  • Improve analyzer RCS1143 (commit)
    • x?.M() ?? default(int?) can be simplified to x?.M() if x is a nullable struct.
  • Improve analyzer RCS1206 (commit)
    • (x != null) ? x.M() : default(int?) can be simplified to x?.M() if x is a nullable struct.
2.3.1 (2020-01-20)
  • Last release of package Roslynator.Analyzers (2.3.0) that references Roslyn 2.x (VS 2017)
2.3.0 (2019-12-28)
  • Last release of Roslynator for VS 2017
  • Automatically update configuration in omnisharp.json (VS Code) (PR).
2.2.1 (2019-10-26)
  • Add set of formatting analyzers (RCS0...).
2.2.0 (2019-09-28)
  • Enable configuration for non-Windows systems (VS Code).
Analyzers
  • Disable analyzer RCS1029 (FormatBinaryOperatorOnNextLine) by default.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the 🚚 private-dependencies Private dependency label Oct 31, 2022
@renovate renovate bot enabled auto-merge (rebase) October 31, 2022 21:57
@github-actions github-actions bot added this to the v11.4.3 milestone Oct 31, 2022
@renovate renovate bot merged commit 823887f into master Oct 31, 2022
@renovate renovate bot deleted the renovate/roslynator branch October 31, 2022 22:09
@github-actions github-actions bot modified the milestones: v11.4.3, v11.5.0 Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚚 private-dependencies Private dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants