Danger Synx
A Danger plugin for 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 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
- 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
- Clone this repo
- Run
bundle install
to setup dependencies. - Run
bundle exec rspec
to run the tests. - Use
bundle exec guard
to automatically have tests run as you make changes. - Make your changes.