Closed Nelyus closed 4 years ago
Hi @Nelyus, thanks for bringing that up! This is going to be a tricky one...from the top of my head I can't think of a anything (maybe SwiftSyntax has some metadata that we can rely on?)
@henrique-morbin-ifood thoughts?
Hi @rakaramos, lool, if Muter could understand the syntax, those lines will not even be considered as a mutation, right? So, one thing that comes to me is to identify those kinds of errors and suppress them from the report as if they never existed.
I take advantage of swift allowing to drop the return keyword when the methods is a single line.
I have build errors on such methods, when muter remove the statement as part of a RemoveSideEffects mutation: