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
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.
After running Qodana, navigate to the
reportfolder and make sure that the
index.htmlfile is present there.
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.