<commit_before>BetterRefactorTools is an Xcode plugin that adds handy shortcuts for refactoring methods in Objective-C.

# Installation
* `git clone https://github.com/tjarratt/Xcode-Better-Refactor-Tools.git`
* `cd Xcode-Better-Refactor-Tools`
* `rake install`

# Features

   <kbd>CTRL</kbd> + <kbd>g</kbd>

   Generate a class that implements the Swift protocol under your cursor.

   (Edit > Generate Fake Protocol)

   <kbd>CMD</kbd> + <kbd>F6</kbd>
   
   Refactor the method under the cursor. Add, remove and re-order selector components, change types and names.
   
   (Edit > Refactor Current Method)

# Known defects

* Generate Fake   : Does not support initializers
* Generate Fake   : Does not support protocols that include other protocols
* Generate Fake   : Does not handle protocols that use `typealias`
* Refactor Method : Only supports instance methods
* Refactor Method : ay get confused when an argument is a protocol type (e.g.: `id<AnyProtocol>`)
* Refactor Method : Cannot find call sites of methods in all `.mm` files. (especially Cedar specs)
* Refactor Method : Will rewrite **any** call site for selectors that match (e.g.: it will match any `-init` when rewriting call sites).
* Refactor Method : Will not rewrite any matching @selector()

# Feature backlog

[The backlog of features for this plugin is currently in Pivotal Tracker](https://www.pivotaltracker.com/n/projects/1394466).

# Contributing

Found a bug? Have a feature request? Interested in submitting a pull request? Please open an issue on Github (or just issue a pull request directly if the fix is pretty clear).

# Uninstalling the plugin
Plugin can be uninstalled by removing `XcodeBetterRefactorTools.xcplugin` from `~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins`

or

`rake uninstall`
<commit_msg>Add instruction to update git submodules<commit_after>BetterRefactorTools is an Xcode plugin that adds handy shortcuts for refactoring methods in Objective-C.

# Installation
* `git clone https://github.com/tjarratt/Xcode-Better-Refactor-Tools.git`
* `cd Xcode-Better-Refactor-Tools`
* `git submodule update --init --recursive`
* `rake install`

# Features

   <kbd>CTRL</kbd> + <kbd>g</kbd>

   Generate a class that implements the Swift protocol under your cursor.

   (Edit > Generate Fake Protocol)

   <kbd>CMD</kbd> + <kbd>F6</kbd>
   
   Refactor the method under the cursor. Add, remove and re-order selector components, change types and names.
   
   (Edit > Refactor Current Method)

# Known defects

* Generate Fake   : Does not support initializers
* Generate Fake   : Does not support protocols that include other protocols
* Generate Fake   : Does not handle protocols that use `typealias`
* Refactor Method : Only supports instance methods
* Refactor Method : ay get confused when an argument is a protocol type (e.g.: `id<AnyProtocol>`)
* Refactor Method : Cannot find call sites of methods in all `.mm` files. (especially Cedar specs)
* Refactor Method : Will rewrite **any** call site for selectors that match (e.g.: it will match any `-init` when rewriting call sites).
* Refactor Method : Will not rewrite any matching @selector()

# Feature backlog

[The backlog of features for this plugin is currently in Pivotal Tracker](https://www.pivotaltracker.com/n/projects/1394466).

# Contributing

Found a bug? Have a feature request? Interested in submitting a pull request? Please open an issue on Github (or just issue a pull request directly if the fix is pretty clear).

# Uninstalling the plugin
Plugin can be uninstalled by removing `XcodeBetterRefactorTools.xcplugin` from `~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins`

or

`rake uninstall`

{'fraction_non_alphanumeric': 0.08358128212063835, 'fraction_numerical': 0.004327833378414931, 'mean_word_length': 4.313218390804598, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5023909', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1041, 'n_words': 444}