{"repo":"gitricko/sonarless","free":true,"listed":false,"github":"https://github.com/gitricko/sonarless","clone":"git clone https://github.com/gitricko/sonarless.git","description":"SonarQube Scan CLI + GitHub Action without a need of a dedicated hosted SonarQube Server","language":"Shell","stars":50,"topics":["automation","ci","github-actions","pull-requests","sonarqube"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Sonarless v1.4 This developer-friendly CLI and GitHub Action enable SonarQube scanning for your repository without the need for a dedicated hosted SonarQube server. It starts a SonarQube Docker instance, allowing developers to scan code, check results, and generate a JSON metrics file for automation. This ensures you can easily assess and maintain the quality of your code. What's new Please refer to the release page for the latest release notes. Use Sonarless in your Local Dev To install CLI, paste and run the following in a terminal: curl -s \"https://raw.githubusercontent.com/gitricko/sonarless/main/install.sh\" bash To understand CLI sub-commands, just run sonarless help Usually, you only need to know 2 sub-commands - sonarless scan : to start scanning your code in the current directory will be uploaded for scanning. When the scan is done, just login webui into your local personal instance of sonarqube via http://localhost:9234 to get details from SonarQube. The default password for admin is Son@rless123 - sonarless results : to generate sonar-metrics.json metrics file in your current directory To clean up your sonar instance, just run sonarless docker-clean . SonarQube docker instance will be stop and all images removed. This CLI works perfectly with Github CodeSpace GitHub Action Usage Scenarios - Scan all files from git root directory - Scan particular folder from git root directory - Scan code and fail build if metrics is below expectation - Options to change local sonar","default_branch":null,"files":null,"tree":[],"storefront":"/r/gitricko","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gitricko/sonarless/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}