Skip to content

Commit 02d916a

Browse files
authored
Clean up licensing (#460)
1 parent eb91504 commit 02d916a

33 files changed

+138
-6
lines changed

.eslintrc.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"parser": "@typescript-eslint/parser",
33
"plugins": [
4-
"@typescript-eslint"
4+
"@typescript-eslint",
5+
"header"
56
],
67
"parserOptions": {
78
"project": "tsconfig.json",
@@ -14,6 +15,15 @@
1415
"plugin:prettier/recommended"
1516
],
1617
"rules": {
18+
"header/header": [
19+
2,
20+
"line",
21+
[
22+
" Copyright (c) .NET Foundation. All rights reserved.",
23+
" Licensed under the MIT License."
24+
],
25+
2
26+
],
1727
"@typescript-eslint/ban-ts-comment": "off",
1828
"@typescript-eslint/ban-types": "off",
1929
"@typescript-eslint/explicit-module-boundary-types": "off",

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"chai": "^4.2.0",
2121
"chai-as-promised": "^7.1.1",
2222
"eslint-config-prettier": "^8.3.0",
23+
"eslint-plugin-header": "^3.1.1",
2324
"eslint-plugin-prettier": "^4.0.0",
2425
"eslint": "^7.32.0",
2526
"husky": "^7.0.2",

src/Context.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import {
25
BindingDefinition,
36
Context,

src/FunctionInfo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import { AzureFunctionsRpcMessages as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';
25
import { toRpcHttp, toTypedData } from './converters';
36

src/FunctionLoader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import * as url from 'url';
25
import { isFunction, isObject } from 'util';
36
import { AzureFunctionsRpcMessages as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';

src/GrpcService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import * as grpc from 'grpc';
25
import * as protobuf from 'protobufjs';
36
// import protobufjs json descriptor

src/Worker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import * as parseArgs from 'minimist';
25
import { AzureFunctionsRpcMessages as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';
36
import { FunctionLoader } from './FunctionLoader';

src/WorkerChannel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import { Context } from '@azure/functions';
25
import { format, isFunction } from 'util';
36
import { AzureFunctionsRpcMessages as rpc } from '../azure-functions-language-worker-protobuf/src/rpc';

src/augmenters/InvocationRequestAugmenters.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
3+
14
import { AzureFunctionsRpcMessages as rpc } from '../../azure-functions-language-worker-protobuf/src/rpc';
25

36
/**

0 commit comments

Comments
 (0)