Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build tags #257

Open
armsnyder opened this issue Apr 28, 2022 · 0 comments
Open

Build tags #257

armsnyder opened this issue Apr 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@armsnyder
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Hi! I can't figure out how to run this tool on a test file that uses build tags. Suppose I have a test:

//go:build acceptance
// +build acceptance

package provider

func TestAccMyResource(t *testing.T) { // Expected: AT003
}

Running tfproviderlint ./... does not lint the file. It outputs no results.

Similarly, tfproviderlint -tags acceptance ./... does not work. The "tags" flag is deprecated and has no effect. (See go/x/tools/analysis/internal/analysisflags/flags.go)

Could tfproviderlint support linting files that have build tags?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant