Skip to content

Copyright detection range is sometime approximative #2446

Description

@tdruez

input.txt:

Files: src/macos/src/macos_main.cpp
Copyright: 2001, Eric Lavigne
License: curl

Files: docs/examples/rtsp.c
Copyright: 2011, Jim Hollinger

scancode -ce --json-pp - input.txt

Current results:

"copyrights": [
    {
      "value": "Copyright 2001, Eric Lavigne",
      "start_line": 2,
      "end_line": 3
    },
    {
      "value": "Copyright 2011, Jim Hollinger",
      "start_line": 6,
      "end_line": 6
    }
],

Expected results:

"copyrights": [
    {
      "value": "Copyright 2001, Eric Lavigne",
      "start_line": 2,
      "end_line": 2
    },
    {
      "value": "Copyright 2011, Jim Hollinger",
      "start_line": 6,
      "end_line": 6
    }
],

The first copyright is detected on line 2 to 3, while only present on line 2, where the second copyright is properly detected on line 6 only.

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