From 040f989006e9cab643538bb6e1e309f002e8f3a3 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 12 Nov 2021 08:58:58 -0800 Subject: [PATCH] Add some missing licenses Signed-off-by: Joshua Li --- .../plugin-metadata/plugin-security.policy | 4 ++++ sql-cli/tests/conftest.py | 4 ++++ workbench/public/components/Header/Header.tsx | 4 ++++ workbench/tslint.yaml | 19 +++---------------- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/plugin/src/main/plugin-metadata/plugin-security.policy b/plugin/src/main/plugin-metadata/plugin-security.policy index 8c42897669..1c2403f4ff 100644 --- a/plugin/src/main/plugin-metadata/plugin-security.policy +++ b/plugin/src/main/plugin-metadata/plugin-security.policy @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ grant { // For Spring IOC diff --git a/sql-cli/tests/conftest.py b/sql-cli/tests/conftest.py index bad261eeb6..ff9faec284 100644 --- a/sql-cli/tests/conftest.py +++ b/sql-cli/tests/conftest.py @@ -3,6 +3,10 @@ SPDX-License-Identifier: Apache-2.0 """ +""" +We can define the fixture functions in this file to make them +accessible across multiple test modules. +""" import os import pytest diff --git a/workbench/public/components/Header/Header.tsx b/workbench/public/components/Header/Header.tsx index 821d3b4aa6..beb82c1f2a 100644 --- a/workbench/public/components/Header/Header.tsx +++ b/workbench/public/components/Header/Header.tsx @@ -1,3 +1,7 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ import React from 'react'; import { EuiHorizontalRule } from '@elastic/eui'; diff --git a/workbench/tslint.yaml b/workbench/tslint.yaml index a1eaacdb39..89fec1d0af 100644 --- a/workbench/tslint.yaml +++ b/workbench/tslint.yaml @@ -16,22 +16,9 @@ rules: - true - |- /* - * SPDX-License-Identifier: Apache-2.0 - * - * The OpenSearch Contributors require contributions made to - * this file be licensed under the Apache-2.0 license or a - * compatible open source license. - */ - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ disallow-license-header: - true - |-