CogniCrypt icon indicating copy to clipboard operation
CogniCrypt copied to clipboard

Generate quick fixes for errors that alternatives can be suggested for

Open kruegers opened this issue 7 years ago • 2 comments

For most misuses, Cognicrypt may suggest correct alternatives via quick-fixes. For example: Regular typestate errors Generate additional call to expected method right before encountered call

End-of-Lifecycle typestate errors Generate addtional call to expected method right after last encountered call on object

Call to forbidden methods Replace call to forbidden method with alternative call

Constraints For some constraints, one may replace parameter values with what was expected.

Missing predicates Generate code snippet that would generate the missing predicate

We've already got some code related to quick-fix generation here.. Also check out issue #35 while working on this one here.

kruegers avatar Oct 20 '17 12:10 kruegers

One addenum for the above:

Please support the feature that several quickfixes of the same type can be executed at once. severalquickfixes

Lonzak avatar Nov 20 '18 13:11 Lonzak

Finally merging #35 into this one. It is no longer necessary to read the paper mentioned there as most of the work is being done by @AndreSonntag in his master thesis. In order to complete this issue, integrate his tool CogniCryptFIX into the plugin. As a first step, rather read the thesis.

kruegers avatar May 19 '20 08:05 kruegers