Not sure if we want to put the effort into doing this, but personally I'm not a fan of magical this, and much prefer composing a bunch of pure functions together.
As we already will decouple rules and reporters from this (#356, #358), what really is left? It'd just be a place to chuck violations, or whatever we will call it.
Not having stampit would probably make the code more testable as well, as it stands, init calls read etc., makes init wonky to write tests for.
The test suite takes a long time to run. And I think it because of all the shared state, and stuff calling other stuff internally.
While not Stampit's fault, I do think it enables this pattern to easily.
Not sure if we want to put the effort into doing this, but personally I'm not a fan of magical
this
, and much prefer composing a bunch of pure functions together.As we already will decouple rules and reporters from
this
(#356, #358), what really is left? It'd just be a place to chuckviolations
, or whatever we will call it.Not having stampit would probably make the code more testable as well, as it stands,
init
callsread
etc., makesinit
wonky to write tests for.