Reports in HTML format
The Codee --html <output>
option allows you to generate a project's
Codee report directly in HTML format, making it easier to view the results in a
user-friendly way.
Before following this guide, we recommend checking out our quickstart guides to get familiar with all the other available Codee commands.
Getting ready
For this demonstration, we will use the Fortran implementation of MATMUL. Start by cloning the repository:
git clone https://github.com/codee-com/codee-demos.git
Firstly, navigate to the source code directory:
- Linux
- Windows
cd codee-demos/Fortran/MATMUL
cd codee-demos\Fortran\MATMUL
How to generate the HTML report
The first step is to generate the compile_commands.json
file, as explained in our
quickstart guides. For this, we will use bear
as follows:
bear -- make
Once the compile_commands.json
file is generated the creation of the reports
in HTML format is quite simple. For example, for the screening
report:
codee screening -p compile_commands.json --html html-output
Note: the compilation database entries will be analyzed in the order necessary to meet module dependencies between Fortran source files.
Configuration file 'compile_commands.json' successfully parsed.
Date: 2025-05-21 Codee version: 2025.2.3 License type: Modern
Performing Fortran module dependency analysis... Done
[1/3] matmul.f90 ... Done
[2/3] time.f90 ... Done
[3/3] main.f90 ... Done
HTML report completed. It is located at html-output
3 files, 6 functions, 10 loops, 109 LOCs successfully analyzed (21 checkers) and 0 non-analyzed files in 134 ms
The HTML report is now located in the directory specified after the --html
option, in this example, html-output
.