Qodana 2023.1 Help

Open an HTML report

When you run Qodana with the --show-report option, it starts a web server for immediate browsing the results.

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
    python2 -m SimpleHTTPServer
    python3 -m http.server
    php -S localhost:8000
  3. In your browser, navigate to http://localhost:8000 to see the generated report.

Last modified: 01 February 2023