Closed Babar closed 5 years ago
The failing tests are due to using a single cache. I'll fix the tests.
You still have test failures though...
Pretty certain the last 2 failing tests are because I'm testing with rbenv
and Travis CI runs with rvm
. I honestly have no idea what's wrong, as it works for me, and even running manually what the test does works. (running foodcritic with no argument returns a non-zero exit code after printing the usage, same with running it with a non-existent -w option)
@tas50 would you mind having a look please? Pretty sure the code is correct, but I have no idea how to debug as I don't use rvm
Thanks @Babar. Sorry for the long delay here
Also, make the cache unique, so if people want to use read_ast in a rule, it will use the same cache
Otherwise, it can get really slow if people check dependencies using AST. The default of 5 will keep the memory footprint low and should be fine for most people