{"repo":"ra1028/swift-mod","free":true,"listed":false,"github":"https://github.com/ra1028/swift-mod","clone":"git clone https://github.com/ra1028/swift-mod.git","description":"A tool for Swift code modification intermediating between code generation and formatting.","language":"Swift","stars":116,"topics":["swift","cli","formatter","code-generator","code-modification","swiftsyntax","ast"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"swift-mod A tool for Swift code modification intermediating between code generation and formatting. --- Overview swift-mod is a tool for Swift code modification that intermediating between code generator and formatter built on top of apple/SwiftSyntax. It can generates boilerplate code, such as access control or memberwise initializers in modularized source code, taking into account the state of the AST. You can improve your productivity for writing more advanced Swift codes by introducing swift-mod . Example - Before - After --- Getting Started 1. Install swift-mod . 2. Generates configuration file. 3. Check the all modification rules. 4. Edit your configuration file with an editor you like, refering to the documentation. 5. Run --- Command Usage All commands can be display a usage by option -h/--help . - run (or not specified) - init - rules --- Configuration Modification rules and targets are defines with YAML-formatted file. By default, it's searched by name .swift-mod.yml . Any file name is allowed with passing with option like follows: Example Format Determines the format setting in all rules. Format according to this setting only when changes occur. KEY VALUE REQUIREMENT DEFAULT :- :- :- :- indent The number of spaces, or tab by text Optional 4 lineBreakBeforeEachArgument Indicating whether to insert new lines before each function argument Optional true Rules Default Access Level IDENTIFIER OVERVIEW :- :- defaultAccessLevel Assigns the suitable access level to all decl","default_branch":null,"files":null,"tree":[],"storefront":"/r/ra1028","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ra1028/swift-mod/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}