Screenshot from 2021-12-21 18-16-15.png,Screenshot...
# ktlint
m
Screenshot from 2021-12-21 18-16-15.png,Screenshot from 2021-12-21 18-14-47.png
p
It is a warning which in some cases shows while not applicable. You can ignore it. A fix for this has been submitted.
m
@Paul Dingemans Thanks for the reply but still the rule can't execute.
https://github.com/pinterest/ktlint/issues/300#issuecomment-432408753 As compare to this link i can't see
Copy code
Resolving build/libs/ktlint-ruleset-template.jar
this line in my terminal. Is this issue?
p
Ah, I think I see the problem. Your RuleSetProvider is placed in a directory with name "META-INF.services" while this should in subdirectory "services" inside directory "META-INF". The code sample in the ktlint code base is wrong. I already fixed that in the PR (https://github.com/pinterest/ktlint/pull/1279) I referred to before.
m
Thanks @Paul Dingemans, I will try with same.
@Paul Dingemans I have tried to delete and recreate dir but the IDE will show structure like this META-INF.services if it have only one dir inside the dir.