{"id":15523084,"url":"https://github.com/xuwei-k/unused-code","last_synced_at":"2025-04-09T11:12:57.558Z","repository":{"id":38186209,"uuid":"458469192","full_name":"xuwei-k/unused-code","owner":"xuwei-k","description":"find and remove unused scala code","archived":false,"fork":false,"pushed_at":"2025-03-25T03:33:16.000Z","size":107,"stargazers_count":72,"open_issues_count":6,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-02T09:08:39.526Z","etag":null,"topics":["sbt-plugin","scala","scalafix-rule"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuwei-k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2022-02-12T08:54:28.000Z","updated_at":"2025-03-25T03:33:20.000Z","dependencies_parsed_at":"2023-02-05T09:30:38.517Z","dependency_job_id":"8b32e81b-dd53-4b75-9062-8a228a6df625","html_url":"https://github.com/xuwei-k/unused-code","commit_stats":{"total_commits":181,"total_committers":3,"mean_commits":"60.333333333333336","dds":"0.24861878453038677","last_synced_commit":"bc219dbc0410e8736ca5556cce3992892aa19dde"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Funused-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Funused-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Funused-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuwei-k%2Funused-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuwei-k","download_url":"https://codeload.github.com/xuwei-k/unused-code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027411,"owners_count":21035594,"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","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":["sbt-plugin","scala","scalafix-rule"],"created_at":"2024-10-02T10:43:28.368Z","updated_at":"2025-04-09T11:12:57.525Z","avatar_url":"https://github.com/xuwei-k.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unused Code\n\n[![maven](https://img.shields.io/maven-central/v/com.github.xuwei-k/unused-code-scalafix_2.13)](https://search.maven.org/artifact/com.github.xuwei-k/unused-code-scalafix_2.13)\n[![scaladoc](https://javadoc.io/badge2/com.github.xuwei-k/unused-code-scalafix_2.13/javadoc.svg)](https://javadoc.io/doc/com.github.xuwei-k/unused-code-scalafix_2.13/latest/unused_code/index.html)\n\nfind and warn, remove unused public classes, methods by scalafix SyntacticRule.\n\n## setup\n\n### `project/plugins.sbt`\n\n```scala\naddSbtPlugin(\"com.github.xuwei-k\" % \"unused-code-plugin\" % \"version\")\n```\n\n### sbt shell\n\n```\n\u003e unusedCode\n\u003e scalafix WarnUnusedCode\n\u003e scalafix RemoveUnusedCode\n```\n\n### config example\n\n`build.sbt`\n\n```scala\nimport scala.concurrent.duration.*\n\nThisBuild / unusedCodeConfig ~= { c =\u003e\n  c.copy(\n    excludeNameRegex = Set(\n      \".*Server\"\n    ),\n    excludePath = c.excludePath ++ Set(\n      \"glob:some-project/**\"\n    ),\n    excludeGitLastCommit = Some(\n      365.days\n    ),\n    excludeMainMethod = false,\n    dialect = unused_code.Dialect.Scala3,\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Funused-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuwei-k%2Funused-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuwei-k%2Funused-code/lists"}