{"id":19359854,"url":"https://github.com/codacy/codacy-roslyn","last_synced_at":"2026-04-08T11:01:23.515Z","repository":{"id":74805194,"uuid":"327970538","full_name":"codacy/codacy-roslyn","owner":"codacy","description":"Codacy tool for Unity Roslyn Analyzers","archived":false,"fork":false,"pushed_at":"2025-07-31T09:56:07.000Z","size":113,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-02-07T21:48:29.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codacy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-08T17:33:18.000Z","updated_at":"2025-12-29T13:13:22.000Z","dependencies_parsed_at":"2025-01-06T18:49:38.846Z","dependency_job_id":"bbfdea0b-f9ac-4dd1-8333-2d856616b385","html_url":"https://github.com/codacy/codacy-roslyn","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/codacy/codacy-roslyn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-roslyn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-roslyn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-roslyn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-roslyn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codacy","download_url":"https://codeload.github.com/codacy/codacy-roslyn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-roslyn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31551891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10T07:16:21.081Z","updated_at":"2026-04-08T11:01:23.473Z","avatar_url":"https://github.com/codacy.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codacy-roslyn\n\nA standalone tool that converts [Unity Roslyn Analyzers](https://github.com/microsoft/Microsoft.Unity.Analyzers)\ndiagnostics to Codacy's format.\n\nIt allows running Unity Roslyn Analyzers either locally or as part of your CI process and then integrating the results into your Codacy workflow. This way, Codacy will present the results coming from Unity Roslyn Analyzers alongside all the other code quality information in the dashboards.\n\n## Usage\n\n### Requirements\n\nTo get your Unity Roslyn Analyzers results into Codacy you'll need to:\n\n-   [Enable Unity Roslyn Analyzers](https://docs.codacy.com/repositories-configure/configuring-code-patterns/) and configure the corresponding code patterns on your repository **Code patterns** page\n-   Enable the setting **Run analysis through build server** on your repository **Settings**, tab **General**, **Repository analysis**\n-   Obtain a [Project API token](https://docs.codacy.com/codacy-api/api-tokens/#project-api-tokens)\n-   Download [codacy-roslyn](https://github.com/codacy/codacy-roslyn/releases)\n\n### Sending the results to Codacy\n\nSending the results of running Unity Roslyn Analyzers to Codacy involves the steps below, which you can automate in your CI build process:\n\n1.  Run Unity Roslyn Analyzers using the json formatter\n2.  Convert the Unity Roslyn Analyzers output to a format that the Codacy API accepts\n3.  Send the results to Codacy\n4.  Finally, signal that Codacy can use the sent results and start a new analysis\n\n\u003e When the option **“Run analysis through build server”** is enabled, the Codacy analysis will not start until you call the endpoint `/2.0/commit/{commitUuid}/resultsFinal` signalling that Codacy can use the sent results and start a new analysis.\n\nWith script:\n\n```bash\nexport PROJECT_TOKEN=\"YOUR-TOKEN\"\nexport COMMIT=\"COMMIT-UUID\"\nexport CODACY_URL=\"CODACY-INSTALLATION-URL\" # if not defined https://api.codacy.com will be used\nexport CODACY_ROSLYN_VERSION=0.2.3 # if not defined, latest will be used\n\n# Run the Unity Roslyn Analyzers to generate the report file\ndotnet format analyzers --verify-no-changes --report report\n\ncat report/format-report.json | \\\n./\u003ccodacy-roslyn-path\u003e/scripts/send-results.sh # requires a codacy-roslyn-\"\u003cversion\u003e\" in the current directory\n```\n\nWithout script (step-by-step):\n\n```bash\nexport PROJECT_TOKEN=\"YOUR-TOKEN\"\nexport COMMIT=\"COMMIT-UUID\"\n\n# 1. Run the Unity Roslyn Analyzers to generate the report file\ndotnet format analyzers --verify-no-changes --report report\n\ncat report/format-report.json | \\\n# 2. Convert the Unity Roslyn Analyzers output to a format that the Codacy API accepts\n./codacy-roslyn-\"\u003cversion\u003e\" | \\\n# 3. Send the results to Codacy\ncurl -XPOST -L -H \"project-token: $PROJECT_TOKEN\" \\\n    -H \"Content-type: application/json\" -d @- \\\n    \"https://api.codacy.com/2.0/commit/$COMMIT/issuesRemoteResults\"\n\n# 4. Signal that Codacy can use the sent results and start a new analysis\ncurl -XPOST -L -H \"project-token: $PROJECT_TOKEN\" \\\n    -H \"Content-type: application/json\" \\\n    \"https://api.codacy.com/2.0/commit/$COMMIT/resultsFinal\"\n```\n\nFor self-hosted installations:\n\n```bash\nexport PROJECT_TOKEN=\"YOUR-TOKEN\"\nexport COMMIT=\"COMMIT-UUID\"\nexport CODACY_URL=\"CODACY-INSTALLATION-URL\"\n\n# 1. Run the Unity Roslyn Analyzers to generate the report file\ndotnet format analyzers --verify-no-changes --report report\n\ncat report/format-report.json | \\\n# 2. Convert the Unity Roslyn Analyzers output to a format that the Codacy API accepts\n./codacy-roslyn-\"\u003cversion\u003e\" | \\\n# 3. Send the results to Codacy\ncurl -XPOST -L -H \"project-token: $PROJECT_TOKEN\" \\\n    -H \"Content-type: application/json\" -d @- \\\n    \"$CODACY_URL/2.0/commit/$COMMIT/issuesRemoteResults\"\n\n# 4. Signal that Codacy can use the sent results and start a new analysis\ncurl -XPOST -L -H \"project-token: $PROJECT_TOKEN\" \\\n    -H \"Content-type: application/json\" \\\n    \"$CODACY_URL/2.0/commit/$COMMIT/resultsFinal\"\n```\n\n* * *\n\n## Building\n\n##### Compile\n\n`sbt compile`\n\n##### Format\n\n`sbt scalafmtAll`\n\n##### Tests\n\n`sbt test`\n\n##### Build native image (requires docker)\n\n`sbt nativeImage`\n\n##### Build fat-jar\n\n`sbt assembly`\n\n##### Generate Docs\n\n```sh\nsbt \"doc-generator/run\"\n```\n\n## What is Codacy?\n\n[Codacy](https://www.codacy.com/) is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.\n\n### Among Codacy’s features:\n\n-   Identify new Static Analysis issues\n-   Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)\n-   Auto-comments on Commits and Pull Requests\n-   Integrations with Slack, HipChat, Jira, YouTrack\n-   Track issues Code Style, Security, Error Proneness, Performance, Unused Code and other categories\n\nCodacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.\n\nCodacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.\n\n### Free for Open Source\n\nCodacy is free for Open Source projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodacy%2Fcodacy-roslyn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodacy%2Fcodacy-roslyn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodacy%2Fcodacy-roslyn/lists"}