Skip to content

Standardize OSS copyright header#2775

Merged
jeremymeng merged 5 commits intoAzure:mainfrom
jeremymeng:standardize-copyright-header
Aug 29, 2024
Merged

Standardize OSS copyright header#2775
jeremymeng merged 5 commits intoAzure:mainfrom
jeremymeng:standardize-copyright-header

Conversation

@jeremymeng
Copy link
Copy Markdown
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.

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
Copy Markdown
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.

Comment thread packages/typespec-ts/src/utils/emitUtil.ts
@jeremymeng jeremymeng force-pushed the standardize-copyright-header branch from fc2f4d9 to 5b06884 Compare August 28, 2024 23:29
@jeremymeng jeremymeng merged commit 6aef1c5 into Azure:main Aug 29, 2024
@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