https://github.com/br3akzero/locoplugin
Localization plugin for Xcode powered by loco
https://github.com/br3akzero/locoplugin
Last synced: 9 months ago
JSON representation
Localization plugin for Xcode powered by loco
- Host: GitHub
- URL: https://github.com/br3akzero/locoplugin
- Owner: br3akzero
- License: mit
- Created: 2022-09-05T19:24:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-22T21:43:04.000Z (over 3 years ago)
- Last Synced: 2025-06-26T06:17:46.888Z (12 months ago)
- Language: Swift
- Size: 424 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# What is LocoPlugin
This plugin is a SPM Plugin wrapper around the awesome [loco](https://github.com/konrad1977/loco) linter.
# What is included
LocoPlugin supports 2 ways of running the plugin:
1. LocoCLI (CommandPlugin) | Get output into a txt file.
2. LocoBuild (BuildToolPlugin) | Integrated into Xcode.
# LocoCLI
**1. Run the plugin**
_Via terminal_
```bash
# In your working directory
swift package plugin loco-analyze
```
_Via Xcode 14_
- Open the context menu
- Select LocoPlugin
**2. Allow permission**
Allow writing to working directory as LocoPlugin will create a LocoLogs.txt files that will hold the output of loco.

**3. Output**
`LocoLogs.txt` file will be created in your working directory which holds the output of loco.
# LocoBuild
**1. Add LocoBuild to Build Tool Plug-ins**

**2. Build your project**
This will trigger the plugin to run on each run.
**3. Allow the plugin to run**
We need to allow the plugin to run in the context of *Xcode*.