We use custom checks in one of our projects but would like to use them in other projects as well. What is the best way to package this for reusability? So far, we have tried having them as git submodules, but we also want to have tests for them. We also tried having them as a hex package, but referencing them under the required files did not work. We would also want to open-source this; what would be the best solution?
I have also come across Credo plugins but do not understand where to use them. Is this one of the scenarios to use them?