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

Check license headers in .cs-files from build-script, fail if missing. #594

Closed
wants to merge 2 commits into from
Closed

Check license headers in .cs-files from build-script, fail if missing. #594

wants to merge 2 commits into from

Conversation

danielcweber
Copy link
Collaborator

No description provided.

@danielcweber
Copy link
Collaborator Author

@akarnokd The output of the script matches what you found missing in your unit test, right? We could merge your fixed .cs-files in.

2018-06-15T12:28:06.9105985Z D:\a\1\s\Rx.NET\Source\facades\GlobalAssemblyVersion.cs does not have a valid license header.
2018-06-15T12:28:06.9106885Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Core\TypeForwarders.Core.cs does not have a valid license header.
2018-06-15T12:28:06.9109946Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Experimental\TypeForwarders.Experimental.cs does not have a valid license header.
2018-06-15T12:28:06.9123021Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Interfaces\TypeForwarders.Interfaces.cs does not have a valid license header.
2018-06-15T12:28:06.9143254Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Linq\TypeForwarders.Linq.cs does not have a valid license header.
2018-06-15T12:28:06.9164964Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.PlatformServices\TypeForwarders.PlatformServices.cs does not have a valid license header.
2018-06-15T12:28:06.9184848Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Providers\TypeForwarders.Providers.cs does not have a valid license header.
2018-06-15T12:28:06.9250562Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Runtime.Remoting\TypeForwarders.Remoting.cs does not have a valid license header.
2018-06-15T12:28:06.9277202Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Windows.Forms\TypeForwarders.Forms.cs does not have a valid license header.
2018-06-15T12:28:06.9298454Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.Windows.Threading\TypeForwarders.Threading.cs does not have a valid license header.
2018-06-15T12:28:06.9318727Z D:\a\1\s\Rx.NET\Source\facades\System.Reactive.WindowsRuntime\TypeForwarders.WindowsRuntime.cs does not have a valid license header.
2018-06-15T12:28:07.1642451Z D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\QueryDebugger.cs does not have a valid license header.
2018-06-15T12:28:07.4033547Z D:\a\1\s\Rx.NET\Source\tests\Tests.System.Reactive\Tests\ImmutableListTest.cs does not have a valid license header.
2018-06-15T12:28:07.4464213Z D:\a\1\s\Rx.NET\Source\tests\Tests.System.Reactive\Tests\Internal\PriorityQueueTest.cs does not have a valid license header.
2018-06-15T12:28:07.9103090Z D:\a\1\s\Rx.NET\Source\tests\Tests.System.Reactive.Uwp.DeviceRunner\App.xaml.cs does not have a valid license header.

@akarnokd
Copy link
Collaborator

Checking this on VSTS is one thing. I don't run the build.ps1 file locally, nor do I know how to do it, but I run all unit tests in projects when I change code. Catching and repairing missing headers is more useful then, plus I don't have to dig through those VSTS logs on the website for this particular error.

@danielcweber
Copy link
Collaborator Author

We can go for both, to make the build fail early. I merged your PR. Let's see what the rebase of this says.

@danielcweber
Copy link
Collaborator Author

@onovotny Do we still want that? There's a unit test for that, however, it takes a whole build to fail.

@clairernovotny
Copy link
Member

I'm mostly indifferent about licenses on each file. No strong opinions either way.

@danielcweber
Copy link
Collaborator Author

danielcweber commented May 9, 2019

Checking this during unit testing seems perfectly sufficient. Closing.

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.

3 participants