diff --git a/examples/SampleModule.psd1 b/examples/SampleModule.psd1 index 61e03079ce..eaae97e03c 100644 --- a/examples/SampleModule.psd1 +++ b/examples/SampleModule.psd1 @@ -41,7 +41,7 @@ Author = '' CompanyName = 'Unknown' # Copyright statement for this module -Copyright = '(c) 2016 . All rights reserved.' +Copyright = '(c) 2021 .' # Description of the functionality provided by this module Description = 'Some description. This is required by the PowerShell Gallery' diff --git a/src/controls/animatedStatusBar.ts b/src/controls/animatedStatusBar.ts index a76ca302b6..1a7d38c5e3 100644 --- a/src/controls/animatedStatusBar.ts +++ b/src/controls/animatedStatusBar.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import { Disposable, diff --git a/src/controls/checkboxQuickPick.ts b/src/controls/checkboxQuickPick.ts index 2271cd95ed..0a462671c1 100644 --- a/src/controls/checkboxQuickPick.ts +++ b/src/controls/checkboxQuickPick.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); diff --git a/src/debugAdapter.ts b/src/debugAdapter.ts index 26e6e8b845..260d42ddfd 100644 --- a/src/debugAdapter.ts +++ b/src/debugAdapter.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import { connect, Socket } from "net"; import { DebugAdapter, Event, DebugProtocolMessage, EventEmitter } from "vscode"; diff --git a/src/features/CodeActions.ts b/src/features/CodeActions.ts index f45ef13249..7fcf0a639f 100644 --- a/src/features/CodeActions.ts +++ b/src/features/CodeActions.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import Window = vscode.window; diff --git a/src/features/Console.ts b/src/features/Console.ts index a14826b36f..63d003c601 100644 --- a/src/features/Console.ts +++ b/src/features/Console.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import { NotificationType, RequestType } from "vscode-languageclient"; diff --git a/src/features/CustomViews.ts b/src/features/CustomViews.ts index f8fe3926ce..0e36d602f4 100644 --- a/src/features/CustomViews.ts +++ b/src/features/CustomViews.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as path from "path"; import * as vscode from "vscode"; diff --git a/src/features/DebugSession.ts b/src/features/DebugSession.ts index a00bfc0967..287969acf6 100644 --- a/src/features/DebugSession.ts +++ b/src/features/DebugSession.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import { CancellationToken, DebugConfiguration, DebugConfigurationProvider, diff --git a/src/features/Examples.ts b/src/features/Examples.ts index 63e69498af..13ac41fa92 100644 --- a/src/features/Examples.ts +++ b/src/features/Examples.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import path = require("path"); import vscode = require("vscode"); diff --git a/src/features/ExpandAlias.ts b/src/features/ExpandAlias.ts index 2b5f1d1e30..5030dd5e33 100644 --- a/src/features/ExpandAlias.ts +++ b/src/features/ExpandAlias.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import Window = vscode.window; diff --git a/src/features/ExtensionCommands.ts b/src/features/ExtensionCommands.ts index f81eb27fd2..b614db8f17 100644 --- a/src/features/ExtensionCommands.ts +++ b/src/features/ExtensionCommands.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as fs from "fs"; import * as os from "os"; diff --git a/src/features/ExternalApi.ts b/src/features/ExternalApi.ts index 891d0bbe96..100688e175 100644 --- a/src/features/ExternalApi.ts +++ b/src/features/ExternalApi.ts @@ -1,6 +1,6 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as vscode from "vscode"; import { v4 as uuidv4 } from 'uuid'; import { LanguageClientConsumer } from "../languageClientConsumer"; diff --git a/src/features/FindModule.ts b/src/features/FindModule.ts index 8037ddeac1..1a50580ffd 100644 --- a/src/features/FindModule.ts +++ b/src/features/FindModule.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import { RequestType } from "vscode-languageclient"; diff --git a/src/features/GenerateBugReport.ts b/src/features/GenerateBugReport.ts index e6df5dd80f..c9c1d4d2c3 100644 --- a/src/features/GenerateBugReport.ts +++ b/src/features/GenerateBugReport.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import os = require("os"); import vscode = require("vscode"); diff --git a/src/features/GetCommands.ts b/src/features/GetCommands.ts index 8aff414cb4..c97ce92a1b 100644 --- a/src/features/GetCommands.ts +++ b/src/features/GetCommands.ts @@ -1,6 +1,6 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as vscode from "vscode"; import { RequestType0 } from "vscode-languageclient"; import { LanguageClient } from "vscode-languageclient/node"; diff --git a/src/features/HelpCompletion.ts b/src/features/HelpCompletion.ts index d48129d38f..14263d10b1 100644 --- a/src/features/HelpCompletion.ts +++ b/src/features/HelpCompletion.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import { Disposable, EndOfLine, Position, Range, SnippetString, TextDocument, TextDocumentChangeEvent, window, workspace } from "vscode"; diff --git a/src/features/ISECompatibility.ts b/src/features/ISECompatibility.ts index 5e9c45b3b4..89c54eb3d2 100644 --- a/src/features/ISECompatibility.ts +++ b/src/features/ISECompatibility.ts @@ -1,6 +1,6 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as vscode from "vscode"; import * as Settings from "../settings"; diff --git a/src/features/NewFileOrProject.ts b/src/features/NewFileOrProject.ts index 1d4c8058bb..77ebe0ae6d 100644 --- a/src/features/NewFileOrProject.ts +++ b/src/features/NewFileOrProject.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import { RequestType } from "vscode-languageclient"; diff --git a/src/features/OpenInISE.ts b/src/features/OpenInISE.ts index 9459f85ac8..13199bbe30 100644 --- a/src/features/OpenInISE.ts +++ b/src/features/OpenInISE.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import ChildProcess = require("child_process"); import vscode = require("vscode"); diff --git a/src/features/PesterTests.ts b/src/features/PesterTests.ts index c1ba49f606..6504b1cc0f 100644 --- a/src/features/PesterTests.ts +++ b/src/features/PesterTests.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as path from "path"; import vscode = require("vscode"); diff --git a/src/features/RemoteFiles.ts b/src/features/RemoteFiles.ts index 880ee90a01..ef2c5af3c9 100644 --- a/src/features/RemoteFiles.ts +++ b/src/features/RemoteFiles.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import os = require("os"); import path = require("path"); diff --git a/src/features/RunCode.ts b/src/features/RunCode.ts index e279efa2b5..72cda68976 100644 --- a/src/features/RunCode.ts +++ b/src/features/RunCode.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as path from "path"; import vscode = require("vscode"); diff --git a/src/features/ShowHelp.ts b/src/features/ShowHelp.ts index 20f1421314..ef688ec0c9 100644 --- a/src/features/ShowHelp.ts +++ b/src/features/ShowHelp.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import vscode = require("vscode"); import { NotificationType } from "vscode-languageclient"; diff --git a/src/features/UpdatePowerShell.ts b/src/features/UpdatePowerShell.ts index f66038d091..e8ff0680de 100644 --- a/src/features/UpdatePowerShell.ts +++ b/src/features/UpdatePowerShell.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import { spawn } from "child_process"; import * as fs from "fs"; diff --git a/src/languageClientConsumer.ts b/src/languageClientConsumer.ts index bda7788a4d..b1cea31ac0 100644 --- a/src/languageClientConsumer.ts +++ b/src/languageClientConsumer.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import { window } from "vscode"; import { LanguageClient } from "vscode-languageclient/node"; diff --git a/src/logging.ts b/src/logging.ts index 50d2b8d74a..83f67f08c0 100644 --- a/src/logging.ts +++ b/src/logging.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import fs = require("fs"); import os = require("os"); diff --git a/src/main.ts b/src/main.ts index c7a46d0335..6acecb0bc0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. "use strict"; diff --git a/src/platform.ts b/src/platform.ts index a8ab051b05..d72a97f108 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as child_process from "child_process"; import * as fs from "fs"; diff --git a/src/process.ts b/src/process.ts index 347dacd06f..d151138a41 100644 --- a/src/process.ts +++ b/src/process.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import cp = require("child_process"); import fs = require("fs"); diff --git a/src/session.ts b/src/session.ts index c2228495c5..041c3ff1ff 100644 --- a/src/session.ts +++ b/src/session.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import fs = require("fs"); import net = require("net"); diff --git a/src/settings.ts b/src/settings.ts index 35922fcacd..57c57f8c26 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. "use strict"; diff --git a/src/utils.ts b/src/utils.ts index 5f4e9d10fb..c5d3a880f9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. "use strict"; diff --git a/test/features/CustomViews.test.ts b/test/features/CustomViews.test.ts index c9eed44e11..48816c9aaa 100644 --- a/test/features/CustomViews.test.ts +++ b/test/features/CustomViews.test.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as assert from "assert"; import fs = require("fs"); diff --git a/test/features/ExternalApi.test.ts b/test/features/ExternalApi.test.ts index 3cd3cdd82e..262f1b207f 100644 --- a/test/features/ExternalApi.test.ts +++ b/test/features/ExternalApi.test.ts @@ -1,6 +1,6 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as assert from "assert"; import * as vscode from "vscode"; import { before, beforeEach, afterEach } from "mocha"; diff --git a/test/features/ISECompatibility.test.ts b/test/features/ISECompatibility.test.ts index ac5592a550..c8843e93ba 100644 --- a/test/features/ISECompatibility.test.ts +++ b/test/features/ISECompatibility.test.ts @@ -1,6 +1,6 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + import * as assert from "assert"; import * as vscode from "vscode"; import { ISECompatibilityFeature } from "../../src/features/ISECompatibility"; diff --git a/test/features/RunCode.test.ts b/test/features/RunCode.test.ts index e01d35f122..90745f3090 100644 --- a/test/features/RunCode.test.ts +++ b/test/features/RunCode.test.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as assert from "assert"; import rewire = require("rewire"); diff --git a/test/features/UpdatePowerShell.test.ts b/test/features/UpdatePowerShell.test.ts index 8a96765cee..62160f3fec 100644 --- a/test/features/UpdatePowerShell.test.ts +++ b/test/features/UpdatePowerShell.test.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as assert from "assert"; import { GitHubReleaseInformation } from "../../src/features/UpdatePowerShell"; diff --git a/test/platform.test.ts b/test/platform.test.ts index f6226f634e..4e83fbc11c 100644 --- a/test/platform.test.ts +++ b/test/platform.test.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as assert from "assert"; import mockFS = require("mock-fs"); diff --git a/test/runTests.ts b/test/runTests.ts index cb98abee31..09e18b78ef 100644 --- a/test/runTests.ts +++ b/test/runTests.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as path from "path"; diff --git a/test/settings.test.ts b/test/settings.test.ts index f3add40fcc..15b15d142b 100644 --- a/test/settings.test.ts +++ b/test/settings.test.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as assert from "assert"; import * as vscode from "vscode"; diff --git a/test/testRunner.ts b/test/testRunner.ts index 8469d647e0..fdd927358c 100644 --- a/test/testRunner.ts +++ b/test/testRunner.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import * as glob from "glob"; import * as Mocha from "mocha"; diff --git a/test/test_utils.ts b/test/test_utils.ts index 779654acb4..cb731b4b46 100644 --- a/test/test_utils.ts +++ b/test/test_utils.ts @@ -1,6 +1,5 @@ -/*--------------------------------------------------------- - * Copyright (C) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------*/ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. import { ILogger } from "../src/logging"; diff --git a/tslint.json b/tslint.json index 2d0fa1eca2..b6aef3f8c9 100644 --- a/tslint.json +++ b/tslint.json @@ -8,7 +8,13 @@ "indent": [true, "spaces", 4], "max-classes-per-file": false, "object-literal-sort-keys": false, - "file-header": [true, "Copyright \\(C\\) Microsoft Corporation. All rights reserved."] + "file-header": [ + true, + { + "allow-single-line-comments": true, + "match": "Copyright \\(c\\) Microsoft Corporation." + } + ] }, "rulesDirectory": [] }