-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
It seems vet on windows is unnecessary #14302
Conversation
I would argue that vet on Windows is still useful. Consider when someone creates new OS-specific code and may forget to add copyright. Aside from
|
@jolheiser But in fact, the drone run on the container |
Ah, yep you are right. I still think we should probably vet the Windows code (and other tags, like PAM) to make sure that any changes to them are vetted properly. In this scenario, I guess we really just need to be able to run the linux |
There has to be some better solution than having to run all lint/vet multiple times based on TAGS or GOOS because that method does not scale with the number of build tags. Can't we just somehow tell these tools to check all files, regardless of tags? They're both static analysis, right? |
@silverwind It depends on the tools. But as I know, golangci-lint doesn't support scan all the files. |
Opened golangci/golangci-lint#1646. Maybe it'll give us some clarification or lead to a feature to lint all files. I don't really know how these linters work so it may as well just not be possible. |
658b482
to
1be3fd4
Compare
@jolheiser @silverwind @6543 I have changed the PR, could you review it again? |
Codecov Report
@@ Coverage Diff @@
## master #14302 +/- ##
==========================================
- Coverage 41.86% 41.85% -0.01%
==========================================
Files 744 744
Lines 79746 79746
==========================================
- Hits 33383 33376 -7
- Misses 40853 40860 +7
Partials 5510 5510
Continue to review full report at Codecov.
|
* master: Add pager to the branches page (go-gitea#14202) Removed invalid form tag (go-gitea#14391) Update back-up restore example for 1.13 changes (go-gitea#14374) It seems vet on windows is unnecessary (go-gitea#14302)
Fix the CI randomly failed.