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 src/fosslight_source/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def create_report_file(_start_time, scanned_result, license_list, selected_scann
output_file = f"fosslight_report_src_{_start_time}"

if scanned_result:
scanned_result = sorted(scanned_result, key=lambda row: (''.join(row.licenses)))
scanned_result = sorted(scanned_result, key=lambda row: (row.exclude, row.file))

if selected_scanner == 'scancode' or output_extension == _json_ext:
sheet_list[SCANOSS_SHEET_NAME] = [scan_item.get_row_to_print() for scan_item in scanned_result]
Expand Down
12 changes: 12 additions & 0 deletions tests/test_files/test/temp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: Copyright 2022 LG Electronics Inc.
* SPDX-License-Identifier: Apache-2.0
* DownloadLocation: https://github.com/browserify/acorn-node
*/
#include <iostream>

int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}