Skip to content

Incorrect copyright detection in JS code. #84

@pombredanne

Description

@pombredanne

See https://raw.githubusercontent.com/SalesforceEng/tough-cookie/master/test/cookie_to_json_test.js
The following are detected and the later two are obviously wrong:

     "copyrights": [
        {
          "statements": [
            "Copyright (c) 2015, Salesforce.com"
          ], 
          "start_line": 2, 
          "end_line": 3
        }, 
        {
          "statements": [
            "(c) assert.equal c.domain, example.com"
          ], 
          "start_line": 62, 
          "end_line": 70
        }, 
        {
          "statements": [
            "(c) assert.equal(c.lastAccessed.getTime(), 2000000000123)"
          ], 
          "start_line": 72, 
          "end_line": 73
        }
      ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions