Enable Sorbet/TrueSigil cop#15274
Conversation
There was a problem hiding this comment.
On the "ignore tests" part, I don't know anything about the desired state of typechecking test files - is this a thing that is never going to be done, or might be when the landscape is better, or should be done now or incrementally when people get time? I wonder what would happen if we set typed: true for tests. 🤔
I've managed to do it in a gem by introducing an rspec context that i typecheck independently of the rest of the code. I think the main issue here would bethat any test using |
|
Ah, we use a lot of |
IMO: it's not worth type checking these files at all and I'd favour even removing the |
That's a reasonable stylistic choice, since |
|
Another thing worth considering (I can make an issue again if helpful): enabling |
brew stylewith your changes locally?brew typecheckwith your changes locally?brew testswith your changes locally?As the remaining un-typed files were removed in #15201 and #15273, this PR enables a cop that requires files to be typed. The configuration is taken from
Sorbet/FalseSigilabove it, with the exception of excluding allHomebrew/testfiles.