-
Notifications
You must be signed in to change notification settings - Fork 351
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
[Linter] Check PodSpecs for unknown keys #88
Labels
Comments
Closed
YES! Can we get this ASAP? (For trunk.) |
This should also check for the type (the class) of values stored for each attribute. |
I wonder if we should allow a |
@orta sounds like a good idea, but I would prefer a specific need to arise before implementing it. |
Ashton-W
pushed a commit
to Ashton-W/Core
that referenced
this issue
Nov 2, 2015
…e attributes hash See CocoaPods#88
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As PodSpecs can by loaded by JSON or YAML files it would be useful to highlight any non supported key.
This should be implemented in a dedicated method in https://github.com/CocoaPods/Core/blob/master/lib/cocoapods-core/specification/linter/analyzer.rb#L6. The implementation could check the
Pod::Specification#attributes_hash
against thePod::Specification::DSL.attributes
. Each attribute agains thePod::Specification::DSL::Attribute#name
which is used as a key for the hash storing themThe text was updated successfully, but these errors were encountered: