ASSERT-KTH / sorald

Automatic repair system for static analysis warnings from SonarQube's SonarJava, TDSC 2022 http://arxiv.org/pdf/2103.12033
MIT License
89 stars 27 forks source link

add support for repairing LGTM warnings #607

Open monperrus opened 2 years ago

monperrus commented 2 years ago

See LGTM repairs in Spoon: https://github.com/INRIA/spoon/issues/4180

slarse commented 2 years ago

I've made most of the prep work for using an arbitrary static analyzer to generate the violations. Before jumping head-first into adding a real analyzer, I'd suggest adding a bogus one (could just use Spoon to generate some RuleViolation on a specific condition, and have a corresponding repair) and making sure that works. As I recall there are still a few places with Sonar-esque assumptions, but they should be relatively minor.