This project aims to group each and every required tool for ensuring Ruby on Rails development quality.
It currently includes the following ruby tools:
Grab latest image
docker pull ghcr.io/kmmndr/controle-qualite:latest
Then run the following command in your project directory
docker run --rm -it -v $(pwd):/srv/app:ro ghcr.io/kmmndr/controle-qualite:latest controle-qualite.mk check-ruby
Or simply create a controle-qualite
shell script
#!/bin/sh
docker run --rm -it -v $(pwd):/srv/app:ro ghcr.io/kmmndr/controle-qualite:latest controle-qualite.mk $@
Adding controle-qualite
to gitlab-ci.yml is staitforward:
.controle_qualite: &controle_qualite
image: registry/controle-qualite:latest
stage: pre-test
pre-test:check-tools:
<<: *controle_qualite
script:
- controle-qualite.mk self-check
allow_failure: true
pre-test:lint:rubocop:
<<: *controle_qualite
script:
- controle-qualite.mk rubocop
pre-test:audit:bundle-audit:
<<: *controle_qualite
script:
- controle-qualite.mk bundle-audit
allow_failure: true
pre-test:audit:brakeman:
<<: *controle_qualite
script:
- controle-qualite.mk brakeman
allow_failure: true
Bug reports and pull requests are welcome on GitHub at https://github.com/kmmndr/controle-qualite.
This tool is available as open source under the terms of the MIT License.