reek
reek copied to clipboard
Run Reek against rubyspec
I recently had a chat with @mbj and he suggested the following:
Also I run all checkins for mutants generation engine and unparsers round trip against rubyspec that is a great entropy source. Reek should do the same, maybe disabling reporting / state tracking. Just walking the AST with the engine and making sure it does not crash. Its a great invariant.
I think that's an excellent idea, let's do this.
WDYT?
:+1:
:+1:
I'm blocked the next weeks unfortunately, would anybody else like to tackle this?
I have a special test support class for the managing of corpus tests, that might be adaptable for you It assumes you have "many" projects you want to corpus test against: https://github.com/mbj/mutant/blob/master/spec/support/corpus.rb
You likely do not want to use my morpher based "type safe" config loader.
Still this could serve as an example on how to do such a corpus test, I use this code for years already so I should have ironed out the traps that exist in the concept of a corpus test.
This is how the config file looks for mutant: https://github.com/mbj/mutant/blob/master/spec/integrations.yml