-
Notifications
You must be signed in to change notification settings - Fork 349
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
Check requires arc true false strings #393
Check requires arc true false strings #393
Conversation
@VinayGuthal please add LGTM. |
# | ||
def check_requires_arc_attribute | ||
attributes = DSL.attributes.values | ||
attributes.each do |attr| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you just use attributes.find { |attr| attr.name == :requires_arc }
instead?
# @return [void] | ||
# | ||
def check_requires_arc_attribute | ||
attribute = DSL.attributes.values.find{|attr| attr.name == :requires_arc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the formatting correct here? I think spaces are needed, rubocop -a
I believe will take care of it for you.
… true or false add tests to test the functionality add tests use mangos instead of bananas update mango lib remove mango corp typo address comments udpate changelog run rubocop -a
16731ee
to
ce4734b
Compare
Yep, good idea
…On Jul 13, 2017 16:50, "Dimitris Koutsogiorgas" ***@***.***> wrote:
👌 !
@dantoml <https://github.com/dantoml> or @orta <https://github.com/orta>
quick check?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#393 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAC_jt1QzAMua0vVqkb1J4njzKPjH4JPks5sNoMOgaJpZM4OXd-C>
.
|
Is there anything else that I need to take care of here? :) |
No, I don't think so, let's get this in. |
This fixes CocoaPods/CocoaPods#6701.
Add a warning if the strings
'true'
or'false'
are being used instead of booleantrue
orfalse
as the value for 'requires_arc' in the pod spec file.