https://github.com/elpassion/danger-synx
A Danger plugin for Synx.
https://github.com/elpassion/danger-synx
Last synced: 12 days ago
JSON representation
A Danger plugin for Synx.
- Host: GitHub
- URL: https://github.com/elpassion/danger-synx
- Owner: elpassion
- License: mit
- Created: 2017-02-02T10:40:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-29T08:27:43.000Z (over 7 years ago)
- Last Synced: 2024-04-24T18:10:29.876Z (about 1 year ago)
- Language: Ruby
- Size: 28.3 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-danger - danger-synx - A Danger plugin for Synx. (Plugins / Ruby (danger))
README
# Danger Synx
A Danger plugin for [Synx](https://github.com/venmo/synx/).
## Installation
Currently only Bundler installations are supported. Add following contents to your `Gemfile`:
gem 'danger-synx'
gem 'synx', :github => 'turekj/synx', :branch => 'v0.3'
And run `bundle install`.The plugin relies on a Synx fork because [PR #125](https://github.com/venmo/synx/pull/125) is not yet merged with the core app.
## Usage
Add following line to the `Dangerfile`:
synx.ensure_clean_structure
`ensure_clean_structure` task runs Synx on every `.xcodeproj` file that is added/modified by a pull request. Issues are gathered and reported in a following format:
| Project file | Issue |
| --- | --- |
| MessyProject.xcodeproj | File reference RootController.swift is not synchronized with file system. |
| MessyProject.xcodeproj | Group /MessyGroup is not sorted alphabetically. |## Roadmap
- [x] Reporting synx issues for added/modified `.xcodeproj` files.
- [ ] Indicate unused files (`--prune`).
- [ ] Allow custom exclusions for directories (`--exclusion`).
- [ ] Support for toggleable unsorted group reports (`--no-sort-by-name`).
- [ ] Support for `--no-sort-by-name` option.## Development
1. Clone this repo
2. Run `bundle install` to setup dependencies.
3. Run `bundle exec rspec` to run the tests.
4. Use `bundle exec guard` to automatically have tests run as you make changes.
5. Make your changes.