how to fix all inspections on code cleanup

Answered

hello, probably im missing something simple here.

 

when i run code cleanup i want all inspections to be fixed. however this does not happen. some quick fixes are not applied. how can i change this?

0
3 comments

Do you have this problem only for certain files (Kotlin file type or files with compiler errors) or for certain inspections?

I see you have compiler errors in on file. IDE may not correctly apply some inspections or quick-fixes if the code is invalid if done automatically.

0
Avatar
Permanently deleted user

if the file has no compile errors the quick fix still says no suspicious code found and does nothing. but there would be multiple quick fixes available.

i guess 

serviceTypeAnnos.size == 0
serviceTypeAnnos.get(0).value

are both lines which should definitely be fixed.

what actually is the code cleanup supposed to do, respectively where can i configure what it should do ?
if the problem is the same for java files i cannot say right now

 

0

Thank you for examples. I have created the https://youtrack.jetbrains.com/issue/KT-35841 issue for Kotlin. Please follow it for updates.

0

Please sign in to leave a comment.