Skip to content

Commit 59998dc

Browse files
authored
Add copyright header to .cs, .ps1 and psm1 files (#85)
* Add copyright header to `.cs`, `.ps1` and `psm1` files Merge after #84 * Add copyright header template in .editorconfig
1 parent bf15551 commit 59998dc

21 files changed

+62
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ root = true
33
[*]
44
charset = utf-8
55
insert_final_newline = true
6+
7+
[*.{cs,ps1,psm1}]
8+
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.

PowerShellStandard.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
function Start-Build {
25
param ( [switch]$CoreOnly )
36
# $versions = 3,5

build.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env pwsh
2+
# Copyright (c) Microsoft Corporation.
3+
# Licensed under the MIT License.
4+
25
param (
36
[Parameter(HelpMessage="Remove earlier built versions")][switch]$Clean,
47
[Parameter(HelpMessage="Run the tests")][switch]$Test,

doc/assets/export-TypeDoc.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
$tlist = Import-CSV TypeComparison.csv
25
@'
36
# PowerShell Standard Library 5

doc/assets/export-typecompare.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
class CommonType {
25
[string]$Fullname
36
[bool]$PowerShell51

src/3/System.Management.Automation-lib.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
/*
25

36
First cut at removing apis that we might want to deprecate or not support

src/5/System.Management.Automation-lib.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
13

24
namespace Microsoft.PowerShell {
35
public sealed class DeserializingTypeConverter : System.Management.Automation.PSTypeConverter {

src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/TestSampleCmdletCommand.cs

100755100644
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Management.Automation;
36
using System.Management.Automation.Runspaces;

test/3/core/Class1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Management.Automation;
36

test/3/core/PSS3.Tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Describe "PowerShell Standard 3" {
25
BeforeAll {
36
$cmdletAssembly = "bin/Release/netstandard2.0/Demo.Cmdlet.dll"

test/3/full/Class1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Management.Automation;
36

test/3/full/PSS3.Tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Describe "PowerShell Standard 3" {
25
BeforeAll {
36
$cmdletAssembly = "bin/Release/net452/Demo.Cmdlet.dll"

test/5/core/Class1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Management.Automation;
36
using System.Management.Automation.Runspaces;

test/5/core/PSS5.Tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Describe 'PowerShell Standard 5' {
25

36
BeforeAll {

test/5/full/Class1.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
14
using System;
25
using System.Management.Automation;
36
using System.Management.Automation.Runspaces;

test/5/full/PSS5.Tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Describe 'PowerShell Standard 5 - Full CLR' {
25

36
BeforeAll {

test/Build.Tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Describe "Ensure that the created file versions match what is in the Signing.xml file" {
25
BeforeAll {
36
$baseDir = Resolve-Path (Join-Path $PsScriptRoot "..")

test/dotnetTemplate/dotnetTemplate.Tests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
Describe "PowerShell Standard C# Module Template" {
25
Context "Targeting PowerShell Standard 5.1" {
36
BeforeAll {

tools/releaseBuild/Image/buildStandard.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
param ( [string]$target )
25
if ( ! (test-path ${target} ) ) {
36
new-item -type directory ${target}

tools/releaseBuild/Image/dockerInstall.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
function Install-ChocolateyPackage
25
{
36
param(

tools/releaseBuild/vstsbuild.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
14
[cmdletbinding()]
25
param()
36

0 commit comments

Comments
 (0)