Hi, does RBUnpackagedCodeRule still make sense? Because from time to time it gives false positives, so Iâve tried to rewrite it as: âanEntity package mcPackage isNilâ but it turns out that every method and class has MCPackage. Uko
I believe what you want to check is if it belongs to the #_UnpackagedPackage, in which cas it is not referenced in any package yet. Thierry 2015-06-16 16:58 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com>:
Hi, does RBUnpackagedCodeRule still make sense?
Because from time to time it gives false positives, so Iâve tried to rewrite it as: âanEntity package mcPackage isNilâ
but it turns out that every method and class has MCPackage.
Uko
Ah, then I can do it like: anEntity package isDefault Thanks, I like that, but Iâll also wait a bit for other feedback before submitting the change :) Uko
On 16 Jun 2015, at 17:02, Thierry Goubier <thierry.goubier@gmail.com> wrote:
I believe what you want to check is if it belongs to the #_UnpackagedPackage, in which cas it is not referenced in any package yet.
Thierry
2015-06-16 16:58 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto:yuriy.tymchuk@me.com>>: Hi, does RBUnpackagedCodeRule still make sense?
Because from time to time it gives false positives, so Iâve tried to rewrite it as: âanEntity package mcPackage isNilâ
but it turns out that every method and class has MCPackage.
Uko
send it ;) Le 16/6/15 17:06, Yuriy Tymchuk a écrit :
Ah, then I can do it like:
anEntity package isDefault
Thanks, I like that, but Iâll also wait a bit for other feedback before submitting the change :)
Uko
On 16 Jun 2015, at 17:02, Thierry Goubier <thierry.goubier@gmail.com <mailto:thierry.goubier@gmail.com>> wrote:
I believe what you want to check is if it belongs to the #_UnpackagedPackage, in which cas it is not referenced in any package yet.
Thierry
2015-06-16 16:58 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto:yuriy.tymchuk@me.com>>:
Hi, does RBUnpackagedCodeRule still make sense?
Because from time to time it gives false positives, so Iâve tried to rewrite it as: âanEntity package mcPackage isNilâ
but it turns out that every method and class has MCPackage.
Uko
Itâs already integrated in Pharo 5. Iâll open a backport issue for Pharo 4 soon. I was a bit⦠busy last few days Uko
On 07 Jul 2015, at 21:34, stepharo <stepharo@free.fr> wrote:
send it ;)
Le 16/6/15 17:06, Yuriy Tymchuk a écrit :
Ah, then I can do it like:
anEntity package isDefault
Thanks, I like that, but Iâll also wait a bit for other feedback before submitting the change :)
Uko
On 16 Jun 2015, at 17:02, Thierry Goubier <thierry.goubier@gmail.com <mailto:thierry.goubier@gmail.com>> wrote:
I believe what you want to check is if it belongs to the #_UnpackagedPackage, in which cas it is not referenced in any package yet.
Thierry
2015-06-16 16:58 GMT+02:00 Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto:yuriy.tymchuk@me.com>>: Hi, does RBUnpackagedCodeRule still make sense?
Because from time to time it gives false positives, so Iâve tried to rewrite it as: âanEntity package mcPackage isNilâ
but it turns out that every method and class has MCPackage.
Uko
participants (3)
-
stepharo -
Thierry Goubier -
Yuriy Tymchuk