Skip to content

Problems with c++ code we try to skip #5117

Closed Answered by ldez
leap-pea asked this question in Q&A
Discussion options

You must be logged in to vote

I found another trick, you can add the following build constraints inside the .cpp files inside ./gui:

//go:build cpp

If you put this comment on top of the following files every works as expected:

./gui
├── handlers.cpp
├── main.cpp
└── qjsonmodel.cpp
$ golangci-lint run 
pkg/helper/ports.go:11:6: func `getFirstAvailablePortFrom` is unused (unused)
func getFirstAvailablePortFrom(port int) int {
     ^
pkg/helper/ports.go:23:6: func `isPortAvailable` is unused (unused)
func isPortAvailable(port int) bool {
     ^
pkg/helper/ports.go:33:6: func `writePortToFile` is unused (unused)
func writePortToFile(port int) error {
     ^
pkg/helper/ports.go:43:6: func `getExecutableDir` is unused (un…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ldez
Comment options

@leap-pea
Comment options

@ldez
Comment options

@ldez
Comment options

Answer selected by ldez
@ldez
Comment options

@leap-pea
Comment options

@leap-pea
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants