Description
tlint is yet another linting tool to check if Trento checks are written properly. By now, it works as a command line tool. The purpose of this hackweek project is to have a web server available to lint the checks. Something like https://www.yamllint.com/
Goals
Implement the web server to run locally.
Resources
Results
After playing with wasm (web assembly) and rust, I got a working deliverable that kind of make what I initially wanted. Creating a low size wasm is something I couldn't do. It sizes ~2.5MB now, which is a lot for a webpage that should be light. In the other hand, using rust distributed in SUSE repositories has been a failure. I couldn't compile wasm code, as the compiler complains that SUSE rust and wasm rust have different versions, even though they have the same, including the sha.
Here the code: https://github.com/trento-project/tlint/tree/www
A container image is already available in Github packages repository. To run your own tlint-web
:
docker run -p 8080:80 ghcr.io/trento-project/tlint-web:latest
And open your browser in http://localhost:8080
Comments
Be the first to comment!
Similar Projects
This project is one of its kind!