{"id":13994348,"url":"https://github.com/PaulTaykalo/swift-scripts","last_synced_at":"2025-07-22T19:32:04.982Z","repository":{"id":42120749,"uuid":"107663735","full_name":"PaulTaykalo/swift-scripts","owner":"PaulTaykalo","description":"Some useful scripts for swift developers","archived":false,"fork":false,"pushed_at":"2024-02-08T10:07:08.000Z","size":94,"stargazers_count":941,"open_issues_count":20,"forks_count":203,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-11-20T10:56:39.767Z","etag":null,"topics":["legacy-code","ruby","swift","unused"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/PaulTaykalo.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}},"created_at":"2017-10-20T10:14:02.000Z","updated_at":"2024-11-18T15:11:26.000Z","dependencies_parsed_at":"2024-01-18T04:53:08.696Z","dependency_job_id":"921bdf5f-8866-476f-aede-be8ecd1823b3","html_url":"https://github.com/PaulTaykalo/swift-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fswift-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fswift-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fswift-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulTaykalo%2Fswift-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaulTaykalo","download_url":"https://codeload.github.com/PaulTaykalo/swift-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227166689,"owners_count":17740961,"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":["legacy-code","ruby","swift","unused"],"created_at":"2024-08-09T14:02:49.649Z","updated_at":"2024-11-29T16:31:17.594Z","avatar_url":"https://github.com/PaulTaykalo.png","language":"Ruby","readme":"# Unused\r\n`unused.rb` Searches for unused swift functions, and variable at specified path\r\n\r\n## Usage\r\n```\r\ncd \u003cpath-to-the-project\u003e\r\n\u003cpath-to-unused.sh\u003e/unused.rb \r\n```\r\n\r\n## Output\r\n```\r\n Item\u003c func loadWebViewTos [private] from:File.swift:23:0\u003e\r\nTotal items to be checked 4276\r\nTotal unique items to be checked 1697\r\nStarting searching globally it can take a while\r\n Item\u003c func applicationHasUnitTestTargetInjected [] from:AnotherFile.swift:31:0\u003e\r\n Item\u003c func getSelectedIds [] from: AnotherFile.swift:82:0\u003e\r\n```\r\n\r\n## Xcode integration\r\nIn order to integrate this to Xcode just add *Custom Build Phase/Run Script*  \r\n`~/Projects/swift-scripts/unused.rb xcode`  \r\n![](https://user-images.githubusercontent.com/119268/32348473-88080ed2-c01c-11e7-9de6-762aeb195156.png)\r\n![](https://user-images.githubusercontent.com/119268/32348476-8af3a700-c01c-11e7-893f-013851568882.png)\r\n\r\n## Known issues:\r\n- Fully text search (no fancy stuff)\r\n- A lot of false-positives (protocols, functions, objc interoop, System delegate methods)\r\n- A lot of false-negatives (text search, yep)\r\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaulTaykalo%2Fswift-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPaulTaykalo%2Fswift-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaulTaykalo%2Fswift-scripts/lists"}