Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/scanoss.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define WFP_LN 4
#define WFP_REC_LN 18

#define SCANOSS_VERSION "5.4.21"
#define SCANOSS_VERSION "5.4.22"

/* Log files */
#define SCAN_LOG "/tmp/scanoss_scan.log"
Expand Down
2 changes: 1 addition & 1 deletion src/match.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ static bool component_hint_date_comparation(component_data_t *a, component_data_
// 7. URL ranking and binary purl matching
// When URL ranking is enabled (rank < COMPONENT_DEFAULT_RANK), use ranking metrics
// Lower rank values indicate higher quality/more authoritative sources
if (b->rank < COMPONENT_DEFAULT_RANK || a->rank < COMPONENT_DEFAULT_RANK)
if (component_rank_max >=0 && (b->rank < COMPONENT_DEFAULT_RANK || a->rank < COMPONENT_DEFAULT_RANK))
{
// 7.1. Binary file to purl matching
// Check if the component's purl matches what would be expected for a binary file
Expand Down
2 changes: 1 addition & 1 deletion src/report.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ bool print_json_match(struct match_data_t * match)
ranking_enabled = true;

printf("\"id\": \"%s\"", matchtypes[match->type]);
if (!match->scan_ower->snippet_adjust_tolerance && match->type == MATCH_SNIPPET)
if (match->type == MATCH_SNIPPET)
printf(",\"hits\": %d", match->hits);

printf(",\"lines\": \"%s\"", match->line_ranges);
Expand Down
Loading