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

lint: Pass zapcore and zaptest packages #1383

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

r-hang
Copy link
Contributor

@r-hang r-hang commented Nov 7, 2023

golangci-lint running revive currently fails on master. Exempt the dot-import failures since these are used to reduce a large number of qualifiers in the zapcore packages's _test package tests.

This change also simplifies an if/else statement with a logical equivalent and standardizes a test that imported a package and a dot-import of the same package simultaneously.

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #1383 (3850e11) into master (87577d8) will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1383      +/-   ##
==========================================
+ Coverage   98.28%   98.42%   +0.14%     
==========================================
  Files          53       53              
  Lines        3493     3493              
==========================================
+ Hits         3433     3438       +5     
+ Misses         50       46       -4     
+ Partials       10        9       -1     

see 1 file with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

golangci-lint running revive currently fails on master. Exempt the dot-import
failures since these are used to reduce a large number of qualifiers in the
zapcore packages's _test package tests.

This change also simplifies an if/else statement with a logical equivalent and
standardizes a test that imported a package and a dot-import of the same
package simultaneously.
@r-hang r-hang force-pushed the rhang/pass-revive branch from 1d12201 to 3850e11 Compare November 7, 2023 07:19
@sywhang sywhang merged commit f463774 into master Nov 7, 2023
6 checks passed
@sywhang sywhang deleted the rhang/pass-revive branch November 7, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants