i'm trying to enforce using named parameters in certain scenarios but you can't use those if the function is defined in java so it ends up producing a false positive sometimes. i currently just have a whitelist (for mostly android library code) but wasn't sure if there was a better way
a
adam-mcneilly
11/25/2019, 8:09 PM
Let me know if you find a solution! I recently posted in #detekt about the same concept but I haven't carved out time to try writing a rule for it yet.
adam-mcneilly
11/25/2019, 8:10 PM
Ideally you could suppress wherever it calls java, which may be a small price to pay but just depends on how much interrop you have, right?
j
Josh Feinberg
11/25/2019, 9:45 PM
Yeah, it was mostly getting annoying in android platform calls. like everywhere you inflate a layout you have
attachToRoot
but thats java so every fragment inflation would need to be surpressed
Josh Feinberg
11/25/2019, 9:46 PM
the whitelist seems to be an...okay solution ha
a
adam-mcneilly
11/25/2019, 10:04 PM
Any chance you can whitelist method names? Like could you do an app wide ignore for