aboutcode-org / aboutcode-org/scancode-toolkit

proprietary license false positive

Open
#3,621 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

### Description

I have some C# code here (that I cannot share) where a license is detected where there is none. This is a part of the code (method name was changed, because no one seriously would use `blah` as a method name, right???):

```
return license;
}

private void blah(object sender, EventArgs e)

```

This is the rule that triggered it:

```
"matches": [
{
"score": 100.0,
"start_line": 292,
"end_line": 295,
"matched_length": 2,
"match_coverage": 100.0,
"matcher": "2-aho",
"license_expression": "proprietary-license",
"rule_identifier": "proprietary-license_553.RULE",
"rule_relevance": 100,
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/proprietary-license_553.RULE",
"matched_text": "license;\r\n }\r\n\r\n private"
}
],
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.