You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll see if it is possilbe... I have to turn everything into an absolute path as that is what I am given from golang's tools. A hack would be to expand either . or $root with ** but then I feel like it is lying.
I do like the variable approach though! Wonder if $git could be the root of the git repository and $mod could be the go module (would need to play around with a mono repo with multiple mod files).
I'd like to only scan somedir/*.go, but I can't - because I have to specify **/somedir/*.go and this also matches anotherdir/somedir/*.go.
Of course, I can add a lot of ! statements to ignore them, but I don't think this is a good way to go.
A hack would be to expand either . or $root with ** but then I feel like it is lying.
Indeed, that would be useless. Wouldn't it be possible to expand ./$root (I don't care which one you choose) to the current working directory/root path of the project?
Thanks!
qwerty287
added a commit
to qwerty287/woodpecker
that referenced
this issue
Dec 28, 2023
Currently, we have a bunch of rules like
Ideally we could write something like
Or
Where this is relative to is up to debate, but probably the module root makes the most sense?
ps: thanks for the great linter!
The text was updated successfully, but these errors were encountered: