{"id":15118890,"url":"https://github.com/Merck/sonar-r-plugin","last_synced_at":"2025-09-28T01:31:13.389Z","repository":{"id":38710923,"uuid":"142319389","full_name":"Merck/sonar-r-plugin","owner":"Merck","description":"Adds support for R language into SonarQube. It uses output from lintr tool which is processed by the plugin and uploaded into SonarQube server.","archived":false,"fork":false,"pushed_at":"2024-03-04T22:33:44.000Z","size":323,"stargazers_count":25,"open_issues_count":9,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-22T17:02:11.502Z","etag":null,"topics":["rlanguage","sonarqube"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Merck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-25T15:29:29.000Z","updated_at":"2025-04-09T08:49:08.000Z","dependencies_parsed_at":"2025-01-18T06:32:02.927Z","dependency_job_id":"69c91b5a-4b28-4893-91c6-ab7a7b036389","html_url":"https://github.com/Merck/sonar-r-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Merck/sonar-r-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fsonar-r-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fsonar-r-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fsonar-r-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fsonar-r-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Merck","download_url":"https://codeload.github.com/Merck/sonar-r-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merck%2Fsonar-r-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277315117,"owners_count":25797567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-27T02:00:08.978Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rlanguage","sonarqube"],"created_at":"2024-09-26T01:53:39.828Z","updated_at":"2025-09-28T01:31:13.377Z","avatar_url":"https://github.com/Merck.png","language":"Java","readme":"Sonar R Plugin\n==============\n[![Build Status](https://app.travis-ci.com/Merck/sonar-r-plugin.svg?branch=master)](https://app.travis-ci.com/Merck/sonar-r-plugin)\n[![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=com.msd.gin.common.sonar:sonar-r-plugin\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=com.msd.gin.common.sonar:sonar-r-plugin)\n\nAdds support for [R language](https://www.r-project.org/) into SonarQube. Currently, it uses output from [lintr tool](https://github.com/jimhester/lintr)\nwhich is processed by the plugin and uploaded into SonarQube server.\n\n![Sample Screenshot](images/sample-screen1.png)\n\nFeatures\n--------\n- reporting issues found by LintR (by processing its output)\n\nPlanned Features\n----------------\n- syntax highlighting\n- code coverage\n- code statistics (e.g. number of lines of code)\n\nExtending SonarQube\n-------------------\n[Developing a plugin on SonarQube official documentation](https://docs.sonarqube.org/latest/extend/developing-plugin/).\n\nRun SonarQube Locally with the Plugin\n-------------------------------------\nInstalled **Java 11** is required to run SonarQube server.\n\n```bash\n# build plugin and put it into SonarQube instance\n./mvnw clean package\n# run SonarQube server\n./sonar-local.sh console\n# wait for message: SonarQube is up\n# stop it by Ctrl-C\n```\nRepeat previous steps for any changes made in the plugin:\n```bash\n./mvnw clean package \u0026\u0026 ./sonar-local.sh console\n```\n\nCheck logs in different terminal session:\n```bash\ntail -f -n 0 ./.sonar/sonarqube-*/logs/*\n```\n\n[Web UI is running here](http://localhost:9000) (admin access defaults: `admin/admin`)\n\nSample Project\n--------------\n[sample-project/README.md](sample-project/README.md)\n\nAdd SonarQube into a Project\n----------------------------\nFollow standard procedure to add SonarQube analysis to existing project:\n[https://docs.sonarqube.org/display/SONAR/Analyzing+Source+Code](https://docs.sonarqube.org/display/SONAR/Analyzing+Source+Code)\n\nIn case the local SonarQube instance should be used, just update SonarQube server URL to `http://localhost:9000`.\n\nFor example in `sonar-project.properties`:\n```properties\nsonar.host.url=http://localhost:9000\n```\n\nRelease Process\n---------------\nScript for the release steps:\n```\n./release.sh\n```\n\nTravis CI build does the release process in Github.\n\nWhat it does:\n- derive release version from current SNAPSHOT in POM\n- create new release branch\n  - commit release version into POM\n  - create tag\n  - push\n- generate new development version by increasing last number\n- checkout master\n  - commit new development version\n  - push\n\n\n\n","funding_links":[],"categories":["Ranked by starred repositories"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMerck%2Fsonar-r-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMerck%2Fsonar-r-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMerck%2Fsonar-r-plugin/lists"}