Open jecisc opened 4 years ago
The way to query for this is mostly done here:
https://github.com/jecisc/Chanel/pull/95/files#diff-f7fdb7f869853f24152c763c31b9ea03R19
GitHubAdd cleaner extracting return from conditions. Also disable Epicea to run tests Fixes #77 Fixes #94
In Pharo, by default it is not possible to write statements after a return. But it is possible to write statements after a condition that return.
I propose a rule to find cases such as:
or
The conditions to match would be that the method has a AST node matching: