{"id":19882176,"url":"https://github.com/codeclimate/codeclimate-ss-analyzer-wrapper","last_synced_at":"2025-09-10T20:43:51.077Z","repository":{"id":26483289,"uuid":"108994425","full_name":"codeclimate/codeclimate-ss-analyzer-wrapper","owner":"codeclimate","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-01T12:22:58.000Z","size":453,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-02T14:37:20.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeclimate.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}},"created_at":"2017-10-31T12:45:43.000Z","updated_at":"2020-05-26T13:19:21.000Z","dependencies_parsed_at":"2022-07-27T08:18:47.115Z","dependency_job_id":null,"html_url":"https://github.com/codeclimate/codeclimate-ss-analyzer-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeclimate/codeclimate-ss-analyzer-wrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fcodeclimate-ss-analyzer-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fcodeclimate-ss-analyzer-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fcodeclimate-ss-analyzer-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fcodeclimate-ss-analyzer-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeclimate","download_url":"https://codeload.github.com/codeclimate/codeclimate-ss-analyzer-wrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeclimate%2Fcodeclimate-ss-analyzer-wrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274525379,"owners_count":25302136,"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-10T02:00:12.551Z","response_time":83,"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":[],"created_at":"2024-11-12T17:16:37.090Z","updated_at":"2025-09-10T20:43:51.032Z","avatar_url":"https://github.com/codeclimate.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Climate Wrapper for SonarSource Analyzers\n\n[![CircleCI](https://circleci.com/gh/codeclimate/codeclimate-ss-analyzer-wrapper.svg?style=svg)](https://circleci.com/gh/codeclimate/codeclimate-ss-analyzer-wrapper)\n[![Maintainability](https://api.codeclimate.com/v1/badges/fcbade685d34b8dbb648/maintainability)](https://codeclimate.com/github/codeclimate/sonar-wrapper/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/fcbade685d34b8dbb648/test_coverage)](https://codeclimate.com/github/codeclimate/sonar-wrapper/test_coverage)\n\n`codeclimate-ss-analyzer-wrapper` is the base library for SonarSource based engines.\nIt wraps [Sonarlint](http://www.sonarlint.org) in standalone mode.\n\n## Tests\n```\nmake test\n```\n\n## Usage\n\nYou can use the [codeclimate-sonar-php](https://github.com/codeclimate/codeclimate-sonar-php) repo as an example for building a new sonar based engine.\nThe important aspects are listed below:\n\n1. Use this wrapper lib. Make sure your `build.gradle` has the following entries:\n```groovy\nrepositories {\n  jcenter()\n  maven { url 'https://jitpack.io' }\n}\n\ndependencies {\n  compile(\"com.github.codeclimate:sonar-wrapper:master-SNAPSHOT\")\n}\n```\n2.  Add the plugin lib and make sure it is copied to the `build/plugins` directory as part of the `build` task:\n```groovy\ntask copyPlugins(type: Copy) {\n  into \"${buildDir}/plugins\"\n  from configurations.testCompile\n  include \"sonar-*-plugin*.jar\"\n}\n\nbuild.dependsOn(copyPlugins)\n\ndependencies {\n  // ...\n  compile(\"org.sonarsource.php:sonar-php-plugin:2.10.0.2087\")\n}\n```\n3. Running: The wrapper overrides a few classes from the sonar libraries which makes classpath order something very important to pay attention:\n`bin/codeclimate-sonar`:\n```sh\n#!/usr/bin/env sh\n\nBUILD_DIR=$(dirname $0)\nAPP=$(find ${BUILD_DIR}/libs -name \"codeclimate-sonar-php.jar\" | head -n1)\nWRAPPER=$(find ${BUILD_DIR}/libs -name \"sonar-wrapper*.jar\" | head -n1)\nCORE=$(find ${BUILD_DIR}/libs -name \"sonarlint-core*.jar\" -or -name \"sonarlint-client-api*.jar\" | tr \"\\n\" \":\")\nLIBS=$(find ${BUILD_DIR}/libs -name \"*.jar\" | tr \"\\n\" \":\")\n\nCODE_DIR=$1; shift\nCONFIG_FILE=$1; shift\n\njava \\\n  -noverify \\\n  -cp ${APP}:${WRAPPER}:${CORE}:${LIBS} \\\n  -Djava.awt.headless=true  \\\n  -Dsonarlint.home=\"${BUILD_DIR}\"  \\\n  -Dproject.home=\"${CODE_DIR}\"  \\\n  -Dconfig=\"${CONFIG_FILE}\"  \\\n  -Dorg.freemarker.loggerLibrary=none  \\\n  cc.App $@\n```\n`bin/codeclimate-sonar /code /config.json`\n\n## Sonar Documentation\n\nhttp://www.sonarlint.org/commandline\n\nhttp://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner\n\nIssue Tracker: http://jira.sonarsource.com/browse/SLCLI\n\n## Copyright\n\nThis repository is maintained by CodeClimate. It uses [SonarLint](http://www.sonarlint.org/commandline), which is a SonarSource product. This is not endorsed by SonarSource.\n\nSee [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeclimate%2Fcodeclimate-ss-analyzer-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeclimate%2Fcodeclimate-ss-analyzer-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeclimate%2Fcodeclimate-ss-analyzer-wrapper/lists"}