-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Add file_header_template to editorconfig #30132
Conversation
Youssef1313
commented
Feb 12, 2021
•
edited
Loading
edited
- This ensures all files have the proper header template in CI.
- Also when adding new files from Solution Explorer, it will get pre-populated with the header template.
Before moving forward with applying a FixAll in more solution filters, can someone confirm you want this change? |
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.
This is super valuable, but likely to be a bit tricky. It might be easier to move directly to MIT, since parts of the repo are already licensed that way, and that's where we want to end up.
src/Http/Routing/src/ArrayBuilder.cs
Outdated
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. |
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.
This is incorrect, since it's copied source from something that was MIT.
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.
@Pilchie Is there a list of solution filters that I shouldn't touch their license headers?
src/Caching/SqlServer/src/Columns.cs
Outdated
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
// Copyright (c) .NET Foundation. All rights reserved. |
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.
This code in Caching
moved from dotnet/extensions
which was MIT.
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
// Copyright (c) .NET Foundation. All rights reserved. |
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.
The HttpClientFactory
stuff also came from extensions.
Related to #18873. |
Using
Upgrading the compiler version introduced some nullable errors. I think I'll wait on this PR until you upgrade the compiler version and fix these errors. I'll convert to a draft until you move to the newer compiler version or I get to do this in a separate PR. |
@dougbu Can you comment on #30132 (comment)? |
The Build team doesn't treat the compiler version as infrastructure unless (and, yes, this has happened) a new version causes problems. We pinned the version to keep aspnetcore ahead of Arcade IIRC. I have no general concerns about moving from 3.7.x to 3.10.x. Suggest working with @JamesNK and @pranavkm, both of whom have done a large amount of nullability-related changes. @Youssef1313 where were most of the new warnings or errors❔ |
@dougbu |
Done #31403 |
@Pilchie The size of the PR is growing crazy. Is that okay? |
Is it possible to only apply this to part of the repo at a time? |
Yes, I can cherry-pick the commits here to multiple PRs. Would you be able to let me know which directories are owned by the same team to open as a separate PRs? |
There are probably 5 main areas: |
Sorry @Youssef1313, we ran into a bureaucratic hurdle. We'll get it sorted out and get back to you here soon. |
Closing this in lieu of #34573. Thanks for your time and effort though! |