-
Notifications
You must be signed in to change notification settings - Fork 293
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
build: use built-in formatter #1276
Conversation
@BurakTaner, |
Hi @Kielek, I tried to sign EasyCLa with your email and name-surname but gave me error "Company not found". My first time with EasyCLA, can you give a little help? |
@BurakTaner, you have two options
|
c5dd71c
to
1ff0434
Compare
@Kielek I signed CLA and pushed last changes to make branch up to date with main. What should ı do next? |
.github/workflows/dotnet-format.yml
Outdated
@@ -29,4 +29,4 @@ jobs: | |||
run: dotnet tool install -g dotnet-format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's part of the newer .NET SDK, then do we still need to install dotnet-format
?
@@ -29,4 +29,4 @@ jobs: | |||
run: dotnet tool install -g dotnet-format | |||
|
|||
- name: dotnet format | |||
run: dotnet-format --folder --check | |||
run: dotnet format .\opentelemetry-dotnet-contrib.sln --no-restore --verify-no-changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify the .sln
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you simplify this command by removing the parameter for providing the .sln
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to use withtout specify the sln but gives me error. I checked from documentation and they said "If you don't specify a a file, going to check for current directory to found a solution" but it's not in my local computer.
Since this PR does not change any |
@BurakTaner, I have pushed two commit to your branch
Please check what you can do with detected issues https://github.com/open-telemetry/opentelemetry-dotnet-contrib/actions/runs/5676698870/job/15383851038?pr=1276 |
3c71621
to
f9f0585
Compare
Branch was not up to date with the current changes and ı accidently force pushed. That's remove your commits, ı am so sorry about it. Going to make those changes again. |
0c8693d
to
d93825f
Compare
I see a lot of issues similar to
I think that you have 2 options to proceed
I think the first option should be better to have separate time measurement for just code formatting. Keeping the old version is not good idea - it is not supporting new C# futures so it will prevent us using it. |
d93825f
to
e3de1fe
Compare
ef76684
to
38dc6cc
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1276 +/- ##
==========================================
+ Coverage 73.83% 74.13% +0.29%
==========================================
Files 264 256 -8
Lines 9386 9344 -42
==========================================
- Hits 6930 6927 -3
+ Misses 2456 2417 -39
|
@Kielek Like ı said, ı tried to use format in my computer and without dotnet build, still gave the error like the last checks. Should ı include a dotnet build step or is there any problem am ı missing because ı already added restore step to yml file? |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Fixes #1274.
Changes
I changed outadated formatter with built-in one.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes