Skip to content

Does not detect all author names in Cargo.toml #1424

@ritiek

Description

@ritiek

Description

Hi, I ran scancode to detect copyright information but it does not correctly detect authors from Cargo.toml file (which get used in Rust crates). For example:

$ wget https://raw.githubusercontent.com/rust-lang/rust-clippy/master/Cargo.toml
$ scancode Cargo.toml --copyright --json-pp cargo.json
$ cat cargo.json
{
  "headers": [
    {
      "tool_name": "scancode-toolkit",
      "tool_version": "3.0.2.post331.45bbafd17",
      "options": {
        "input": "Cargo.toml",
        "--copyright": true,
        "--json-pp": "cargo.json"
      },
      "notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
      "start_timestamp": "2019-03-07T064943.463630",
      "end_timestamp": "2019-03-07T064943.891931",
      "message": null,
      "errors": [],
      "extra_data": {
        "files_count": 1
      }
    }
  ],
  "files": [
    {
      "path": "Cargo.toml",
      "type": "file",
      "holders": [],
      "copyrights": [],
      "authors": [
        {
          "value": "Manish Goregaokar <[email protected]> , Andre Bogus <[email protected]>",
          "start_line": 4,
          "end_line": 6
        }
      ],
      "scan_errors": []
    }
  ]
}

Here it displays only 2 authors:

"Manish Goregaokar <[email protected]> , Andre Bogus <[email protected]>"

where as there are 5 authors mentioned in the acutal Cargo.toml:

	"Manish Goregaokar <[email protected]>",
	"Andre Bogus <[email protected]>",
	"Georg Brandl <[email protected]>",
	"Martin Carton <[email protected]>",
	"Oliver Schneider <[email protected]>"

System configuration

  • What OS are you running on?
    Linux
  • What version of scancode-toolkit was used to generate the scan file?
$ scancode --version
ScanCode version 3.0.2.post331.45bbafd17
  • What installation method was used to install/run scancode?
    source (45bbafd)

If you guys have any ideas, I'd be glad to fix this myself. :)

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