Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

gofmt nor gometalinter do their job on test files #10

Closed
shadyyx opened this issue Mar 24, 2016 · 2 comments
Closed

gofmt nor gometalinter do their job on test files #10

shadyyx opened this issue Mar 24, 2016 · 2 comments

Comments

@shadyyx
Copy link

shadyyx commented Mar 24, 2016

Having a package handlers with ABCHandler.go filenames and their respective tests with ABCHandler_test.go which have package handlers_test, gofmt does not format code anymore and gometalinter does not point out to errors in code anymore (claiming "No issues" at the bottom of the editor).

If I remove the _test part from the package name in _test.go file, suddenly, both gofmt and gometalinter work...

I didn't find any setting to suppress such (IMHO) invalid behavior.

@shadyyx shadyyx changed the title gofmt nor gometlinter do their job on test files gofmt nor gometalinter do their job on test files Mar 24, 2016
@joefitzgerald
Copy link
Owner

It's likely due to a compilation or syntax error; gofmt is not showing the errors, but I'm working on https://github.com/joefitzgerald/builder-go right now to surface this information in the way go-plus used to in 3.5.x. See also joefitzgerald/go-plus#403.

@joefitzgerald
Copy link
Owner

Please update to go-plus v4.1.0. builder-go will now try to compile your source (test or otherwise) and report errors that would prevent formatting from occurring.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants