From 62d84ecc9b98d3ce346aab456cec90cb93c29fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Armin=20T=C3=A4nzer?= Date: Wed, 28 Dec 2022 11:55:19 +0100 Subject: [PATCH] [review] add copyright MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Armin Tänzer --- src/validation/actor_validator.py | 11 +++++++++++ src/validation/annotation_validator.py | 11 +++++++++++ src/validation/checksum_validator.py | 11 +++++++++++ src/validation/creation_info_validator.py | 11 +++++++++++ src/validation/document_validator.py | 11 +++++++++++ src/validation/external_document_ref_validator.py | 11 +++++++++++ src/validation/external_package_ref_validator.py | 11 +++++++++++ src/validation/extracted_licensing_info_validator.py | 11 +++++++++++ src/validation/file_validator.py | 11 +++++++++++ src/validation/license_expression_validator.py | 11 +++++++++++ src/validation/package_validator.py | 11 +++++++++++ src/validation/package_verification_code_validator.py | 11 +++++++++++ src/validation/relationship_validator.py | 11 +++++++++++ src/validation/snippet_validator.py | 11 +++++++++++ src/validation/spdx_id_validators.py | 11 +++++++++++ src/validation/uri_validators.py | 11 +++++++++++ src/validation/validation_message.py | 11 +++++++++++ tests/valid_defaults.py | 11 +++++++++++ tests/validation/test_actor_validator.py | 11 +++++++++++ tests/validation/test_annotation_validator.py | 11 +++++++++++ tests/validation/test_checksum_validator.py | 11 +++++++++++ tests/validation/test_creation_info_validator.py | 11 +++++++++++ tests/validation/test_document_validator.py | 11 +++++++++++ .../test_external_document_ref_validator.py | 11 +++++++++++ .../validation/test_external_package_ref_validator.py | 11 +++++++++++ .../test_extracted_licensing_info_validator.py | 11 +++++++++++ tests/validation/test_file_validator.py | 11 +++++++++++ tests/validation/test_license_expression_validator.py | 11 +++++++++++ tests/validation/test_package_validator.py | 11 +++++++++++ tests/validation/test_relationship_validator.py | 11 +++++++++++ tests/validation/test_snippet_validator.py | 11 +++++++++++ tests/validation/test_spdx_id_validators.py | 11 +++++++++++ tests/validation/test_uri_validators.py | 11 +++++++++++ 33 files changed, 363 insertions(+) diff --git a/src/validation/actor_validator.py b/src/validation/actor_validator.py index f08d2231e..99f82223b 100644 --- a/src/validation/actor_validator.py +++ b/src/validation/actor_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.actor import Actor, ActorType diff --git a/src/validation/annotation_validator.py b/src/validation/annotation_validator.py index c806273c7..89eea269f 100644 --- a/src/validation/annotation_validator.py +++ b/src/validation/annotation_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.annotation import Annotation diff --git a/src/validation/checksum_validator.py b/src/validation/checksum_validator.py index 0773a1a63..12119f787 100644 --- a/src/validation/checksum_validator.py +++ b/src/validation/checksum_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import re from typing import List, Dict diff --git a/src/validation/creation_info_validator.py b/src/validation/creation_info_validator.py index b9f59552c..5f7a42783 100644 --- a/src/validation/creation_info_validator.py +++ b/src/validation/creation_info_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import re from typing import List diff --git a/src/validation/document_validator.py b/src/validation/document_validator.py index b10255a1b..a0a151e21 100644 --- a/src/validation/document_validator.py +++ b/src/validation/document_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.document import Document diff --git a/src/validation/external_document_ref_validator.py b/src/validation/external_document_ref_validator.py index db72e2703..5a10db208 100644 --- a/src/validation/external_document_ref_validator.py +++ b/src/validation/external_document_ref_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.external_document_ref import ExternalDocumentRef diff --git a/src/validation/external_package_ref_validator.py b/src/validation/external_package_ref_validator.py index 2fee1f001..29aaf51b9 100644 --- a/src/validation/external_package_ref_validator.py +++ b/src/validation/external_package_ref_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.package import ExternalPackageRef diff --git a/src/validation/extracted_licensing_info_validator.py b/src/validation/extracted_licensing_info_validator.py index 5d7b5f4aa..7a94b3aec 100644 --- a/src/validation/extracted_licensing_info_validator.py +++ b/src/validation/extracted_licensing_info_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import re from typing import List, Optional diff --git a/src/validation/file_validator.py b/src/validation/file_validator.py index 77c45c59e..54560de07 100644 --- a/src/validation/file_validator.py +++ b/src/validation/file_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List, Optional from src.model.checksum import ChecksumAlgorithm diff --git a/src/validation/license_expression_validator.py b/src/validation/license_expression_validator.py index 1d2b9c5ac..a478fe68b 100644 --- a/src/validation/license_expression_validator.py +++ b/src/validation/license_expression_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List, Optional, Union from src.model.license_expression import LicenseExpression diff --git a/src/validation/package_validator.py b/src/validation/package_validator.py index 2feeb6eca..dfd5a2a15 100644 --- a/src/validation/package_validator.py +++ b/src/validation/package_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List, Optional from src.model.document import Document diff --git a/src/validation/package_verification_code_validator.py b/src/validation/package_verification_code_validator.py index 652bb5ed6..ccf216fb3 100644 --- a/src/validation/package_verification_code_validator.py +++ b/src/validation/package_verification_code_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import re from typing import List diff --git a/src/validation/relationship_validator.py b/src/validation/relationship_validator.py index a1ce9ea77..a9292253d 100644 --- a/src/validation/relationship_validator.py +++ b/src/validation/relationship_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.document import Document diff --git a/src/validation/snippet_validator.py b/src/validation/snippet_validator.py index 715355932..1b127addb 100644 --- a/src/validation/snippet_validator.py +++ b/src/validation/snippet_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List, Optional from src.model.document import Document diff --git a/src/validation/spdx_id_validators.py b/src/validation/spdx_id_validators.py index 189033c3a..30e90be78 100644 --- a/src/validation/spdx_id_validators.py +++ b/src/validation/spdx_id_validators.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import re from typing import List diff --git a/src/validation/uri_validators.py b/src/validation/uri_validators.py index c28915b8b..a43ef2e9a 100644 --- a/src/validation/uri_validators.py +++ b/src/validation/uri_validators.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import re from typing import List diff --git a/src/validation/validation_message.py b/src/validation/validation_message.py index c90e7a71e..1407ffcc7 100644 --- a/src/validation/validation_message.py +++ b/src/validation/validation_message.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from dataclasses import dataclass from enum import Enum, auto from typing import Optional, Any diff --git a/tests/valid_defaults.py b/tests/valid_defaults.py index 114c03ad4..a800193f0 100644 --- a/tests/valid_defaults.py +++ b/tests/valid_defaults.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from datetime import datetime from src.model.actor import Actor, ActorType diff --git a/tests/validation/test_actor_validator.py b/tests/validation/test_actor_validator.py index 29a37e825..4215fe7e5 100644 --- a/tests/validation/test_actor_validator.py +++ b/tests/validation/test_actor_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_annotation_validator.py b/tests/validation/test_annotation_validator.py index 8071f6790..885693d8b 100644 --- a/tests/validation/test_annotation_validator.py +++ b/tests/validation/test_annotation_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from datetime import datetime from typing import List diff --git a/tests/validation/test_checksum_validator.py b/tests/validation/test_checksum_validator.py index 461d14305..661fb110a 100644 --- a/tests/validation/test_checksum_validator.py +++ b/tests/validation/test_checksum_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_creation_info_validator.py b/tests/validation/test_creation_info_validator.py index 58ffb4132..fb9cc86e9 100644 --- a/tests/validation/test_creation_info_validator.py +++ b/tests/validation/test_creation_info_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from datetime import datetime from typing import List diff --git a/tests/validation/test_document_validator.py b/tests/validation/test_document_validator.py index fc8fec5ca..be66477c0 100644 --- a/tests/validation/test_document_validator.py +++ b/tests/validation/test_document_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.document import Document diff --git a/tests/validation/test_external_document_ref_validator.py b/tests/validation/test_external_document_ref_validator.py index 95976c00c..1c2e5cf52 100644 --- a/tests/validation/test_external_document_ref_validator.py +++ b/tests/validation/test_external_document_ref_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_external_package_ref_validator.py b/tests/validation/test_external_package_ref_validator.py index 09b478f7d..7b94e84e6 100644 --- a/tests/validation/test_external_package_ref_validator.py +++ b/tests/validation/test_external_package_ref_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_extracted_licensing_info_validator.py b/tests/validation/test_extracted_licensing_info_validator.py index eae417d2a..25047cca5 100644 --- a/tests/validation/test_extracted_licensing_info_validator.py +++ b/tests/validation/test_extracted_licensing_info_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_file_validator.py b/tests/validation/test_file_validator.py index 60831f331..fda40ab36 100644 --- a/tests/validation/test_file_validator.py +++ b/tests/validation/test_file_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_license_expression_validator.py b/tests/validation/test_license_expression_validator.py index d917be7d5..a8f334a3f 100644 --- a/tests/validation/test_license_expression_validator.py +++ b/tests/validation/test_license_expression_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List from src.model.license_expression import LicenseExpression diff --git a/tests/validation/test_package_validator.py b/tests/validation/test_package_validator.py index 98361ea20..8c81c6739 100644 --- a/tests/validation/test_package_validator.py +++ b/tests/validation/test_package_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from datetime import datetime from typing import List diff --git a/tests/validation/test_relationship_validator.py b/tests/validation/test_relationship_validator.py index d53d9fee3..1d56bd6af 100644 --- a/tests/validation/test_relationship_validator.py +++ b/tests/validation/test_relationship_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_snippet_validator.py b/tests/validation/test_snippet_validator.py index 60670bdc3..9ceb675f6 100644 --- a/tests/validation/test_snippet_validator.py +++ b/tests/validation/test_snippet_validator.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + from typing import List import pytest diff --git a/tests/validation/test_spdx_id_validators.py b/tests/validation/test_spdx_id_validators.py index 69692be70..5358305de 100644 --- a/tests/validation/test_spdx_id_validators.py +++ b/tests/validation/test_spdx_id_validators.py @@ -1 +1,12 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + # TODO: https://github.com/spdx/tools-python/issues/376 diff --git a/tests/validation/test_uri_validators.py b/tests/validation/test_uri_validators.py index ca1403493..704dbbea0 100644 --- a/tests/validation/test_uri_validators.py +++ b/tests/validation/test_uri_validators.py @@ -1,3 +1,14 @@ +# Copyright (c) 2022 spdx contributors +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# 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. + import pytest from src.validation.uri_validators import validate_url, validate_download_location, validate_uri