Hm, sorry, no, come to think of it, that wouldn't help either. So, I don't know. Apart from "don't use that linter" or "ignore that complaint", I'm out of ideas.
On Tue, 19 Nov 2024 at 15:56, Axel Wagner <axel.wagner...@googlemail.com> wrote: > You could also call it from a test within your test package. > > On Tue, 19 Nov 2024 at 15:53, Chris Burkert <burkert.ch...@gmail.com> > wrote: > >> Hi Axel, >> >> Maybe you can add something like `var _ = SkipIfIntegration` to your >>> package? i.e. trick the linter to stop it from complaining? >>> >> >> I already tried this, but it did not help. >> >> I even added the following, which made things worse: >> >> func init() { >> _ = SkipIfIntegration >> } >> >> $ deadcode ./... >> test/test.go:8:6: unreachable func: init#1 >> test/test.go:12:6: unreachable func: SkipIfIntegration >> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfER7uYHnavrZGUk6M5tz5H%3DVsangHxmjkjZjW6PwKB5_Q%40mail.gmail.com.