Closed pokk closed 1 year ago
Hi,
please try if the compose rule set works for you with the cli: https://twitter.github.io/compose-rules/detekt/#using-with-detekt-cli
You can use --debug
to print the loaded rule sets.
When I include the compose rule set, detekt picks it up:
(However I do not have any compose project to test this, so it might be some rule configuration is missing or the compose rule set requires type resolution ?
@arturbosch
Thank you so much for the quick reply. I have tried the cli, and it does work well. Just wondering that my setting might be wrong. If the detekt plugins has't support it. It might be a good feature for the plugin 🙇♂️
@arturbosch
Thank you so much for the quick reply. I have tried the cli, and it does work well. Just wondering that my setting might be wrong. If the detekt plugins has't support it. It might be a good feature for the plugin bowing_man
I'm not sure if the intellij plugin now also reports the compose issue or just the cli? If it does not, maybe you could setup a minimal project where I could take a look?
I will let you know after I check it if it does work or not. 🙇♂️
@arturbosch
So sorry for being late.
I got the lint errors from the jar file for a new project without any other settings.
This is my setting
I added the detekt.yml
together.
It works well, too!!! 👍
I was looking for this rule, seems it has a note
that I didn't pay attention to it. 🙏
After trying many ways, I figured out I added baseline.yml
to
<?xml version="1.0" ?>
<SmellBaseline>
<Blacklist></Blacklist>
<Whitelist></Whitelist>
</SmellBaseline>
Sorry for the dumb question here. Didn't use the correct way to import the rules. 🙇♂️
Just a quick question, if this place is not for the question, I will remove this.
I would like to set Twitter-compose rules on my AS IDE. My setting might be wrong, could you please let me know how to set it?
According to https://twitter.github.io/compose-rules/rules/#preview-composables-should-not-be-public, here is supposed to have a warning or error.