Commit 7937593
committed
Add new phrase for 'extra-words` in rules
Add new phrases like `extra_phrase` this is special for extra-words.
This phrase is represented in the format [[n]], where n indicates the maximum number of extra-words allowed at that position in the rule.
If extra-words appear at the correct position and their count does not exceed the allowed limit `n`, then the score is increased to `100`.
Signed-off-by: Alok Kumar <[email protected]>1 parent 008c7d2 commit 7937593
File tree
6 files changed
+17
-27
lines changed- src/licensedcode
- data/rules
- tests/licensedcode
- data/plugin_license/extra-words
6 files changed
+17
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| |||
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | | - | |
| 1107 | + | |
1108 | 1108 | | |
1109 | 1109 | | |
1110 | | - | |
| 1110 | + | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
| 1113 | + | |
1118 | 1114 | | |
1119 | 1115 | | |
1120 | 1116 | | |
1121 | 1117 | | |
1122 | 1118 | | |
1123 | 1119 | | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | 1120 | | |
1128 | 1121 | | |
1129 | | - | |
| 1122 | + | |
| 1123 | + | |
1130 | 1124 | | |
| 1125 | + | |
| 1126 | + | |
1131 | 1127 | | |
1132 | 1128 | | |
1133 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
2337 | | - | |
2338 | | - | |
2339 | | - | |
2340 | 2337 | | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
| 2338 | + | |
2344 | 2339 | | |
2345 | 2340 | | |
2346 | 2341 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 57 | + | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
619 | | - | |
| 619 | + | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
0 commit comments