Skip to content

[dotnet] Format dotnet code according to default config - #12879

Merged
titusfortner merged 1 commit into
SeleniumHQ:trunkfrom
nvborisenko:dotnet-format
Oct 6, 2023
Merged

[dotnet] Format dotnet code according to default config#12879
titusfortner merged 1 commit into
SeleniumHQ:trunkfrom
nvborisenko:dotnet-format

Conversation

@nvborisenko

@nvborisenko nvborisenko commented Oct 5, 2023

Copy link
Copy Markdown
Member

Description

Fix small linter issues in dotnet/src folder.

Motivation and Context

Keep code "clean".

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment thread dotnet/src/support/Events/FindElementEventArgs.cs
@titusfortner

Copy link
Copy Markdown
Member

Looks good. Is there a linting tool for this?

@titusfortner titusfortner added this to the 4.14 milestone Oct 6, 2023
@nvborisenko

Copy link
Copy Markdown
Member Author

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format

dotnet-format is a code formatter for dotnet that applies style preferences to a project or solution. Preferences will be read from an .editorconfig file, if present, otherwise a default set of preferences will be used. At this time dotnet-format is able to format C# and Visual Basic projects with a subset of supported .editorconfig options.

@titusfortner

Copy link
Copy Markdown
Member

Hmm, it isn't working on my machine, does it need Windows?
Can we add a linting job to our CI like we have in other languages?

@nvborisenko

Copy link
Copy Markdown
Member Author

It doesn't require Windows.

Many things, which are supposed to work, don't work on this solution out of the box...

@titusfortner

Copy link
Copy Markdown
Member

What did you have to do to get it working?

@titusfortner
titusfortner merged commit c04e433 into SeleniumHQ:trunk Oct 6, 2023
aguspe pushed a commit to aguspe/selenium that referenced this pull request Oct 22, 2023
@nvborisenko
nvborisenko deleted the dotnet-format branch November 28, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants