-
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 frameworks attribute for invalid frameworks #66
Comments
This issue can be implemented by improving this two methods to check against a regex. |
I would love to have a go at this, but I'm struggling to find the spec where these methods are tested. Can anyone point me in the right direction? |
Hi @squarefrog... great to hear that! The specs are here (by convention we name the test file like TESTED_CLASS_spec.rb and use the the same tree of the lib/cocoapods-core dir in the spec dir). |
Thanks! I'll start on this tomorrow. I'll just add a simple regex to look for any non-alphanumeric. If this needs to change down the line (support symbols?), it should be easy to add new rules. |
Sounds great! |
Couldn't sleep ;) Frameworks Libraries
|
@squarefrog in case any is missing... the tests of your patch should include all the cases that you presented above in #66 (comment) |
Sure I can do that. Is there a way to check for passing cases? For example:
I know |
You can create any function that would helpful as showcased in this spec |
OK I'll see what I can come up with this weekend! |
As seen in https://github.com/Marxon13/Specs/commit/8ca38c40a2c8db87ce97b944417425623d18a737
A simple regex rule for detecting invalid names, such as with
,
and spaces etc.The text was updated successfully, but these errors were encountered: