Skip to content

Copyright includes SPDX Tag "SPDX-FileCopyrightText" #2702

Description

@soimkim

Description

When scanning the SPDX format copyright text, the SPDX tag, "SPDX-FileCopyrightText", is also output.

How To Reproduce

  • File to scan
#
# SPDX-FileCopyrightText: Copyright 2019-2021 Test Inc.
# SPDX-FileCopyrightText: Copyright (c) SOIM
#
# SPDX-License-Identifier: GPL-3.0

import os
...
  • ScanCode result
"copyrights": [
        {
          "value": "Copyright 2019-2021 Test Inc. SPDX-FileCopyrightText",
          "start_line": 2,
          "end_line": 4
        },
        {
          "value": "Copyright (c) SOIM",
          "start_line": 2,
          "end_line": 4
        }
      ],
  • Expected result
"copyrights": [
        {
          "value": "Copyright 2019-2021 Test Inc.",
          "start_line": 2,
          "end_line": 4
        },
        {
          "value": "Copyright (c) SOIM",
          "start_line": 2,
          "end_line": 4
        }
      ],

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? Ubuntu 18.04
  • What version of scancode-toolkit was used to generate the scan file? scancode-toolkit==21.2.25
  • What installation method was used to install/run scancode? pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions