Skip to content

Copyright scanner seems to include too much text #2700

Description

@sutula

Description

In the case below, the copyright scanner indicates that the copyright is three lines long. From inspection, it seems that it is only one line. I don't know exactly what terminates a copyright, but it seems like end-of-line should be significant.

How To Reproduce

A scan of list.rb yields the following:

"copyrights": [
{
"value": "Copyright (c) 2007-2010 Sharon Rosner, Wayne E. Seguin, Aman Gupta, Adrian Madrid, Jeremy Evans module List Set",
"start_line": 51,
"end_line": 53
}
],

For ease of viewing, you can see the detected copyright in context here.

scancode --json-pp ../scancode.json --copyright .

This was found on: Debian Linux, python 3.7.3, scancode-toolkit 21.8.4, installed from download of released Linux tar archive

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