kotlinter-gradle icon indicating copy to clipboard operation
kotlinter-gradle copied to clipboard

find .git repo in parent directory

Open harrycjy1 opened this issue 3 years ago • 2 comments

im having trouble to execute installKotlinterPrePushHook in my repository because i have .git repo in parent directory than my project placed

it would be nice if kotlinter can find .git repo in parent directories

harrycjy1 avatar May 13 '22 06:05 harrycjy1

Ok, good thought.

So it's not plausible to have a gradle file at the root of your project and treat it as a multi-module build? I've seen / used this pattern before in polyglot or monorepos and it has some other advantages.

jeremymailen avatar May 20 '22 05:05 jeremymailen

thanks for replying

actually i didn't think about multi-module build, in my case some of my repositories does not have gradle file in their root directory and i thought this could be pretty common situation, that's why i made this PR

~~but as u say this could be useful to people who have a multi module projects i guess~~ sorry i misunderstood what u said,

yes in that way there's no problem, but i still think this approach would be nice if i could execute installKotlinterPrePushHook gradle task without changing my repository directory structure

harrycjy1 avatar May 22 '22 16:05 harrycjy1

Closing some old PRs which are out of date. If we want to approach the feature again, please reopen a new PR.

jeremymailen avatar Jun 22 '24 18:06 jeremymailen