Closed henriquemoody closed 4 years ago
I'm getting the Between
I'm getting the KeySet
I'm getting AllOf
I'm getting Uppercase
Well done! whoop whoop!!
Unfortunately I'm not quite free right now... knee deep in java, but will try and wriggle my way out before this is done.
while working on AllOf , I realized it is being extended by other Rules, hence setting the class as final is not feasible. Also adding type hinting will cause a cascade of incompatible interfaces and function signatures. I suggest the following task should be tackled in one phase and the other two should be tackled in another phase with much diligence.
Next Phase
@henriquemoody @nickl- any taughts ?
Some rules require more than applying the guidelines. I updated the list of Rules in the description of this issue, mentioning only the ones that are easy to work on, I'll pick up myself because of the more structural changes.
If you can pick other rule that will be simpler that would be the cool. If you have something already done already in the "AllOf" rule, you can just send it as it, and I'll pick it up from there you left! But I think we should try to apply the complete list at once, there are too many rules to do into more steps, IMO.
Thanks for your feedback, @koficodes! 🐼
Well noted. will pick another rule for now. Thanks for the quick response. :+1:
I'm getting the Contains
I'm getting Even
Im getting Lowercase
Guys I found a bug on Contains rule during the work. I would send a patch but looking at the history of file this problem exists for a long time ago. I think that we can continue this work and I will join the fix with apply of this issue. What you think about that?
About the problem. The Contains rule do not check if an item of array has no identical value because it checks if is array before execute the verification with no identical. This will work v:contains('foo')->check('fool')
but this don't v:contains('foo')->check(['fool', 'bar'])
@williamespindola while applying the contribution guidelines I've found a few bugs myself!
However, if I understood what you said correctly that's the expected behaviour.
If you're searching in a string, you need a match in the string:
v:contains('foo')->validate('fool'); // true
v:contains('foo')->validate('fol'); // false
If you're searching in an array, you need a match in the array:
v:contains('foo')->validate(['foo', 'bar'); // true
v:contains('foo')->validate(['fol', 'bar'); // false
It's inverted behaviour of "In".
I'm getting IterableType
@henriquemoody I don't know if I get it wrong. But the Contais rule have a flag on constructor to match value identical or not. Then if we passe true it will sought for exactly foo
but whether we pass false or nothing this will sought for a similar e.g. foo == fool
take a look https://3v4l.org/mYGVe
I'm getting Countable
I'm getting Cpf
I'm getting AlwaysInvalid and AlwaysValid
I'm working on ArrayVal, Base64, Base, BoolType and BoolVal
I am getting FloatVal and FloatType
i'm getting Positive
I'm getting Negative
I am getting Odd
I'm getting PrimeNumber
I'm getting email
I'm getting NoWhitespace
31% completed... this is taking for ever =(
Good job so far guys!
working on Bsn, Callback, Charset, Cnh, Cnpj
I'm getting PerfectSquare.
I'm getting CountryCode, CreditCard, CurrencyCode, Directory and Each
I'm getting Number
I'm getting :
There is a new version of the script: https://gist.github.com/henriquemoody/d4409df72a86dd07b9a794635ce0995a
I'm working on: EndsWith, Executable, Exists, Extension, Factor, FalseVal, Fibonacci, File, Finite
52% Whoop whoop!! It's all downhill from here =)
Go-go-go!!
I'm getting intVal and Multiple
Only 54% now, what's happening? We were doing so well!
I saw @henriquemoody agreed to release v1.1.19 is this the reason progress is impacted?
Come on guys almost there, lets get this done!
I must've missed the memo... has this development now stopped?
Not at all! I did spend quite some time on the version 1.1.19, there were quite a few bugs. In retrospect, that was a bad decision. Now I'm struggling for a few days with the merge of the branch 1.1 into master. However, it should not stop! As soon as I merge the 1.0 I'm right back into the 2.0!
How about you, @koficodes, @DaniloBenevides, and @williamespindola?
And thanks for pushing it forward, @nickl-!
I'll be back Just solving some issue in my work
I'll be back too! Tomorrow i will try to back to the rhythm
I'm getting Image and Imei
It seems our progress is still stuck at 54% completion.
Is there any obstacles preventing this from moving forward which we could move out of the way or is this purely due to availability constraints?
How about a commitment to get 55%? @DaniloBenevides are you done with Imei and Image yet? @williamespindola has the Sky Labs mainframe authorised your return yet? =)
Lets get this wheel turning again, what do you say?
Added tick to Multiple rule #1051 ...no progress was really getting me down =)
I'm working on Imei Rule , will try to finish till weekend. I think i can try 5 rules per week from next monday. :smile:
@DaniloBenevides Go get them tiger! =)
gl
I'm getting Infinite , Instance and In
I'm getting Ip , Json, KeyValue, LanguageCode, LeapDate
58% complete... steady as she goes.
Nice! =)
I'm working on:
TL;DR
master
branchIt's been a MAJOR or MINOR version of the library has been released. There are enough things to release the version 2.0 but I need your help.
I wrote new Contribution Guidelines and before I creating the tag 2.0.0 I would like to have all rules with the same standard.
Applying the Contribution Guidelines consist of:
@author
tag to classes you changedI've done some already but there is still a lot to go, write a comment with the rule name before you start working on it, so two people don't work on the same thing!
Hope you can help!
Rules
Some rules are not on the list, but they are not Easy Pick.