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

Standardize OSS copyright header #2775

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Aug 27, 2024

We should follow the guidance at https://docs.opensource.microsoft.com/releasing/general-guidance/copyright-headers/

This PR updates all non-consistent headers and changes code gen to use the correct casing.

@@ -135,7 +135,7 @@ export async function generateRestLevelClient() {
const isJson = /\.json$/gi.test(filePath);
const isSourceCode = /\.(ts|js)$/gi.test(filePath);
let fileContents = fs.readFileSync(filePath);
const licenseHeader = `// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n`;
const licenseHeader = `// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n`;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codegen was using lower case so I am not 100% sure why some test baselines have upper case and some have lower case.

packages/typespec-ts/src/utils/emitUtil.ts Show resolved Hide resolved
@jeremymeng jeremymeng merged commit 6aef1c5 into Azure:main Aug 29, 2024
15 checks passed
@jeremymeng jeremymeng deleted the standardize-copyright-header branch August 29, 2024 16:24
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.

2 participants