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

GO linting bump and removal of deprecated linters #5624

Merged
merged 2 commits into from Sep 19, 2022

Conversation

Tantalor93
Copy link
Collaborator

@Tantalor93 Tantalor93 commented Sep 16, 2022

1. Why is this pull request needed and what does it do?

bumps golangci-lint to 1.49.0 and also remove workaround for supporting Go 1.19 and removes usage of deprecated linters (deadcode, structcheck, varcheck)

2. Which issues (if any) are related?

none

3. Which documentation changes (if any) need to be made?

none

4. Does this introduce a backward incompatible change or deprecation?

no

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
@codecov-commenter
Copy link

codecov-commenter commented Sep 16, 2022

Codecov Report

Merging #5624 (ad0fb16) into master (93c57b6) will increase coverage by 1.17%.
The diff coverage is 55.98%.

@@            Coverage Diff             @@
##           master    #5624      +/-   ##
==========================================
+ Coverage   55.70%   56.88%   +1.17%     
==========================================
  Files         224      243      +19     
  Lines       10016    15610    +5594     
==========================================
+ Hits         5579     8879    +3300     
- Misses       3978     6188    +2210     
- Partials      459      543      +84     
Impacted Files Coverage Δ
core/dnsserver/config.go 0.00% <ø> (ø)
plugin/auto/auto.go 0.00% <0.00%> (ø)
plugin/auto/zone.go 78.94% <ø> (+0.68%) ⬆️
plugin/autopath/autopath.go 73.61% <ø> (-1.39%) ⬇️
plugin/azure/azure.go 10.61% <0.00%> (-0.57%) ⬇️
plugin/azure/setup.go 56.36% <0.00%> (-4.14%) ⬇️
plugin/backend_lookup.go 0.00% <0.00%> (ø)
plugin/bind/bind.go 50.00% <0.00%> (-50.00%) ⬇️
plugin/clouddns/gcp.go 0.00% <0.00%> (ø)
plugin/clouddns/setup.go 55.40% <0.00%> (+0.68%) ⬆️
... and 314 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@yongtang yongtang merged commit 257ca65 into coredns:master Sep 19, 2022
@Tantalor93 Tantalor93 deleted the linter branch September 19, 2022 13:54
gonzalop pushed a commit to gonzalop/coredns that referenced this pull request Jan 14, 2023
* bump golangci-lint with support of go 1.19

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>

* remove deprecated usage of varcheck, deadcode, and structcheck

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>

Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants