Skip to content

Commit

Permalink
feat(project): add ability to include license header for source files
Browse files Browse the repository at this point in the history
These changes includes the ability to add a license header to all source files (.cs) when a license
that recommends a license header is used.

re #26
  • Loading branch information
AdmiringWorm committed Jul 25, 2020
1 parent a04a1fd commit e5d199f
Show file tree
Hide file tree
Showing 35 changed files with 447 additions and 13 deletions.
6 changes: 6 additions & 0 deletions __tests__/project/default/aliases.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp
{
using Cake.Core;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/nunit/testAliasesTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp.Tests
{
using System;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/nunit/testRunnerTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp.Tests
{
using System;
Expand Down
2 changes: 1 addition & 1 deletion __tests__/project/default/project/project.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Copyright>Copyright © $(FullYear) — Kim Nordmo</Copyright>
<Description>Cake addin generation test</Description>
<PackageIconUrl>https://cdn.jsdelivr.net/gh/cake-contrib/graphics/png/cake-contrib-medium.png</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseExpression>MPL-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/AdmiringWorm/Cake.TestApp</PackageProjectUrl>
<PackageTags>cake;addin;testapp</PackageTags>
<RepositoryUrl>https://github.com/AdmiringWorm/Cake.TestApp.git</RepositoryUrl>
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/runner.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp
{
using System;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/settings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp
{
using System;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/testAliasesFixture.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp.Tests
{
using System.Collections.Generic;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/testRunnerFixture.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp.Tests
{
using Cake.Testing.Fixtures;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/xunit/testAliasesTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp.Tests
{
using System;
Expand Down
6 changes: 6 additions & 0 deletions __tests__/project/default/xunit/testRunnerTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

namespace Cake.TestApp.Tests
{
using System;
Expand Down
Loading

0 comments on commit e5d199f

Please sign in to comment.