0.01
No commit activity in last 3 years
No release in over 3 years
A Danger plugin for running commited .xcodeproj through Synx.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 2.14
= 3.0.7
>= 0
~> 10.0
~> 3.4
~> 0.41
~> 0.8

Runtime

 Project Readme

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

  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.