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

tools: Switch golint to revive #97

Merged
merged 2 commits into from Feb 6, 2023
Merged

Conversation

prashantv
Copy link
Collaborator

Follow-up to #92.

Revive is a drop-in replacement for golint that's faster.

Setting up a basic configuration that we can be tweaked going forward.

Revive is a drop-in replacement for golint that's faster.

Setting up a basic configuration that we can be tweaked going forward.
@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Merging #97 (d8227cf) into master (1649ce4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #97   +/-   ##
=======================================
  Coverage   94.92%   94.92%           
=======================================
  Files           5        5           
  Lines         138      138           
=======================================
  Hits          131      131           
  Misses          4        4           
  Partials        3        3           

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

Copy link
Contributor

@moisesvega moisesvega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for updating this.

@moisesvega moisesvega merged commit 1f9f3ff into uber-go:master Feb 6, 2023
@prashantv prashantv deleted the revive branch February 6, 2023 21:55
abhinav added a commit to uber-go/zap that referenced this pull request Feb 17, 2023
golint is no longer maintained.
Switch to revive which is a near drop-in replacement.
This is also what goleak did (uber-go/goleak#97).

Includes fixes for the following:

```
internal/level_enabler.go:21:1: should have a package comment
zapio/writer.go:21:1: should have a package comment
zapgrpc/internal/test/grpc.go:21:1: should have a package comment
internal/readme/readme.go:21:1: should have a package comment
field_test.go:70:17: should omit type bool from declaration of var boolVal; it will be inferred from the right-hand side
field_test.go:71:17: should omit type complex128 from declaration of var complex128Val; it will be inferred from the right-hand side
field_test.go:73:17: should omit type time.Duration from declaration of var durationVal; it will be inferred from the right-hand side
field_test.go:74:17: should omit type float64 from declaration of var float64Val; it will be inferred from the right-hand side
field_test.go:76:17: should omit type int from declaration of var intVal; it will be inferred from the right-hand side
field_test.go:81:17: should omit type string from declaration of var stringVal; it will be inferred from the right-hand side
field_test.go:82:17: should omit type time.Time from declaration of var timeVal; it will be inferred from the right-hand side
```
abhinav added a commit to uber-go/zap that referenced this pull request Feb 17, 2023
golint is no longer maintained.
Switch to revive which is a near drop-in replacement.
This is also what goleak did (uber-go/goleak#97).

Includes fixes for the following:

```
internal/level_enabler.go:21:1: should have a package comment
zapio/writer.go:21:1: should have a package comment
zapgrpc/internal/test/grpc.go:21:1: should have a package comment
internal/readme/readme.go:21:1: should have a package comment
field_test.go:70:17: should omit type bool from declaration of var boolVal; it will be inferred from the right-hand side
field_test.go:71:17: should omit type complex128 from declaration of var complex128Val; it will be inferred from the right-hand side
field_test.go:73:17: should omit type time.Duration from declaration of var durationVal; it will be inferred from the right-hand side
field_test.go:74:17: should omit type float64 from declaration of var float64Val; it will be inferred from the right-hand side
field_test.go:76:17: should omit type int from declaration of var intVal; it will be inferred from the right-hand side
field_test.go:81:17: should omit type string from declaration of var stringVal; it will be inferred from the right-hand side
field_test.go:82:17: should omit type time.Time from declaration of var timeVal; it will be inferred from the right-hand side
```
abhinav added a commit to uber-go/zap that referenced this pull request Feb 17, 2023
golint is no longer maintained.
Switch to revive which is a near drop-in replacement.
This is also what goleak did (uber-go/goleak#97).

Includes fixes for the following:

```
internal/level_enabler.go:21:1: should have a package comment
zapio/writer.go:21:1: should have a package comment
zapgrpc/internal/test/grpc.go:21:1: should have a package comment
internal/readme/readme.go:21:1: should have a package comment
field_test.go:70:17: should omit type bool from declaration of var boolVal; it will be inferred from the right-hand side
field_test.go:71:17: should omit type complex128 from declaration of var complex128Val; it will be inferred from the right-hand side
field_test.go:73:17: should omit type time.Duration from declaration of var durationVal; it will be inferred from the right-hand side
field_test.go:74:17: should omit type float64 from declaration of var float64Val; it will be inferred from the right-hand side
field_test.go:76:17: should omit type int from declaration of var intVal; it will be inferred from the right-hand side
field_test.go:81:17: should omit type string from declaration of var stringVal; it will be inferred from the right-hand side
field_test.go:82:17: should omit type time.Time from declaration of var timeVal; it will be inferred from the right-hand side
```
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

2 participants