Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Danger rule to check for (simultaneous) changes in CocoaPods / Carthage files #808

Merged
merged 3 commits into from
Nov 30, 2016

Conversation

BasThomas
Copy link
Contributor

@BasThomas BasThomas commented Nov 29, 2016

Fixes #796.

Can we somehow check if this works as intended? I couldn't really find a way to do so.

@codecov-io
Copy link

codecov-io commented Nov 29, 2016

Current coverage is 83.05% (diff: 100%)

Merging #808 into master will not change coverage

@@             master       #808   diff @@
==========================================
  Files            34         34          
  Lines          2738       2738          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           2274       2274          
  Misses          464        464          
  Partials          0          0          

Powered by Codecov. Last update 1a49afc...11680fc

cartfile_updated = !git.modified_files.grep(/Cartfile).empty?
cartfile_resolved_updated = !git.modified_files.grep(/Cartfile.resolved).empty?

if podspec_updated && !cartfile_updated && !cartfile_resolved_updated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be

if podspec_updated && (!cartfile_updated || !cartfile_resolved_updated)

just like line 46?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Changed.

@MoyaBot
Copy link

MoyaBot commented Nov 30, 2016

SwiftLint found issues

Warnings

File Line Reason
Moya.swift 54 Shorthand syntactic sugar should be used, i.e. [Int] instead of Array

Generated by 🚫 danger

@pedrovereza pedrovereza merged commit d01c87c into master Nov 30, 2016
@pedrovereza pedrovereza deleted the cocoapod-carthage-update branch November 30, 2016 21:08
@BasThomas BasThomas mentioned this pull request Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants