Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 994 Bytes

github-source-headers.md

File metadata and controls

52 lines (38 loc) · 994 Bytes

github-source-headers

Requires copyright headers in every source file.

Specifically, a source file is defined as any TypeScript file and the expected header text is as follows:

Copyright (c) Microsoft Corporation.
Licensed under the MIT license.

This rule is fixable using the --fix option.

Examples

Good

These must be located at the top of every source file.

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// Other comment text here.

Bad

// Copyright (c) Microsoft Corporation.
class Class {
  /* source code here */
}
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.