-
Notifications
You must be signed in to change notification settings - Fork 153
Want "all" arg to '-f' option. #11
Comments
This is both a good addition and eminently doable (the best combination). |
Apparently I've already implemented this too, but you need to use
Can you try this and let me know if it does the trick. |
OK, now I'm THOROUGHLY confused.
works, but
does NOT work... but yet:
does work! But it shouldn't work, because that's an OR, and waht I want is an AND (see Issue #10). huh? |
This is a breaking change to tag processing which should bring us in line with Cucumber.
Hi Phil, I've tweaked the handling of tags at the command line so that AND and OR should match the Cucumber behaviour: Can you pull the current HEAD and let me know if this now makes more sense.
Thanks. |
I did a 'git pull --rebase' on my repo, but didn't pull down anything new and the behavior is still the same. The latest change seems to be 6 days ago... am I missing something? |
Nevermind I didn't have the upstream defined. Rebuilding now. |
This works! Thanks! I can now do things like:
Now, to be extra picky... ;) ... the ability to do something like this would be really awesome:
Basically "any && NOT (FC014 || FC023)" which should expand to "any && NOT FC014 && NOT FC023" I tested that, but it doesn't work. |
Cool. Thanks for taking the time to test this. This change has the potential to break existing CI setups so I'm going to bump the gem major version when this is released. I'm not keen on extending the expression syntax outside of the Cucumber tag syntax people may be already familiar with. If people really need more complex expressions than can be expressed this way I'd accept a patch that takes an arbitrary Ruby expression. |
sounds good to me. Thanks!! |
Oh - do you know when you plan to do said release? |
Hi Phil, I'm intending to release this change in a gem later in the week. BTW - saw your pull request on the awesomeness that is FPM. |
I just pulled in 0.11.0 which seems to have the right -f magic.... I have a shellscript that builds foodcritic as RPMs into the /opt/chef bundled ruby (since most of the deps are already there). It required a bit of fpm work arounds, but it all works now... |
Very nice - would be great if you can share this. I think you're going to find that 0.11.0 doesn't include the changes in e7c12ab and will only work for basic scenarios. Looks like there is an update to 1.9.3 in the works for Omnibus too: |
Here's the script. The comments assume a VERY new omnibus build (the move from /opt/opscode to /opt/chef).
|
And I see your point. Thanks. Can you update this Issue when 0.12 comes out? Thanks! |
This has been released in 1.0.0. |
looks good |
I'm using foodcritic as a pre-commit hook, and I want it to fail in all cases, so rather than listing every tag which could get out of date, I want to be able to say "-f all"
(Actually, in my case what I want is "-f all,~fcXXX" but that should come as a side-effect of "all" support)
How feasible is this? Thanks.
The text was updated successfully, but these errors were encountered: