Qodana 2024.1 Help

Open an HTML report

You can open HTML-formatted Qodana reports using JetBrains IDEs and shell commands.

Starting from version 2023.2 of Qodana, you can open HTML reports using IntelliJ IDEA, PhpStorm, WebStorm, Rider, GoLand, PyCharm, and Rider as explained in the Qodana report overview section.

In this case, your IDE needs to be installed via JetBrains Toolbox App.

When you run Qodana with the --save-report option, it stores an HTML version of the report in /data/results/report. This directory is typically mounted via Docker to let you view the HTML report later, independently of running Qodana. Due to JavaScript security restrictions, you cannot browse the HTML report by double-clicking the index.html file. Instead, the HTML report needs to be served via a web server, and you can run the Dockerized version of nginx, or invoke the Python or PHP built-in web servers as shown below.

  1. After running Qodana, navigate to the report folder and make sure that the index.html file is present there.

  2. Serve the report using the web server of your choice:

    docker run -it --rm -p 8000:80 \ -v $(pwd):/usr/share/nginx/html nginx

    In your browser, navigate to http://localhost:8000 to see the generated report.

    python2 -m SimpleHTTPServer

    In your browser, navigate to http://localhost:8000 to see the generated report.

    python3 -m http.server

    In your browser, navigate to http://localhost:8000 to see the generated report.

    php -S localhost:8000

    In your browser, navigate to http://localhost:8000 to see the generated report.

Last modified: 20 June 2024