Expand description
Checks that source files have the correct copyright and license header.
The expected header for most file types is:
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Files may start with a shebang (#!) or <!DOCTYPE html> before the
header. A blank line is expected between the shebang and the header.
Files with a non-Microsoft copyright are left alone.
Structsยง
Constantsยง
- CHECKED_
EXTENSIONS ๐ - HEADER_
MIT_ ๐FIRST - HEADER_
MIT_ ๐SECOND
Functionsยง
- comment_
delimiters ๐ - Returns the comment prefix and suffix for a given file extension.