Skip to content

Add copyright header to .cs, .ps1 and psm1 files #85

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

Merged
merged 2 commits into from
Aug 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ root = true
[*]
charset = utf-8
insert_final_newline = true

[*.{cs,ps1,psm1}]
file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.
3 changes: 3 additions & 0 deletions PowerShellStandard.psm1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Start-Build {
param ( [switch]$CoreOnly )
# $versions = 3,5
Expand Down
3 changes: 3 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env pwsh
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param (
[Parameter(HelpMessage="Remove earlier built versions")][switch]$Clean,
[Parameter(HelpMessage="Run the tests")][switch]$Test,
Expand Down
3 changes: 3 additions & 0 deletions doc/assets/export-TypeDoc.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

$tlist = Import-CSV TypeComparison.csv
@'
# PowerShell Standard Library 5
Expand Down
3 changes: 3 additions & 0 deletions doc/assets/export-typecompare.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

class CommonType {
[string]$Fullname
[bool]$PowerShell51
Expand Down
3 changes: 3 additions & 0 deletions src/3/System.Management.Automation-lib.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/*

First cut at removing apis that we might want to deprecate or not support
Expand Down
2 changes: 2 additions & 0 deletions src/5/System.Management.Automation-lib.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

namespace Microsoft.PowerShell {
public sealed class DeserializingTypeConverter : System.Management.Automation.PSTypeConverter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
Expand Down
3 changes: 3 additions & 0 deletions test/3/core/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;

Expand Down
3 changes: 3 additions & 0 deletions test/3/core/PSS3.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe "PowerShell Standard 3" {
BeforeAll {
$cmdletAssembly = "bin/Release/netstandard2.0/Demo.Cmdlet.dll"
Expand Down
3 changes: 3 additions & 0 deletions test/3/full/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;

Expand Down
3 changes: 3 additions & 0 deletions test/3/full/PSS3.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe "PowerShell Standard 3" {
BeforeAll {
$cmdletAssembly = "bin/Release/net452/Demo.Cmdlet.dll"
Expand Down
3 changes: 3 additions & 0 deletions test/5/core/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
Expand Down
3 changes: 3 additions & 0 deletions test/5/core/PSS5.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe 'PowerShell Standard 5' {

BeforeAll {
Expand Down
3 changes: 3 additions & 0 deletions test/5/full/Class1.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.Management.Automation;
using System.Management.Automation.Runspaces;
Expand Down
3 changes: 3 additions & 0 deletions test/5/full/PSS5.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe 'PowerShell Standard 5 - Full CLR' {

BeforeAll {
Expand Down
3 changes: 3 additions & 0 deletions test/Build.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe "Ensure that the created file versions match what is in the Signing.xml file" {
BeforeAll {
$baseDir = Resolve-Path (Join-Path $PsScriptRoot "..")
Expand Down
3 changes: 3 additions & 0 deletions test/dotnetTemplate/dotnetTemplate.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

Describe "PowerShell Standard C# Module Template" {
Context "Targeting PowerShell Standard 5.1" {
BeforeAll {
Expand Down
3 changes: 3 additions & 0 deletions tools/releaseBuild/Image/buildStandard.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

param ( [string]$target )
if ( ! (test-path ${target} ) ) {
new-item -type directory ${target}
Expand Down
3 changes: 3 additions & 0 deletions tools/releaseBuild/Image/dockerInstall.psm1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

function Install-ChocolateyPackage
{
param(
Expand Down
3 changes: 3 additions & 0 deletions tools/releaseBuild/vstsbuild.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[cmdletbinding()]
param()

Expand Down