Repository navigation
Fix lint job in CI - #2581
Fix lint job in CI#2581
Conversation
It did run linter, but didn't fail if any changes were to be applied, instead it actually applied them (and then dropped). So the job would actually never fail.
There was a problem hiding this comment.
There are still some formatting failures in test files, otherwise LGTM. We might want to exclude the test directory if those aren't easily fixed - it has RunAnalyzers set to false but it seems dotnet format doesn't respect this.
linker/test/Directory.Build.props
Line 5 in 3f704bb
|
This is really weird - I ran it locally to "fix" things, and it didn't do those - but then it fails on them? |
|
Weird... could it be using a different version of dotnet-format locally for some reason? I have hit problems in the past with breaking changes to dotnet-format and IIRC I had to be very careful to make sure it used the right SDK. |
|
Honestly - the tool is... confusing.
You can force
So for now I did this:
It's not perfect, it takes a while to run (twice) and the output is still unnecessarily long, but at least it works. |
|
I filed dotnet/format#1508 to hopefully improve the tool |
It did run linter, but didn't fail if any changes were to be applied, instead it actually applied them (and then dropped). So the job would actually never fail. Commit migrated from dotnet/linker@cdd4079
It did run linter, but didn't fail if any changes were to be applied, instead it actually applied them (and then dropped). So the job would actually never fail.