{"id":16682807,"url":"https://github.com/johnno1962/refactorator","last_synced_at":"2025-04-04T14:08:35.753Z","repository":{"id":146646138,"uuid":"48375370","full_name":"johnno1962/Refactorator","owner":"johnno1962","description":"Xcode Plugin that Refactors Swift \u0026 Objective-C","archived":false,"fork":false,"pushed_at":"2020-03-16T12:19:53.000Z","size":121,"stargazers_count":991,"open_issues_count":3,"forks_count":35,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-10-13T14:14:34.056Z","etag":null,"topics":["refactors-swift","xcode-plugin"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/johnno1962.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":"2015-12-21T14:14:38.000Z","updated_at":"2024-02-18T21:17:53.000Z","dependencies_parsed_at":"2023-04-07T11:25:00.514Z","dependency_job_id":null,"html_url":"https://github.com/johnno1962/Refactorator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnno1962%2FRefactorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnno1962%2FRefactorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnno1962%2FRefactorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnno1962%2FRefactorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnno1962","download_url":"https://codeload.github.com/johnno1962/Refactorator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190252,"owners_count":20898702,"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":["refactors-swift","xcode-plugin"],"created_at":"2024-10-12T14:08:36.044Z","updated_at":"2025-04-04T14:08:35.735Z","avatar_url":"https://github.com/johnno1962.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refactorator Xcode Plugin\n\nDue to changes in the index database with Xcode 10 this plugin no longer works.\n\nRefactorator is an Xcode plugin for refactoring Swift \u0026 now Objective-C code. It will\nrename public or internal vars, functions, enums etc. For private and local entities\nuse Xcode's existing \"Edit All in Scope\" functionality.\n\nStop Press: Refactorator no longer uses [SourceKit](http://www.jpsim.com/uncovering-sourcekit/) directly,\nrather it accesses the SQLite database Xcode compiles using SourceKit. This makes it both faster as it\nno longer needs to re-index the sources of your project but also means all targets of a project are\nincluded in refactoring including code written in Objectve-C.\n\nAn improved version of Refactorator is now available as a standalone App avilable [here](https://github.com/johnno1962/RefactoratorApp)\n\n![Icon](http://injectionforxcode.johnholdsworth.com/refactorator.png)\n\nTo use, download the source for this project and build to install the plugin\nthen restart Xcode. Not used a Plugin before? Use [Alcatraz Package Manager](http://alcatraz.io/)\nto install it. Select a symbol in a Swift source and use \"Right-click/Refactor/Swift !\"\nto list places in the target that declare or refer to that symbol.\nEnter a new value for the identifier in the bottom textfield and press\nthe \"Preview\" button to view the changes that would be made.\nPress the \"Save\" button to save these changes to disk. Use the\n\"Undo\" button to revert the changes if need be.\n\nAs a by-product of the analysis performed for refactoring, if you have \n[Graphviz](http://www.graphviz.org/) installed, you can view an approximate\nvisualisation of the classes in your project and their interrelationships\nusing the \"Edit/Refactor/Visualise !\" menu item. Initialiser calls are\ncoloured green, ivar references blue, and method calls red:\n\n![Icon](http://injectionforxcode.johnholdsworth.com/visualiser.png)\n\nRefactorator was originally suggested as being feasible by @Daniel1of1 shortly after\nSwift came out building on the work by @jpsim on [SourceKitten](https://github.com/jpsim/SourceKitten).\nThe last piece of the puzzle was the Open Sourcing of the SourceKit API by Apple as a part of Swift.\nSource files are parsed using data from the same XPC calls that Xcode uses when it indexes\na project and implemented in a daemon process so as not to affect the stability of Xcode.\nInvaluable in underdstanding the index database was [DB Browser for SQLite](http://sqlitebrowser.org/) \nand the SQLite Swift code was helped along by reference to the excellent [SQLite.swift](https://github.com/stephencelis/SQLite.swift).\n\n### MIT License\n\nCopyright (C) 2015 John Holdsworth\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated \ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation \nthe rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, \nand to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial \nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT \nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. \nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, \nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE \nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nThis source includes a header file \"sourcekit.h\" from Apple's Swift distribution under Apache License v2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnno1962%2Frefactorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnno1962%2Frefactorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnno1962%2Frefactorator/lists"}