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

tlint

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

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 24

Activity

  • about 1 month ago: xarbulu started this project.
  • about 1 month ago: xarbulu originated this project.

  • Comments

    Be the first to comment!

    Similar Projects

    This project is one of its kind!