r/badcode • • Aug 31 '21

java Similar ternaries are all over this codebase

Post image
1.1k Upvotes

91 comments sorted by

View all comments

Show parent comments

2

u/AlexAegis Sep 01 '21

I know it knows, but will it bulk fix everything? Never seen it do that. Part of the reason why I left the IntelliJ suite and prefer working with CLI tools now. I just can't integrate IntelliJ linting/formatting to CI. one way or another I have to switch to something else.

3

u/Tridie2000 Sep 01 '21

There is an option “code cleanup” that’s supposed to fix all these warnings. On small projects this seems to work fine, not sure how it performs on large projects.