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.
After running Qodana, navigate to the
report
folder and make sure that theindex.html
file 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 nginxpython2 -m SimpleHTTPServerpython3 -m http.serverphp -S localhost:8000In your browser, navigate to http://localhost:8000 to see the generated report.