Skip to content

Commit b125521

Browse files
authored
feat: tslint rules for license headers (open-telemetry#258)
1 parent 12e0455 commit b125521

File tree

166 files changed

+282
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+282
-154
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"@commitlint/cli": "^8.1.0",
3434
"@commitlint/config-conventional": "^8.1.0",
3535
"husky": "^3.0.1",
36+
"gts": "^1.0.0",
3637
"lerna": "^3.13.4",
3738
"typescript": "^3.4.5"
3839
},

packages/opentelemetry-basic-tracer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"gts": "^1.0.0",
4545
"mocha": "^6.1.0",
4646
"nyc": "^14.1.1",
47+
"tslint-microsoft-contrib": "^6.2.0",
4748
"ts-mocha": "^6.0.0",
4849
"ts-node": "^8.0.0",
4950
"typescript": "^3.4.5"

packages/opentelemetry-basic-tracer/src/BasicTracer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/MultiSpanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/NoopSpanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/Span.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/SpanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/export/ExportResult.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/export/InMemorySpanExporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/export/ReadableSpan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/export/SimpleSpanProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/export/SpanExporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

packages/opentelemetry-basic-tracer/src/utility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/test/BasicTracer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/test/MultiSpanProcessor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/test/Span.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/test/export/InMemorySpanExporter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-basic-tracer/test/export/SimpleSpanProcessor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"],
3+
"extends": "../../tslint.base.js"
4+
}

packages/opentelemetry-core/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"karma-webpack": "^4.0.2",
5757
"mocha": "^6.1.0",
5858
"nyc": "^14.1.1",
59+
"tslint-microsoft-contrib": "^6.2.0",
5960
"ts-loader": "^6.0.4",
6061
"ts-mocha": "^6.0.0",
6162
"ts-node": "^8.0.0",

packages/opentelemetry-core/src/common/ConsoleLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/common/NoopLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/common/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/context/propagation/B3Format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/context/propagation/BinaryTraceContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/context/propagation/HttpTraceContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/context/propagation/NoopBinaryFormat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/context/propagation/NoopHttpTextFormat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

packages/opentelemetry-core/src/internal/validators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

packages/opentelemetry-core/src/platform/browser/id.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

packages/opentelemetry-core/src/platform/browser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/platform/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

packages/opentelemetry-core/src/platform/node/id.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/platform/node/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/resources/Resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/NoRecordingSpan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/NoopSpan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/NoopTracer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/TraceState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/TracerDelegate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/globaltracer-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/instrumentation/BasePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/sampler/ProbabilitySampler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/src/trace/spancontext-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { SpanContext, TraceOptions } from '@opentelemetry/types';
2-
3-
/**
1+
/*!
42
* Copyright 2019, OpenTelemetry Authors
53
*
64
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +14,8 @@ import { SpanContext, TraceOptions } from '@opentelemetry/types';
1614
* limitations under the License.
1715
*/
1816

17+
import { SpanContext, TraceOptions } from '@opentelemetry/types';
18+
1919
export const INVALID_SPANID = '0';
2020
export const INVALID_TRACEID = '0';
2121
export const INVALID_SPAN_CONTEXT: SpanContext = {

packages/opentelemetry-core/test/common/ConsoleLogger.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/test/context/B3Format.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/test/context/BinaryTraceContext.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/test/context/HttpTraceContext.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");

packages/opentelemetry-core/test/index-webpack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/**
1+
/*!
22
* Copyright 2019, OpenTelemetry Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)