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

Bump csharpier from 0.26.7 to 0.27.0 #49

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 22, 2024

Bumps csharpier from 0.26.7 to 0.27.0.

Release notes

Sourced from csharpier's releases.

0.27.0

What's Changed

Improve formatting of lambda expressions #1066

Many thanks go to @​Rudomitori for contributing a number of improvements to the formatting of lambda expressions.

Some examples of the improvements.

// input
var affectedRows = await _dbContext.SomeEntities
    .ExecuteUpdateAsync(
        x => 
            x.SetProperty(x => x.Name, x => command.NewName)
                .SetProperty(x => x.Title, x => command.NewTItle)
                .SetProperty(x => x.Count, x => x.Command.NewCount)
    );
// 0.27.0
var affectedRows = await _dbContext.SomeEntities
.ExecuteUpdateAsync(x =>
x.SetProperty(x => x.Name, x => command.NewName)
.SetProperty(x => x.Title, x => command.NewTItle)
.SetProperty(x => x.Count, x => x.Command.NewCount)
);

// input
builder.Entity<IdentityUserToken<string>>(b =>
{
    b.HasKey(
        l =>
            new
            {
                l.UserId,
                l.LoginProvider,
                l.Name
            }
    );
    b.ToTable("AspNetUserTokens");
});
// 0.27.0
builder.Entity<IdentityUserToken<string>>(b =>
{
b.HasKey(l => new
{
l.UserId,
l.LoginProvider,
l.Name
});
</tr></table>

... (truncated)

Changelog

Sourced from csharpier's changelog.

# 0.27.0

What's Changed

Improve formatting of lambda expressions #1066

Many thanks go to @​Rudomitori for contributing a number of improvements to the formatting of lambda expressions.

Some examples of the improvements.

// input
var affectedRows = await _dbContext.SomeEntities
    .ExecuteUpdateAsync(
        x => 
            x.SetProperty(x => x.Name, x => command.NewName)
                .SetProperty(x => x.Title, x => command.NewTItle)
                .SetProperty(x => x.Count, x => x.Command.NewCount)
    );
// 0.27.0
var affectedRows = await _dbContext.SomeEntities
.ExecuteUpdateAsync(x =>
x.SetProperty(x => x.Name, x => command.NewName)
.SetProperty(x => x.Title, x => command.NewTItle)
.SetProperty(x => x.Count, x => x.Command.NewCount)
);

// input
builder.Entity<IdentityUserToken<string>>(b =>
{
    b.HasKey(
        l =>
            new
            {
                l.UserId,
                l.LoginProvider,
                l.Name
            }
    );
    b.ToTable("AspNetUserTokens");
});
// 0.27.0
builder.Entity<IdentityUserToken<string>>(b =>
{
b.HasKey(l => new
{
l.UserId,
l.LoginProvider,
l.Name
});
</tr></table>

... (truncated)

Commits
  • 7d09173 Releasing 0.27.0 (#1128)
  • 99206da Adding GRPC support to CSharpier to allow better communication with extension...
  • 102c6e5 Fixing issue with #if being eaten in collection expression (#1120)
  • 207353a Allowing new lines in initializers (#1113)
  • b634ee3 fixing some issues with the recent raw string literal changes from #975 (#1106)
  • 3c8022c Only sort modifiers that we know should be sorted. (#1124)
  • bbbbbab Some syntax finder tweaks made while tracking down what modifiers look like o...
  • 69dc6ef Cleaning up syntax finder a bit. Add readme (#1121)
  • 0f07ce0 update doc
  • f49cf5d Minor update to EditorsTroubleshooting.md (#1118)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @guibranco.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added .NET .NET code changes dependencies nuget Package updates (NuGet) packages Package updates labels Jan 22, 2024
@dependabot dependabot bot requested a review from guibranco January 22, 2024 00:48
@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 22, 2024
@guibranco guibranco enabled auto-merge (squash) January 22, 2024 00:49
Copy link
Member

@guibranco guibranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically approved by gstraccini[bot]

@guibranco
Copy link
Member

@dependabot squash and merge

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 22, 2024

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@AppVeyorBot
Copy link

Bumps [csharpier](https://github.com/belav/csharpier) from 0.26.7 to 0.27.0.
- [Release notes](https://github.com/belav/csharpier/releases)
- [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md)
- [Commits](belav/csharpier@0.26.7...0.27.0)

---
updated-dependencies:
- dependency-name: csharpier
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/nuget/csharpier-0.27.0 branch from d2c80d2 to 21a2082 Compare January 22, 2024 01:12
@AppVeyorBot
Copy link

@guibranco
Copy link
Member

@gstraccini csharpier

1 similar comment
@guibranco
Copy link
Member

@gstraccini csharpier

Copy link
Contributor

gstraccini bot commented Jan 22, 2024

Running CSharpier on this branch! 🔧

1 similar comment
Copy link
Contributor

gstraccini bot commented Jan 22, 2024

Running CSharpier on this branch! 🔧

Copy link
Contributor

gstraccini bot commented Jan 22, 2024

CSharpier result:

Error ./Src/POCAsterisk/Controllers/WeatherForecastController.cs - Was not formatted.
  ----------------------------- Expected: Around Line 58 -----------------------------
              .Range(1, 5)
              .Select(index => new WeatherForecast
              {
  ----------------------------- Actual: Around Line 58 -----------------------------
              .Range(1, 5)
              .Select(
                  index =>
  

Copy link
Contributor

gstraccini bot commented Jan 22, 2024

CSharpier result:

Error ./Src/POCAsterisk/Controllers/WeatherForecastController.cs - Was not formatted.
  ----------------------------- Expected: Around Line 58 -----------------------------
              .Range(1, 5)
              .Select(index => new WeatherForecast
              {
  ----------------------------- Actual: Around Line 58 -----------------------------
              .Range(1, 5)
              .Select(
                  index =>
  

Copy link
Contributor

gstraccini bot commented Jan 22, 2024

CSharpier failed!

@github-actions github-actions bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 22, 2024
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@AppVeyorBot
Copy link

@guibranco guibranco merged commit 33dbe12 into main Jan 22, 2024
8 checks passed
@guibranco guibranco deleted the dependabot/nuget/csharpier-0.27.0 branch January 22, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies .NET .NET code changes nuget Package updates (NuGet) packages Package updates size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants